Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Major Problem
Collapse
X
-
Major Problem
As Murphys law goes, something went wrong today, the first day I was not only live but not around to watch. Basically the stradegy had an error and quit, leaving me an open position. As I understood the documentation, when a stradegy errors, the positions are exited, not left open. Is there someone I can send the logs too and see what happened?Tags: None
-
Originally posted by NinjaTrader_Ray View PostCan you point to where in the Help Guide is stated positions are exited? For sure, any working orders should be cancelled.
Sure:
So by that any positions generated by the strategy will be closed, correct?Error handling - Stop, cancel and close
It is a fact that during live operation of a NinjaScript strategy, orders can return errors. These errors can be things like order rejection due to insufficient margin, exchange is shut down, unable to cancel or modify an order. When a NinjaScript strategy detects an order error it will immediately terminate itself, send cancel requests for all working strategy submitted orders and close any current strategy positions.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, Yesterday, 09:41 PM
|
1 response
14 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
31 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
30 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|
||
|
Started by CaptainJack, 03-25-2026, 09:53 PM
|
0 responses
34 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:53 PM
|
||
|
Started by CaptainJack, 03-25-2026, 09:51 PM
|
0 responses
19 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:51 PM
|

Comment