Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Limiting simultaneous orders

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

    Limiting simultaneous orders

    I have 10 instruments enabled on the strategy. I want to limit it to only trade one contract on up to 3 of the 10 strategy's at any given time. Are there settings in ninajtrader for this?

    #2
    Originally posted by brucelevy View Post
    I have 10 instruments enabled on the strategy. I want to limit it to only trade one contract on up to 3 of the 10 strategy's at any given time. Are there settings in ninajtrader for this?
    Setting EntriesPerDirection = 1 will limit to 1 contract.

    I'm not aware of anything in NT7 that will allow you to limit to 3 out of 10 running strategies.
    You'll probably have to program this, with a static variable to count how many entries you perform, and if there are 3 - do not enter long/short.



    I have searched about static variables in C#, but I am still not getting what its use is. Also, if I try to declare the variable inside the method it will not give me the permission to do this. Why...

    Comment


      #3
      Hello brucelevy,

      Thank you for your post.

      Seldge is correct, the UI allows you to limit the strategy instance but nothing over all running strategies. So as sledge suggested you would need you own tracking for this.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      134 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      75 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      119 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      114 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      92 views
      0 likes
      Last Post CarlTrading  
      Working...
      X