Pannellino range Oggi / Range giorni precedenti

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

    Salve a tutti, condivido questo semplice codice che consente di avere sotto controllo il range giornaliero in progress dello strumento confrontato con il range medio degli ultimi XX giorni escluso oggi (in pips, a centro pagina, su quasiasi timeframe//10/01/2023 - T.F. - Range Daily compared to Range last XX Days //Sharing ProRealCode DEFPARAM DRAWONLASTBARONLY=TRUE //Variables: //AtrPrevDays: 5 timeframe (daily) TodayRange = range/pipsize PrevRange = round(AverageTrueRange[AtrPrevDays](close)[1]/pipsize,1) //ATR xx days before, today excluded Timeframe (default) if TodayRange>PrevRange then rr=250 else rr=0 endif Drawtext ("RANGE: Today= #todayrange# / Avg Prev. #AtrPrevDays#Days= #prevrange#", 0, -40, dialog, bold, 15) anchor (TOP) coloured (rr,0,0) Drawrectangle(-200,-20,200,-60) anchor (TOP) coloured (rr,0,0) return

    robertogozzi thanked this post
    TF-IN_Range_Panel.itf Clipboard01.jpg Clipboard01.jpg
    #207187 quote
    luxrun
    Participant
    Master

    Comodo il pannellino a centro del grafico, grazie! Io non faccio valute e ho trasformato i pipsize in pointsize, così posso utilizzarlo per azioni, indici e crypto. Un saluto

    effegi thanked this post
    #207188 quote
    robertogozzi
    Moderator
    Master

    Grazie per avere condiviso il tuo codice.

    PipSize e PointSize sono comunque equivalenti https://www.prorealcode.com/documentation/pointsize/.

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

Pannellino range Oggi / Range giorni precedenti


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
effegi @effegi Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by robertogozzi
3 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 01/10/2023
Status: Active
Attachments: 2 files
Logo Logo
Loading...