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:	106
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:	77
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 NullPointStrategies, Today, 05:17 AM
        0 responses
        52 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        43 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        48 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X