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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      558 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      545 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X