Thank you!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Auto Reset StopCancelClose?
Collapse
X
-
Auto Reset StopCancelClose?
Hi, So I was wondering if there was a way to auto restart my strategy after being stopcancelclose due to an error. The error in particular that I'm facing is that sometimes the commodity (NASDAQ/ES) moves so fast that I'm not able to place my stop loss due to it being relatively low currency based stoploss. Which I'm personally fine with but I was hoping you would have a script or example code of something like 'if stopcancelclose happens then restart strategy'
Thank you!Tags: None
-
Hello knbop12,
Thank you for your post.
StopCancelClose will stop the strategy, cancel any remaining working orders, and then close any open positions managed by the strategy by submitting one "Close" order for each unique position. There is no way to have the strategy automatically re-start/re-enable itself after it has stopped. You will need to re-enable the strategy manually.
If you want the strategy to not stop after receiving an order rejection, consider using RealtimeErrorHandling.StopCancelCloseIgnoreRejects , which will perform default behavior (StopCancelClose is the default behavior) on all errors except order rejections.
Please see the Help Guide page below on RealtimeErrorHandling:
If you have any further questions, please let me know.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
54 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
72 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment