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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
49 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
15 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
21 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment