Hi all,
My strategy uses limit order to close position, I usually get the market price reach my limit order, but due to the market liquidity isn’t enough, finally cannot close my position.
May I check if anyone has idea to better tackle this situation?
eg. Does MC have function to detect this situation and use market order to close it?
Price reach limit order, but cannot close position [SOLVED]
-
- Posts: 36
- Joined: 03 Sep 2013
- Location: Chicago, IL
- Has thanked: 14 times
- Been thanked: 12 times
Re: Price reach limit order, but cannot close position
Hi,
I'm assuming you want to exit at the limit price and that a market exit is less desirable but not less desirable than a non-fill and the market may or may not return to your exit level.
Under Strategies properties-> Backtesting tab-Backtesting Assumptions, select fill limit order when trade price goes beyond limit price by 1 ticks.
That is a tougher requirement than backtesting and assuming a fill occurred just because it traded at your price.
As far as Auto Trading, you could select "convert unexecuted limit/stop exit orders to market orders after X seconds" to try and ensure your get out at some price.
Hope that helps!
I'm assuming you want to exit at the limit price and that a market exit is less desirable but not less desirable than a non-fill and the market may or may not return to your exit level.
Under Strategies properties-> Backtesting tab-Backtesting Assumptions, select fill limit order when trade price goes beyond limit price by 1 ticks.
That is a tougher requirement than backtesting and assuming a fill occurred just because it traded at your price.
As far as Auto Trading, you could select "convert unexecuted limit/stop exit orders to market orders after X seconds" to try and ensure your get out at some price.
Hope that helps!
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Price reach limit order, but cannot close position
You have a situation.
You have to describe WHAT or HOW do you want to handle this situation.
There are millions of different ways . . . unless you can pinpoint a specific action, no one can help you.
Let me give you an example:
1. if the market came within X ticks of your price (say 2 ticks), start a counter variable (The Close Encounter)
2. if the market fills your order, cancel the counter variable
3. if the market moves away, the counter will keep track of the minutes since the last "Close Encounter".
4. if after Y minutes of the last close encounter, and your order is still not filled, convert the limit order to market order.
THere are still lots of specifics you need to work out, but this is a start to give you an idea on what you can do.
You have to describe WHAT or HOW do you want to handle this situation.
There are millions of different ways . . . unless you can pinpoint a specific action, no one can help you.
Let me give you an example:
1. if the market came within X ticks of your price (say 2 ticks), start a counter variable (The Close Encounter)
2. if the market fills your order, cancel the counter variable
3. if the market moves away, the counter will keep track of the minutes since the last "Close Encounter".
4. if after Y minutes of the last close encounter, and your order is still not filled, convert the limit order to market order.
THere are still lots of specifics you need to work out, but this is a start to give you an idea on what you can do.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Price reach limit order, but cannot close position [SOLVED]
You an use any time frame; it does not matter.
As soon as the market reached X ticks of your price, you can start a counter.
I would suggest you to engage a professional programmer to help you with your project.
As soon as the market reached X ticks of your price, you can start a counter.
I would suggest you to engage a professional programmer to help you with your project.