Massimo e Minimo Settimana precedente

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9671 quote
    Conte Caimano
    Participant
    Master

    Buongiorno a tutti,

    vorrei creare un indicatore che ad ogni inizio di settimana (il lunedì)  disegni sul grafico il Massimo ed il Minimo della settimana precedente.

    Ho provato con il seguente codice, ma non funziona.

    If (DayOfWeek = 1) Then
    
    DailyHigh = Higest[5](Close)
    
    DailyLow = Lowest[5](Close)
    
    EndIf
    
    Return DailyHigh, DailyLow

     

    Grazie a tutti per la collaborazione

    Stefano

    #9676 quote
    Nicolas
    Keymaster
    Master

    Ciao, è possibile utilizzare il seguente codice per disegnare la settimana precedente alto e basso sul grafico dei prezzi. (Vedi foto allegata).

    //weekly high/low
    IF DayOfWeek < DayOfWeek[1] THEN
     weekHprevious = myH
     weekLprevious = myL
     myH = High
     myL = Low
    ELSE
     myH = Max(High, myH)
     myL = Min(Low, myL)
    ENDIF
    
    weekH = weekHprevious
    weekL = weekLprevious
    
    RETURN weekH,weekL
    previous-high-low-of-the-week.png previous-high-low-of-the-week.png
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Massimo e Minimo Settimana precedente


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
9 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 06/22/2016
Status: Active
Attachments: No files
Logo Logo
Loading...