Hello guys,
I'm looking for a 'large' position closing strategy.
For example, we have open short pos. of 1000 contracts and we have to close it as soon as possible. But in order book of this instrument we see only 20-50 contracts on each price level. So, our position is tight for market tight now.
Therefore we should not close it by market course this way is not optimal and we can get huge loss doing it.
We neither don't want to transmit order of full pos. amount (1000) to best bid/ask, because arbitrageurs don't sleep too.
Roughly speaking it can be named as "going out from market with current liquidity analisys". Lots of factors can be taken into account here.
The question is: what is the optimal way to close position in limited time without market impact? Do some have any ideas about this algorithm?Strangely enough I didnt find anything about this topic on forums.
I'd look with pleasure for script on any programming language.
Thanks.
I'm looking for a 'large' position closing strategy.
For example, we have open short pos. of 1000 contracts and we have to close it as soon as possible. But in order book of this instrument we see only 20-50 contracts on each price level. So, our position is tight for market tight now.
Therefore we should not close it by market course this way is not optimal and we can get huge loss doing it.
We neither don't want to transmit order of full pos. amount (1000) to best bid/ask, because arbitrageurs don't sleep too.
Roughly speaking it can be named as "going out from market with current liquidity analisys". Lots of factors can be taken into account here.
The question is: what is the optimal way to close position in limited time without market impact? Do some have any ideas about this algorithm?Strangely enough I didnt find anything about this topic on forums.
I'd look with pleasure for script on any programming language.
Thanks.