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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
64 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
35 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
51 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment