Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Unprotected position after internet outage
Collapse
X
-
Unprotected position after internet outage
I run a strategy that uses the managed approach and has RealtimeErrorHandling set to StopCancelClose. While the strategy had a position on, 1 lot, with a stop and a target, my internet connection failed. Once it came back up a few minutes later the strategy correctly was disabled and the ATM target and stop orders cancelled. However, the position was not closed so it ended up with an unprotection position. I assumed the error handling was also supposed to close the position. Is that correct? If not, do I need to write my own logic to monitor for unprotected positions? Tags: None
-
It would only be able to close your position if it were still running and connected... since your internet connection failed, it couldn't do anything further until the connection returned. When your internet connection returned, the strategy had already been disabled by the timeout (this is a setting in your Tools -> Options for how long to wait for a reconnection), so since the strategy was disabled, it would not be able to do something like close the position regardless of your settings, because it was no longer running.
-
For what it's worth:
I use the managed approach. I can't speak for your Forex broker/server (you said "1 lot", so I'm assuming Forex), with my strategies in futures, I always put a server-side stop loss order. I then manage the position and exit as wanted as the position moves into profit, but always leaving the sever-side stop loss in place. Why don't I move the stop loss with the trade moving? Because if you try to set the stop loss above the price (for longs, for example), I get an error. It's a pain, so I use market orders for getting out of trailing positions. Yep, slippage occurs but at least I'm out of the market when wanted. In doing so, the server-side stop loss is automatically canceled by the managed approach. You must make sure that you're providing matching names for the trades so the system knows which pending stop loss orders to cancel.
Hope that helps!
Matt
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
44 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
124 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
65 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment