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 SalmaTrader, 07-07-2026, 10:26 PM
          0 responses
          35 views
          0 likes
          Last Post SalmaTrader  
          Started by CarlTrading, 07-05-2026, 01:16 PM
          0 responses
          20 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 06-17-2026, 10:32 AM
          0 responses
          12 views
          0 likes
          Last Post CaptainJack  
          Started by kinfxhk, 06-17-2026, 04:15 AM
          0 responses
          18 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 06-17-2026, 04:06 AM
          0 responses
          20 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X