Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Default Quantity

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

    Default Quantity

    Hi,

    When writing the my own strategy, how can I set the Default Quantity to be what I have on the existing ATM?
    Is there a way to do that?


    Thanks..








    #2
    Hello Abdullah_KSA,

    Thanks for the post.

    I wanted to clarify, by ATM do you mean you are using ATM strategies in your NinjaScript strategy or do you mean the ATM selector in the chart?

    If you can provide a few more details about what you are building/what ATM you are wanting to access that would be helpful.


    I look forward to being of further assistance.

    Comment


      #3
      Hello Abdullah_KSA,

      Thanks for the reply.

      The Default quantity cannot be variable but you could instead just use your own variable for the quantity here. I am still not clear on how exactly you want to reference the ATM from within your strategy for this question but you could create logic to delegate order quantity for Strategy based orders.

      In your strategy how were you planning on using the ATM specifically? Are you submitting ATM orders or were you just trying to access the templates in some way to retrieve values from a specific template? If you can provide a more clear picture of the end goal that would help me to form an answer here.

      I look forward to being of further assistance.

      Comment

      Latest Posts

      Collapse

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