Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM Strategy Create Quantity

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

    ATM Strategy Create Quantity

    I see no way to change the quantity while the order is pending. So I must manually change the ATM? Is there a way to do this in code? Or to create a new ATM in code?

    #2
    Hello kenz987,

    Thank you for the message.

    Could you please provide some more information and clarifying details about what you are doing and need further help with.
    • Are you creating your own NinjaScript Strategy?
    • Are you working with or modifying someone else's NinjaScript Strategy?
    • Are you working with ATM Strategies only?

    I see you mention something about a code, but ATM Strategies don't require code.

    Would this have been better posted in the Indicator Development or the Strategy Development section of the forum?


    We look forward to your response and resolving your inquiry.

    Comment


      #3
      Yes I wrote a Strategy, in NinjaScript "code" and I invoked the command ATMStrategyCreate having the required ATM already in place, but there is no way to over-ride the quantity or modify it if the Create is a BUYSTOP, I can move the line with the mouse to change price, or use Script "code", but can not change Quantity. You can move this to any other section if that is where if belongs. Thanks, Ken The second question is, if the above is not possible, can I edit the ATM in NinjaScript "code" I dont know what else to call it...?
      Last edited by kenz987; 02-07-2023, 10:24 AM.

      Comment


        #4
        Hello, thanks for writing in. The Quantity needs to be pre-determined in the ATM template before the ATM template is submitted by the strategy. There is no supported way to change the template as it is an XML file that resides in Documents\NinjaTrader 8\templates\AtmStrategy. You can use C# to modify these files, but unfortunately, we do not have any examples of this, you would need to research how to modify XML files through C#.

        Comment


          #5
          OK Thanks for the help!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          20 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          119 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          63 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          45 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X