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

How to dynamically override ATM strategy template order quantity

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

    How to dynamically override ATM strategy template order quantity

    Support,

    I am developing a strategy that will include position sizing (say 'n' quantity as a measure of x% risk I take per trade based on my account size). This means the quantity will be dynamically determined for each trade I take.

    I would like to take advantage of the ATM strategy templates while placing the order so that my stops are managed more efficiently and I can control the Buy/Sell orders using the Chart Trader.

    Since the ATM strategy template is predefined with a quantity field, please comment how I can override the quantity setting within an ATM template while placing the order. Also advice on any alternatives, examples, best practices or workarounds.


    Thanks in advance.



    #2
    Hello tradewarrior,

    Thank you for the post.

    The quantity cannot be changed dynamically in the template, the closest to this would be to make a few variations of the template with different quantities and then use different templates in your logic depending on the situation.



    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Jesse,

      Thanks for your response. This looks like a reasonable workaround.

      Can you comment if there is an option to programatically apply an ATM Strategy on top of an open position. This is similar to what we might otherwise do under the positions tab manually.

      If this feature is supported, the strategy code can place a normal Entry and later modify the confirmed position by applying an ATM template on top of it.

      Is this something possible?

      Comment


        #4
        Hello tradewarrior,

        That is currently only a manual feature, or would otherwise be undocumented if there is a way to access it. I am not aware of any specific way to attach it like you would from the control center through code. I will put this in as a feature request if we don't already have this submitted.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Thanks a lot for your clarification. Let me ask you one last question before I close this subject.

          Is there a shortcut key available/configurable to set the ATM Strategy quantity field?

          Comment


            #6
            Hello tradewarrior,

            The quantity in the ATM strategy would not be able to be set by a shortcut, the ATM is a template file that needs saved so updating it requires going into the template and changing it.

            I look forward to being of further assistance.
            JesseNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by RookieTrader, Today, 09:37 AM
            3 responses
            15 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by kulwinder73, Today, 10:31 AM
            0 responses
            5 views
            0 likes
            Last Post kulwinder73  
            Started by terofs, Yesterday, 04:18 PM
            1 response
            23 views
            0 likes
            Last Post terofs
            by terofs
             
            Started by CommonWhale, Today, 09:55 AM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by Gerik, Today, 09:40 AM
            2 responses
            7 views
            0 likes
            Last Post Gerik
            by Gerik
             
            Working...
            X