• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 digibob, 07-08-2020, 03:45 AM
            5 responses
            35 views
            0 likes
            Last Post johnnymustard  
            Started by kanavancbduk, Today, 01:21 AM
            0 responses
            7 views
            0 likes
            Last Post kanavancbduk  
            Started by yalmandraku, Today, 01:21 AM
            0 responses
            5 views
            0 likes
            Last Post yalmandraku  
            Started by kanavancbduk, Today, 01:20 AM
            0 responses
            4 views
            0 likes
            Last Post kanavancbduk  
            Started by josenfit, Today, 01:03 AM
            0 responses
            3 views
            0 likes
            Last Post josenfit  
            Working...
            X