Thanks in advance.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
'Trade Counter' Variable?
Collapse
X
-
'Trade Counter' Variable?
I'm wondering if there is an automated way to limit the number of trades a strategy will make once it hits a certain limit. For example I have a strategy that works well if it trades <10 times, but there are days where it does poorly and much of that is due to overtrading. Is there a way that I can have the strategy turn off after 10 trades? I tried to use the strategy builder to implement a line of code to the effect of "if TradeCount < User Variable", but I can't find a variable as part of the indicators that will serve as a trade counter.
Thanks in advance.Tags: None
-
Hello FutTrader9000,
You could use similar logic to this sample which increments a variable. You would need to increment the series when you submit the entry and then part of your entry condition check that the value is less than the target number of entries.
Is there a way to increment an int in the strategy builder? When I go to set an int equal to itself there's no way to add 1 to it as well. Just wondering if this is possible in the wizard.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
45 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
21 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
31 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
50 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|
Comment