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 NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
86 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
151 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
79 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
53 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
61 views
0 likes
|
Last Post
|
Comment