thanks,
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Cancel sell stop
Collapse
X
-
Cancel sell stop
It seems my code cancels my sell stop order as soon as it is set...what would cause this ?
thanks, -
Hello nohedge,
You may be violating one of the NinjaTrader Internal Order Handling rules listed from the link below:
You can find more information as to why this stop is canceling by enabling the TraceOrders property in your Initialize() method:
I'd suggest enabling trace orders and checking the error. If you're unsure how to interrupt the output, please paste this information to your next response and we can help you determine why this is occurring.MatthewNinjaTrader Product Management
-
trace on
Sell Stop Order for CROX has been Submitted.
Sell Stop Order for CROX has been Accepted.
Sell Stop Order for CROX is Working.
4/19/2011 9:47:00 AM Cancelled expired order: BarsInProgress=0: Order='NT-00002/Sim101' Name='Sell' State=Working Instrument='CROX' Action=Sell Limit price=0 Stop price=18.668 Quantity=188 Strategy='sampleAtm0' Type=Stop Tif=Gtc Oco='' Filled=0 Fill price=0 Token='4bfa6b28c4334f699b6203502085cd26' Gtd='12/1/2099 12:00:00 AM'
Cancel sell stop for CROX has been Submitted
Sell stop for CROX has been Cancelled.
This is what I get...I added my own prints for debugging
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
23 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
115 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
68 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
223 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
406 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|

Comment