Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bar Brush not coloring

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

    #16
    Hello vegas3416,

    Where are you setting Calculate? May I confirm this is set in the Indicators window and you have clicked OK (and that you have not changed this in State.SetDefaults)?

    Reduce the prints to only one print for the one condition in question.

    Add the value of Calculate, and BarsInProgress, to the print.

    Save the output to a text file.

    Include this with your next post.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      Ok...so I didn't realize you needed this set of code before your normal code. As soon as I added this it just works as I'm expecting even though I don't do anything with it.

      Code:
          if(BarsInProgress != 0)
                      return;
      
          if(CurrentBars[0] < 1)
                      return;
                  ​

      Comment


        #18
        Hello vegas3416,

        Sounds like you have added a series with AddDataSeries() which has a smaller time frame and is updating OnBarUpdate with the other BarsInProgress.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #19
          I do have the AddDataSeries() as I only run this indicator on a 2min time frame

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          28 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          20 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          183 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          337 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          261 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X