is there any way to get a strategy to stop trading for the day (and only the the day) after x consecutive losses?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
halt trading after x consecutive losses
Collapse
X
-
Hi diffused, you can check this reference sample for this - http://www.ninjatrader-support2.com/...ead.php?t=4804
-
simplest way is to insert a print statement... something like
Code:Print ("Strategy Halted" + " " + "P&L is:" + " " + Performance.RealtimeTrades.TradesPerformance.Currency.CumProfit + " " + "Number of trades is:" + " " + Performance.RealtimeTrades.Count)
can add a timestamp or something to let you know what time the halt command was sent too
Comment
-
This reference sample (http://www.ninjatrader-support2.com/...ead.php?t=4804) outlines halting a strategy only after a certain profit or loss target is met. Is there a reference sample that outlines halting a strategy after a number of trades are made? For example, After 5 trades for the day, halt strategy.
Comment
-
Welcome to our forums - yes you could check for example into the SampleTradeLimiter script offered here - http://www.ninjatrader.com/support/f...ad.php?t=19182
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
649 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
573 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
576 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment