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 JoMoon2024, Today, 06:56 AM
            0 responses
            6 views
            0 likes
            Last Post JoMoon2024  
            Started by Haiasi, 04-25-2024, 06:53 PM
            2 responses
            17 views
            0 likes
            Last Post Massinisa  
            Started by Creamers, Today, 05:32 AM
            0 responses
            6 views
            0 likes
            Last Post Creamers  
            Started by Segwin, 05-07-2018, 02:15 PM
            12 responses
            1,786 views
            0 likes
            Last Post Leafcutter  
            Started by poplagelu, Today, 05:00 AM
            0 responses
            3 views
            0 likes
            Last Post poplagelu  
            Working...
            X