Indicatore che individua Swing High & Swing Low

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35179 quote
    MaxMax
    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 MotoJim Moto
    Participant
    New

    Ciao. Return cosa? Se no non funziona… 🙂

    #47589 quote
    NicolasNicolas
    Keymaster
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NicolasNicolas
8 years, 11 months ago.

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