Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM strategy methods, OnPositionUpdate and Trade

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

    ATM strategy methods, OnPositionUpdate and Trade

    I developed an strategy using the ATM methods (AtmStrategyCreate(), GetAtmStrategyEntryOrderStatus(), AtmStrategyClose(), etc...) which is executing well, but I haven't been able to make OnPositionUpdate work, I don't know If I have to subscribe the method or something. I created the strategy with the wizard.

    So, I want to use OnPositionUpdate event to get the las Trade (https://ninjatrader.com/support/help...nt8/?trade.htm) executed by the strategy.

    Could you help me please giving me some input, suggestion or, even better, a solid solution?

    Thanks.

    #2
    Hello merengano,

    The strategy based event overrides like OnPositionUpdate/ExecutionUpdate/OrderUpdate are not for ATM's. ATM strategies are external to the NinjaScript strategy so you would need to use the ATM based methods if you wanted to gather information about a strategy.



    The other properties a strategy has like its performance or collected trades also do not apply to ATM strategies.

    If you wanted to use the event overrides/strategy based properties you would need to switch to Managed or Unmanaged orders.


    Please let me know if I may be of further assistance.

    Comment


      #3
      Cristal clear. Thanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      56 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      133 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X