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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      62 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X