INSERIMENTO INDICATORE IN PRO ORDER

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #55698 quote
    Foffo84
    Participant
    Average
    count=1
    i=0
    j=i+1
    tot=0
    while count<5 do
    tot=tot+1
    if (low[j]>=low[i]) and (high[j]<=high[i]) then
    //inside bar
    j=j+1
    else
    count=count+1
    i=i+1
    J=i+1
    endif
    wend
    basso=lowest[tot](low)
    alto=highest[tot](high)
     
    if close>alto[1] then
    ref=basso
    endif
    if close<basso[1] then
    ref=alto
    endif
     
    return ref

    Salve, ho questo indicatore che disegna sul prezzo una sepcie di supertrend.

    Come faccio a inserirlo nel codice pro order e drili ad esmpio:

    quando il prezzo e maggiore di questo indicatore compra

    Grazie tante

    #55712 quote
    robertogozzi
    Moderator
    Master

    Devi:

    1. togliere la riga 26 (basta che la commenti)
    2. non usare, nella tua strategia, nomi di variabili uguali a quelle per evitare conflitti

    Fatto questo, nella tua strategia basta che verifichi la variabile ref che è il valore che viene disegnato sul grafico:

    IF close > ref THEN....
    //     oppure
    IF close < ref THEN....

    e ti comporti di conseguenza.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

INSERIMENTO INDICATORE IN PRO ORDER


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Foffo84 @foffo84 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
8 years, 1 month ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 12/14/2017
Status: Active
Attachments: No files
Logo Logo
Loading...