Thank you.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Limit # of trades taken per session
Collapse
X
-
Limit # of trades taken per session
Hello... I have my session set for a couple hours at the open and my strategy takes from 0 - 6 trades during that time. I'm wondering if I can set a max # of trades to take, like 1 or 2 per day (example). I'm trading TF 12-12 with Renko based data.
Thank you.Tags: None
-
You are using a strategy?Originally posted by Dia1496 View PostHello... I have my session set for a couple hours at the open and my strategy takes from 0 - 6 trades during that time. I'm wondering if I can set a max # of trades to take, like 1 or 2 per day (example). I'm trading TF 12-12 with Renko based data.
Thank you.
Did you build it or someone else?
Are you using the strategy builder, or is this custom code?
You'll need to add a variable for the total trades taken, and add that as a condition.
-
Something like this post, but with integers counting your trades and stopping after x #Originally posted by Dia1496 View PostHello... I have my session set for a couple hours at the open and my strategy takes from 0 - 6 trades during that time. I'm wondering if I can set a max # of trades to take, like 1 or 2 per day (example). I'm trading TF 12-12 with Renko based data.
Thank you.
Comment
-
I set up a basic strategy utilizing the Strategy Wizard as a start for learning how to back test. And yes that is what I am asking for is a variable for the total number of trades taken (in that session). Not for the whole time period I am running the backtest, so it CANrestart the next session.
Comment
-
This would get ugly.Originally posted by Dia1496 View PostI set up a basic strategy utilizing the Strategy Wizard as a start for learning how to back test. And yes that is what I am asking for is a variable for the total number of trades taken (in that session). Not for the whole time period I am running the backtest, so it CANrestart the next session.
I believe this would work to limit to 1 long trade.
You'll need another "set" of checks to check for 2 trades, add variable0 checks in set2 for variable0 = 0, then in set 3, check for marketposition.long, variable =1 , and then set variable0 to 2....etc.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
67 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
36 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
59 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment