Livelli candela del giorno precedente

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #215966 quote
    GiampaoloZilioGiampaoloZilio
    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
    drubydruby
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    GiampaoloZilioGiampaoloZilio
    Participant
    New

    Grazie!😊

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

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

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