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 NullPointStrategies, Today, 05:17 AM
          0 responses
          43 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
          65 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          42 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