Help with coding candlesticks color please!

Forums ProRealTime English forum ProBuilder support Help with coding candlesticks color please!

  • This topic has 8 replies, 2 voices, and was last updated 7 years ago by avatar211.
Viewing 9 posts - 1 through 9 (of 9 total)
  • #18213
    211

    Hello dear PRT forum,

    Can somebody help me with some coding? I tried to it myself, but I have no clue what to do and how to make it work.

    I have 20 Weighted Moving Average, and when the 5th candle (in a uptrend) is above the 20 WMA, the candle changes in a different colour.

    The same goes the vice versa, when the 5th candle (in a downtrend) is under the 20 WMA, the candle changes in a different colour.

    Extra info:  I use Heikin-Ashi candlecharts and a 25 tick chart.

    Attached a pdf file visually explained

    I hope somebody can help me with this.

    Many thanks!

    Fabius

    #18281

    This is a nice colored chart, well done.

    Your request is possible, but drawing custom candlesticks and with different colors is only possible with v10.3. So if you are still using the 10.2 (IG users mainly), you’ll not be able to use the code.. You’ll have to wait for the 10.3 release for all users.

    #18309
    211

    Hi Nicolas,

    Thanks for the reply. Can you do the coding please. I know this is not for free.

    Fabius

    #18312

    Coding for what version?

    Everything here on forums is free, unless you need private personal assistance? In this case, please use the programming services form: http://www.prorealcode.com/trading-programming-services/

    #18313
    211

    O, coding for PRT 10.3

    #18333

    So you only need to colour one candlestick? The 5th above or below the 20WMA? All over candlesticks remain of the default colour?

    #18334
    211

    Yes, exactly!

    #18346

    Here is the code corresponding to your request, I’m colouring candlesticks in yellow, you can change this colour with RGB format at lines 18 and 21.

    Please consider that only close are tested above and below the 20 WMA (for the 5th candle count), not if the candlesticks are bearish or bullish.

     

    #18350
    211

    Hi Nicolas,

    Thank you so much for the coding, it works perfectly!!

    Again many thanks,

    Fabius

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

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