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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
65 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
149 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
99 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
286 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment