Massimo e Minimo Settimana precedente

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9671 quote
    Conte CaimanoConte 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
    NicolasNicolas
    Keymaster
    Legend

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

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 NicolasNicolas
10 years, 3 months ago.

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