Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Launching ATM in Strategies

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

    Launching ATM in Strategies

    I resolved to launch ATM within my strategy but I have few questions.
    I understand that multiple ATM, even within the same strategy, do not interfere with each others because they don't have knowledge of the account positions, they only have knowledge of their own positions. As result I would use GetAtmStrategyMarketPosition(atmStrategyId)) to read their status while the parent strategy could monitor the overall account using the AccountItem class. I hope my reading is correct.
    Do ATMs handle partial fill correctly with Continuum and Rhitmic?

    From SampleAtmStrategy, my understanding of ATM is that I should use AtmStrategyCreate() to launch a pre-existing ATM designed on the "Custom Editor Template of the ChartTrader and then I would immediately modify the stop/target parameters using AtmStrategyChangeStopTarget(). Does it mean that I cannot create and ATM from scratch within a strategy?

    Since AtmStrategyChangeStopTarget() only changes the value of one bracket how do I change the values of the 2nd and 3rd ATM target at script level?

    Thank You,
    Gio

    #2
    Hello giogio1,

    You have understood correctly, the ATM's manage themselves outside the strategy so the parent strategy would need to use the given atm methods to interact with those strategies. The AccountItem class could only be used for account values like the PnL, you should other wise use the atm methods for anything related to managing the atms.

    You would need to make a copy of the sample and then edit it to point to the template you wanted to use. There is no way to create templates in NinjaScript so you would only be able to manage the template once its been launched by using the atm methods.

    To change the other target orders you need to specify the name that you see in the control center like Stop2 or Stop3.

    Comment


      #3
      And for the quantity? I have to create an ATM each time I vary the quantities?

      Comment


        #4
        Hello giogio1,

        If you mean the stop and target quantities defined in the template then yes you would need to define different templates for those quantities to be changed.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        50 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        126 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        69 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X