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 CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
22 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
121 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
176 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
92 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
134 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|

Comment