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 ScottW, Today, 06:09 PM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by ScottWalsh, Today, 06:52 PM
      0 responses
      4 views
      0 likes
      Last Post ScottWalsh  
      Started by ftsc2022, 10-25-2022, 12:03 PM
      5 responses
      256 views
      0 likes
      Last Post KeyonMatthews  
      Started by Board game geek, 10-29-2023, 12:00 PM
      14 responses
      244 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Waxavi, 04-19-2024, 02:10 AM
      4 responses
      56 views
      0 likes
      Last Post sonia0101  
      Working...
      X