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 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