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 Haiasi, 04-25-2024, 06:53 PM
      2 responses
      17 views
      0 likes
      Last Post Massinisa  
      Started by Creamers, Today, 05:32 AM
      0 responses
      5 views
      0 likes
      Last Post Creamers  
      Started by Segwin, 05-07-2018, 02:15 PM
      12 responses
      1,786 views
      0 likes
      Last Post Leafcutter  
      Started by poplagelu, Today, 05:00 AM
      0 responses
      3 views
      0 likes
      Last Post poplagelu  
      Started by fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,408 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Working...
      X