Max Min giorno precedente

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #66354 quote
    HendrixHendrix
    Participant
    Senior

    Buonasera,volevo un codice che indicasse su tutti i TF il massimo e il minimo del giorno precedente .

     

    Grazie

    #66356 quote
    HendrixHendrix
    Participant
    Senior

    Inoltre se si poteva avere min max della giornata in cui si opera .

     

    Grazie

    #66362 quote
    maximus78maximus78
    Participant
    Senior

    Ciao Hendrix, se vuoi i prezzi sotto il grafico crea un indicatore copiando questo codice :

    a=dhigh(0)
    b=dlow(0)
    c=dhigh(1)
    d=dlow(1)
    
    return a COLOURED(0, 0, 255) as "today high" , b COLOURED(255, 0, 0) as "today low", c COLOURED(0, 255, 0) as "yesterday high", d COLOURED(244, 0, 161) as "yesterday low"

    colori e spessore linee sono personalizzabili.

    Se vuoi due segmenti sul grafico crea l’indicatore e copia questo codice ma ricordati di inserire l’indicatore creato dalle proprietà del prezzo (chiave inglese su grafico prezzo in alto a sinistra).

    defparam drawonlastbaronly=true
    
    a=dhigh(0)
    b=dlow(0)
    c=dhigh(1)
    d=dlow(1)
    
    if intradaybarindex=0 then
    begin=barindex
    endif
    
    drawsegment(begin,a,barindex,a) coloured(0,0,255)
    drawtext ("today high #a#",barindex,a+10*pointsize,Dialog,Bold,10) coloured(0,0,255)
    
    drawsegment(begin,b,barindex,b) coloured(255,0,0)
    drawtext ("today low #b#",barindex,b-10*pointsize,Dialog,Bold,10) coloured(255,0,0)
    
    drawsegment(begin,c,barindex,c) coloured(0,255,0)
    drawtext ("yesterday high #c#",barindex,c+10*pointsize,Dialog,Bold,10) coloured(0,255,0)
    
    drawsegment(begin,d,barindex,d) coloured(244,0,161)
    drawtext ("yesterday low #d#",barindex,d-10*pointsize,Dialog,Bold,10) coloured(244,0,161)
    
    return

    Anche qui puoi cambiare colori  dove è scritto coloured (…….) cliccando su modifica

    Max

    Nicolas and robertogozzi thanked this post
    #66402 quote
    HendrixHendrix
    Participant
    Senior

    Grazie Infinite.

    Prefetto!

Viewing 4 posts - 1 through 4 (of 4 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

Max Min giorno precedente


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Hendrix @hendrix Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by HendrixHendrix
8 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 03/25/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...