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 cre8able, Yesterday, 04:22 PM
|
1 response
13 views
0 likes
|
Last Post Today, 06:44 AM | ||
Started by stafe, 04-15-2024, 08:34 PM
|
5 responses
28 views
0 likes
|
Last Post Today, 06:42 AM | ||
Started by StrongLikeBull, Yesterday, 04:05 PM
|
1 response
12 views
0 likes
|
Last Post Today, 06:34 AM | ||
Started by Mestor, 03-10-2023, 01:50 AM
|
14 responses
375 views
0 likes
|
Last Post
by z.franck
Today, 06:32 AM
|
||
Started by molecool, 10-09-2017, 10:48 AM
|
5 responses
1,621 views
0 likes
|
Last Post
by trader-ap
Today, 06:29 AM
|
Comment