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 kinfxhk, 07-14-2026, 09:39 AM
            0 responses
            127 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by kinfxhk, 07-13-2026, 10:18 AM
            0 responses
            105 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by kinfxhk, 07-13-2026, 09:50 AM
            0 responses
            85 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by kinfxhk, 07-13-2026, 07:21 AM
            0 responses
            105 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by kinfxhk, 07-11-2026, 02:11 AM
            0 responses
            86 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Working...
            X