Contatore segnali indicatore

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

    Salve, chiedo un aiuto per implementare il seguente indicatore in modo tale da creare un contatore che mi vada a sommare i segnali partendo da 0 e arrivare a 10 per poi azzerarsi e ripartire a contare da 0 fino a 10 nuovamente e cosi via.

    Di seguito il codice indicatore e una foto dove è illustrato il risultato che vorrei ottenere.

    grazie anticipatamente.

    Upper = HIGHEST[a](HIGH[1])
    Lower = LOWEST[a](LOW[1])
    
    segnale1=high>Upper
    segnale2=low<Lower
    
    segnale=segnale1 or segnale2
    
    return segnale
    DAX-1-Minuto.png DAX-1-Minuto.png
    #86133 quote
    robertogozzi
    Moderator
    Master

    Eccolo, stampa un istogramma:

    DEFPARAM CalculateOnLastBars = 500
    p = 50
    IF segnale = 10 THEN
       segnale = 0
    ENDIF
    Upper      = HIGHEST[p](HIGH[1])
    Lower      = LOWEST[p](LOW[1])
    segnale1   = high > Upper
    segnale2   = low  < Lower
    IF Segnale1 OR Segnale2 THEN
       segnale = segnale + 1
    ENDIF
    return segnale
    x-27.jpg x-27.jpg
    #86135 quote
    DavideSbarra
    Participant
    Average

    mille grazie

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

Contatore segnali indicatore


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by DavideSbarra
7 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 11/30/2018
Status: Active
Attachments: 2 files
Logo Logo
Loading...