Draw a coloured zone that desiappears unter certain conditions

Forums ProRealTime English forum ProBuilder support Draw a coloured zone that desiappears unter certain conditions

  • This topic has 3 replies, 2 voices, and was last updated 3 hours ago by avatarJS.
Viewing 4 posts - 1 through 4 (of 4 total)
  • #241626

    Hi,

    I want to draw a coloured colured zone only if the closing bar at 15 min TF is higher than a certain level. I tried the following code where I set a colour zone between ZUP and ZDOWN but it doesn’t work and the zone doesn’t disappear when the condition isn’t fulfilled.

     

    defparam drawonlastbaronly=true

    TimeFrame(15 minutes)

    if close[0]>6900 then
    ZUP=6900
    ZDOWN=6800
    endif

    Return ZUP as “ZUP”, ZDOWN as “ZDOWN”

     

    Can you please help me?

     

    Thank you in advance!

    John

    #241629
    JS

    Try this one…

     

    #241636

    Unfortunately this doesn’t work. The zone doesn’t disappear when the instrument drops below a certain level.

    #241641
    JS

    Hi John,

    Try this one…

Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login