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, 03-31-2026, 09:41 PM
          1 response
          81 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          42 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          64 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          68 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          55 views
          0 likes
          Last Post CarlTrading  
          Working...
          X