Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

atm on strategy script,number of contracts

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

    atm on strategy script,number of contracts


    hello again, you see I have been able to perfectly add the creation of atm to my code and enter the market with atm strategies.

    But I can't find a way to select the number of orders/contracts other than creating different templates,
    I would need to know if there is a way to tell the quantity directly to the code so as not to have too many templates and work in a cleaner way

    TY again

    #2
    Hello RubenCazorla,

    Unfortunately, the quantity is also saved with the template and cannot be set in code. This is due to the relation between the quantities being split up between the targets, which needs to be setup ahead of time.

    Which means if you must adjust the quantity, you would need to submit the orders without the atm strategy and handle the exits with logic.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3


      I thought it would be possible since manually it is, for example if you select an ATM strategy in the chart trader and put 5 contracts in the order selector qty, it will enter you with the amount of 5 contracts in that ATM strategy, maybe the solution is to make a scrypt that just commits that line of Order Qty


      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      89 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X