Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicators inside a strategy

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

    Indicators inside a strategy

    How do I make the indicators that I use for calculations inside my strategy update real time? I have tried the Calculate on bar close = true, but it does not seem to work. I am using the ADX indicator in my strategy for calculations. If I add it to the chart from within my strategy, to check if it is in fact changing intrabar, then I see that it does not update intrabar.

    I see the bar go up and down, but the ADX value only changes at the end of the bar.

    thanks.

    #2
    You need to use CalculateOnBarClose = false in the strategy.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I have that already in the strategy, but the ADX on the chart is definitely only updating at the end of each bar. (The ADX is displayed on the chart from within the strategy.)

      Comment


        #4
        You cannot have any CalculateOnBarClose set to true which is what you said you have done in the first post. Please ensure everything is false. Furthermore, you should first ensure if ADX is an indicator that makes sense to be updating every tick. Suggest you just use really basic ones like SMA to test.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Sorry, my mistake in the first post. Everything IS set to false.

          Comment


            #6
            ADX could just be one that doesn't update per tick. You can try SMA and see how it works there.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            639 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            366 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            107 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            569 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            572 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X