Switch indicators on/off

Forums ProRealTime English forum ProBuilder support Switch indicators on/off

Tagged: , , ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • #173047

    Could anyone tell me if there is a way to show or hide an indicator based on conditions relating specifically to the current candle only?

    e.g.
    If low<EMAx and close>EMAx then display EMAx.

    I did try a custom EMA indicator but the the EMA only displayed on each candle in the past which met the criteria rather than just plotting the EMA on the chart.

    Thanks.

    #173048

    Try this one (not tested):

    it takes advantage of the optional 4th COLOUR parameter, transparency (0-255), to make ema visible only when conditions are met.

     

    #173049

    Impressive Wizardry! 🙂

    Link to above added as Log 293 here …

    Snippet Link Library

    1 user thanked author for this post.
    #173051

    Hi,

    Unfortunately this is still only displaying the MA on candles which meet the criteria.

    #173054

    Isn’t that what you meant with “If low<EMAx and close>EMAx then display EMAx”?

     

    #173055

    Sorry, I didn’t make it clear.

    I want to be able to display MA[x] on the whole chart but only if the last day’s candle meets the requirements.

    So if today meets the conditions then MA[x] is displayed on the whole chart.

    Hope that makes sense!

    #173065

    There’s no instruction to achieve that, so it must be coded.

    I’ll make it asap.

     

    #173066

    Great, thanks.

    #173077

    Bob’s your uncle:

    Line 2 are the Ema periods and Line 3 are the number of bars you want the Ema to be plotted when conditions are met.

    1 user thanked author for this post.
    #173085

    That’s amazing, thank you!
    Works like a charm.

     

    1 user thanked author for this post.
Viewing 10 posts - 1 through 10 (of 10 total)

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