Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Do strategy SetDefaults override the value of Calculate in the strategy properties?

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

    Do strategy SetDefaults override the value of Calculate in the strategy properties?

    If I have set Calculate.OnPriceChange in the strategy SetDefaults. Does it override the strategy Properties if it is set to OnEachtick in the Setup items? Or the value in the Properties winndow overrides what is set in the State.SetDefaults?

    #2
    Hello, thanks for posting. The setting from the UI will override the SetDefault Calculate setting. Removing and re-adding the strategy will result in Calculate being set back to OnPriceChange, or whatever Calculate is set to in State.SetDefaults.

    Kind regards,
    -ChrisL​

    Comment


      #3
      Changing the Calculate value will change the behaviour of OnMarketData, OnOrderUpdate and OnExecutionUpdate methods?

      Comment


        #4
        No, it should not.
        Bruce DeVault
        QuantKey Trading Vendor Services
        NinjaTrader Ecosystem Vendor - QuantKey

        Comment


          #5
          Hi guillembm, those event methods are not effected by the Calculate setting of the script.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          66 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          36 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          59 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          62 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          53 views
          0 likes
          Last Post CarlTrading  
          Working...
          X