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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      60 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      147 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      161 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      97 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      284 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X