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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          656 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          371 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          574 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          579 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X