Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bar colour paint

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

    #16
    Sure, no problem. I have attached it here.
    Attached Files

    Comment


      #17
      Hello ScottieDog,

      Thank you for your response.

      Please try using BarColorSeries rather than BarColor: http://www.ninjatrader.com/support/h...olorseries.htm

      Please let me know if this does not resolve the matter.

      Comment


        #18
        Thanks. Made the change but still the same issue, it did not fix it. I changed the code to the following::

        Code:
        if (direction == 1 && (Open[CurrentBar - index] > Close[CurrentBar - index]))
        
                                {                                
        
                                        drawPen.Color = Color.Red ;
        
                                        BarColorSeries[0] = Color.Red;
        
                                        myTag += 1 ;

        Comment


          #19
          Hello ScottieDog,

          Thank you for the update.

          Going back to Chelsea's idea, have you attempted to Print() the data to the output window to verify that there are values historically?

          You can find information on Print() at the following link: http://www.ninjatrader.com/support/h.../nt7/print.htm
          The values will be sent to the Output Window (Tools --> Output Window).

          Comment


            #20
            Originally posted by ScottieDog View Post
            That's right, it's an indicator applied to panel 2 of a chart. It plots bar paint historically inside panel 2 but does not on the candles in panel 1
            You may have to show the code that you are using to do the coloring, and how you serialized those colors. It will be hard to figure this out in a vacuum, so to speak.

            Comment


              #21
              I showed the full cs file. Is there anything else I need to provide?
              Attached Files
              Last edited by ScottieDog; 06-24-2014, 02:52 AM.

              Comment


                #22
                Originally posted by NinjaTrader_PatrickH View Post
                Hello ScottieDog,

                Thank you for the update.

                Going back to Chelsea's idea, have you attempted to Print() the data to the output window to verify that there are values historically?

                You can find information on Print() at the following link: http://www.ninjatrader.com/support/h.../nt7/print.htm
                The values will be sent to the Output Window (Tools --> Output Window).
                I don´t understand how to print the data. I read the link you showed me, I still don´t understand.

                The indicator is storing the values historically, that´s for sure - I don´t understand why the price chart does not pick up what the indicator has stored, as it is the indicator that paints the bars in real-time.

                Comment


                  #23
                  Hello ScottieDog,

                  Please review the following link for information on printing and debugging your strategy: http://www.ninjatrader.com/support/f...ead.php?t=3418

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  571 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  331 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  101 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  549 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  549 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X