Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 sgordet, Today, 11:48 AM
            0 responses
            1 view
            0 likes
            Last Post sgordet
            by sgordet
             
            Started by Trader146, Today, 11:41 AM
            0 responses
            2 views
            0 likes
            Last Post Trader146  
            Started by jpapa, 04-23-2024, 07:22 AM
            2 responses
            16 views
            0 likes
            Last Post rene69851  
            Started by funk10101, Today, 11:35 AM
            0 responses
            1 view
            0 likes
            Last Post funk10101  
            Started by samish18, Today, 11:26 AM
            0 responses
            1 view
            0 likes
            Last Post samish18  
            Working...
            X