Livelli candela del giorno precedente

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #215966 quote
    GiampaoloZilio
    Participant
    New

    Buona domenica,

    chiedo aiuto a Roberto ed ai più esperti😃

    Vorrei scrivere un indicatore che disegna in un Timeframe inferiore al daily il livello del massimo della giornata precedente, se questa è stata positiva (Close>Open).

    Grazie mille!

    #216036 quote
    druby
    Participant
    New

     

    defparam drawonlastbaronly = true
    
    a=undefined
    
    if islastbarupdate then
    if Dopen(1) < Dclose(1) then
    a =  Dhigh(1)
    drawHline(a)coloured("aqua")style(line,1)
    else
    a=undefined
    endif
    endif
    
    return a
    #216039 quote
    robertogozzi
    Moderator
    Master

    Oppure questo:

    DEFPARAM DrawOnLastBarOnly = true
    Timeframe(Daily,UpdateOnClose)
    HH = high
    IF close <=open THEN
       HH = 0
    ENDIF
    //
    Timeframe(default)
    IF IntraDayBarIndex = 0 THEN
       Barra = BarIndex
    ENDIF
    IF HH > 0 THEN
       DrawSegment(Barra,HH,Barindex + 3,HH) style(Line,2) coloured("Blue")
    ENDIF
    RETURN
    #216096 quote
    GiampaoloZilio
    Participant
    New

    Grazie!😊

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

Livelli candela del giorno precedente


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

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

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