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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
47 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
15 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
21 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment