Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Applying ATM Strategy to open Positions

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

    Applying ATM Strategy to open Positions

    Dear NinjaTrader Support Team,

    I hope this message finds you well. I am currently developing an add-on for NinjaTrader and have encountered a requirement that I would like your assistance with. Specifically, I am looking for guidance on the following:
    1. Applying a Specific ATM Strategy to an Open Position:
      • In the NinjaTrader platform's position panel, there is functionality to apply an ATM strategy to an existing position. I am seeking to replicate this feature programmatically within an add-on. Could you please provide insight into whether it is possible to apply a pre-defined ATM strategy to an open position through an add-on and, if so, how this can be achieved?
    Click image for larger version

Name:	atm_40.png
Views:	114
Size:	34.0 KB
ID:	1323551
    1. Accessing Take Profit and Stop-Loss Orders of an ATM Strategy:
      • Additionally, I am interested in retrieving the properties of the take profit (TP) and stop-loss (SL) orders associated with a selected ATM strategy. Is there a method or approach within the NinjaTrader API that allows an add-on to access and display the TP and SL orders, including their properties (e.g., price levels, quantities)?
    ​Any documentation, examples, or guidance you could provide on implementing these features would be greatly appreciated.

    Thank you in advance for your time and support. I look forward to your response.

    Best regards,

    Zadomani​

    #2
    Hello Zadomani,

    The option in the control center to attach an ATM to a position is specific to that window, that is not exposed in NinjaScript. you can submit new atms from an addon but that is not associated with a specific position.

    To access orders submitted by an ATM the OrderUpdate event on the account can be used to monior for new order events. https://ninjatrader.com/support/help...rderupdate.htm

    Comment


      #3
      Thank you for your previous response.

      I would like to clarify my second question to ensure my request is properly understood.

      I am interested in accessing the detailed configuration of an ATM strategy that is selected within my add-on. Specifically, I would like to retrieve information about the selected ATM strategy’s predefined targets, including the quantity, the stop loss and take profit properties at least.

      Click image for larger version

Name:	{2EB675F8-E7AC-4164-87A0-D91E2CE37A36}.png
Views:	85
Size:	24.1 KB
ID:	1323642

      Thank you again for your time and support.​

      Comment


        #4
        Hello Zadomani,

        There is not any means to access the template information from an ATM, that is configured manually through the user interface. The NinjaScript based ATM methods in addon or strategy bases are only used for initiating the ATM which runs separately.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        89 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        135 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        119 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X