Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculate mode for strategy indicators

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

    Calculate mode for strategy indicators

    Hi!

    I would like to confirm the behavior of my strategies indicators just to make sure I know what is going on under the hood.

    So my strategy has a few indicators (and secondary data series) in it. Will the indicators "Calculate" mode (On Bar Close, on each tick, on price change) be determined by the mode of the strategy itself?

    Thanks

    #2
    Yes.

    See Tip #3 and #4.

    Comment


      #3
      However, when running in Strategy Analyzer, the Calculate setting is ignored
      and your Strategy is executed using the OnBarClose mode.

      You should study this page, pay special attention when it describes being
      able to run your strategy 'at the Close of a Bar or Tick by Tick' -- it states
      that back-testing is always OnBarClose.
      Last edited by bltdavid; 01-29-2022, 12:45 PM.

      Comment


        #4
        Thank you sir! Have a great weekend.

        Comment


          #5
          Hello RT001,

          Yes, that is correct. Hosted indicators will by default use the Calculate setting of the host (calling strategy or indicator). And they should (and while this can be changed, should not be changed) as changing the calculate setting between the host and hosted can cause unexpected behavior.

          bltdavid is correct in that in historical Calculate is OnBarClose, but this is unless TickReplay is enabled.

          See the post below about 1-tick intra-bar granularity and TickReplay.


          With the Strategy Analyzer specifically, there is no Calculate setting. However, when TickReplay is enabled the Calculate setting set in State.SetDefaults will take effect.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          39 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          124 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          64 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X