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 brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
63 views
0 likes
|
Last Post Today, 06:25 AM | ||
Started by volIQ, 03-27-2024, 04:28 PM
|
3 responses
21 views
0 likes
|
Last Post
by RJay
Today, 05:41 AM
|
||
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
72 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
8 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
11 views
0 likes
|
Last Post Today, 02:34 AM |
Comment