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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          58 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          80 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          43 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          101 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          61 views
          0 likes
          Last Post PaulMohn  
          Working...
          X