Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Auto Cancel not working after Entry order
Collapse
X
-
Auto Cancel not working after Entry order
I have a strategy that uses 2 data series. The triggering indicator is based on the primary series which triggers the entry and exit orders on the secondary series (one sec bars) of a separate instrument. I just started using the strategy live. I am connected to TWS as my execution account through api. I have noticed that when the market entry order doesn't get filled, the order does not get auto cancelled as I believe it should on next bar update for "Enter" orders. in fact it never auto cancels. The auto cancel does seem to work using paper account. Any ideas to fix/enable the auto cancel? Thanks. -
Hello pilotfo,
A market order should not expire or cancel, that will need to fill after submission. The other type orders which have fixed prices like limit or stop limit/market will expire after 1 bar elapses if you are not using isLiveUntilCancelled with those orders.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Hello pilotfo,
No that would apply to any resting order which would remain active until filled. Market type orders are filled at the next available price. You can read about the different order types and how they are used for trading on trading education websites like the public site investopedia.com. https://www.investopedia.com/terms/m/mar****rder.asp
Please let me know if I may be of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by techgetgame, Yesterday, 11:42 PM
|
0 responses
8 views
0 likes
|
Last Post
by techgetgame
Yesterday, 11:42 PM
|
||
Started by sephichapdson, Yesterday, 11:36 PM
|
0 responses
2 views
0 likes
|
Last Post Yesterday, 11:36 PM | ||
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,613 views
0 likes
|
Last Post
by aligator
Yesterday, 07:22 PM
|
||
Started by jaybedreamin, Yesterday, 05:56 PM
|
0 responses
10 views
0 likes
|
Last Post
by jaybedreamin
Yesterday, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
20 views
0 likes
|
Last Post
by DJ888
Yesterday, 05:12 PM
|
Comment