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 argusthome, 03-08-2026, 10:06 AM
|
0 responses
65 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
23 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
26 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
52 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment