Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to retrieve Renko bar color?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to retrieve Renko bar color?

    Hi Support

    I'm trying to retrieve the color of the renko bar for my strategy.

    I've tried printing the bar colour by using the following command:
    Print (BarColorSeries[0]);

    on the out put screen I get the following output
    0

    I get the same output whether the brick is green or red.

    Can you please let me know how i can retrieve the color please?

    Thanks

    DB

    #2
    FYI I've also tried

    Print (BarColor);

    I get [Null] as the output for both red and green.

    Thanks

    DB

    Comment


      #3
      Close[1] > Open[1] : green bar
      Close[1] < Open[1] : red bar

      Marco

      Comment


        #4
        Thanks Marco!

        much appreciated.

        Since Renko charts only show an up or down bar.
        I'm not sure how it would handle a price being flat - i.e. what would happen in the case

        Close[1] == Open[1] ?

        or would a flat price never occur with Renko?

        Comment


          #5
          Close[1] == Open[1] would never occur since Renko only draws an upbar if Close > Open + BrickSize and downbar if Close < Open - BrickSize

          Comment


            #6
            Thanks again!

            Makes sense to me now.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            157 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            91 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            143 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            130 views
            1 like
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            107 views
            0 likes
            Last Post CarlTrading  
            Working...
            X