Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM Strategy inside Ninjascript strategy

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

    ATM Strategy inside Ninjascript strategy

    I am thinking about using an ATM strategy inside my Ninja Strategy because of management advantages. I have 2 questions I am puzzled about :

    1) In AtmStrategyCreate() What is the purpose of stopPrice? If I have created a ATM strategy , it would already have the stop price identified, so why do I need to specify again. This is not logical to me. I feel I don't really understand integration of ATM within automated strategies.

    2) Can I use a stop strategy? If ATM strategies work as I expected, I don't have to specify in the script, I just have to create it within ATM. Is this correct?



    Afshin

    #2
    Hi Afshin, the purpose of the stop price for the AtmStrategyCreate() is for entries - if you wish to for example trigger an ATM via StopMarket entry, then this would be the field to specify your price. This is not related to the protective Stop price for the exit from a position as defined by your ATM strategy template called.

    Yes, the stop strategy of the called ATM Strategy Template would be used - you would not have to call anything for it via NinjaScript.

    For a complete working example installed on your Ninjatrader, please check into the 'SampleATMStrategy'.

    Comment


      #3
      Select the ATM exit strategy

      Is there a way to select the desired ATM strategy from others using the Parameters?

      I have a strategy and like Afshin I would like to select the exit strategy.

      Many thanks for any and all your help!

      Comment


        #4
        dadof3and3, unfortunately not, you would always call the full ATM template in your AtmStrategyCreate() call, this would include then the saved stop strategy as well.

        For the template itself, you could make it for example a user string input - so you're not 'locked' into using one hard-coded in template.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X