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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X