Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Cristal clear. Thanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Ripoz4200, 01-29-2024, 03:21 PM
      6 responses
      2,312 views
      0 likes
      Last Post Lancer
      by Lancer
       
      Started by paulmuldoon, 09-03-2024, 08:24 PM
      5 responses
      59 views
      0 likes
      Last Post Lancer
      by Lancer
       
      Started by markjaffe, Today, 12:57 PM
      0 responses
      6 views
      0 likes
      Last Post markjaffe  
      Started by arbeydario, 09-03-2024, 08:37 PM
      4 responses
      33 views
      0 likes
      Last Post arbeydario  
      Started by Christopher Leggit, Today, 11:13 AM
      0 responses
      10 views
      0 likes
      Last Post Christopher Leggit  
      Working...
      X