Indicatore che individua Swing High & Swing Low

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35179 quote
    Max
    Participant
    Average

    Qui di seguito una domanda inviata a ProRealTime :

    Buonasera vorrei creare un indicatore che mi individui sul grafico gli swing higt e swing low con una linea orizzontale per ogni swing individuato.
    Questi sono i codici esistenti:

    Swing higt:
    
    c1=High < High[1]
    c2=Close < Open
    c3=High[1] > High[2]
    
    Swing low:
    
    c1=Low > Low[1]
    c2=Close > Open
    c3=Low[1] < Low[2]

     E un esempio di risposta :

    //Swing high:
    
    c1=High < High[1]
    c2=Close < Open
    c3=High[1] > High[2]
    
    //Swing low:
    
    c4=Low > Low[1]
    c5=Close > Open
    c6=Low[1] < Low[2]
    
    if c1 and c2 and c3 then
    DRAWSEGMENT(barindex, high, barindex[1], high)
    elsif c4 and c5 and c6 then
    DRAWSEGMENT(barindex, low, barindex[1], low)
    endif
    
    return
    
    #47587 quote
    Jim Moto
    Participant
    New

    Ciao. Return cosa? Se no non funziona… 🙂

    #47589 quote
    Nicolas
    Keymaster
    Master

    L’istruzione RETURN non necessita di argomenti in questo caso perché i risultati vengono tracciati con quelli DRAWSEGMENT alle righe 14 e 16.

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

Indicatore che individua Swing High & Swing Low


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Max @max Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by Nicolas
8 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 05/11/2017
Status: Active
Attachments: No files
Logo Logo
Loading...