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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          37 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, Yesterday, 02:41 AM
          0 responses
          17 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          25 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          40 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          34 views
          0 likes
          Last Post CarlTrading  
          Working...
          X