Here is a quote from investopedia about how to make the order as market making:
Let's take an example of a stock with a bid price of 25.25 and an ask price of 25.26. If you offer to sell (or short sell) at 25.26 and wait to get filled, you will have provided liquidity and will be credited on many ECNs. On the other hand, if you sell (or short sell) with a market order at 25.25 you will be charged or debited an additional fee on many ECNs because you have removed liquidity. The same works for the bid - if you bid at 25.25 and wait to get filled, you will be credited; if you market buy at 25.26 you are removing liquidity and will be debited. The debit for removing liquidity is almost always more than the credit for providing liquidity.
From what I understand, this means that we should know the bid/ask prices (which we don't have). Is there any way else to do this? one method could be adding/deducting a cent to/from the limit price. But it may not be reliable.
Any other ideas? Thanks!
Petter Hansson
Aside from setting spread as a parameter per symbol, there's not much you can do easily. There are moderately complicated papers on spread estimation models, but one I tried wasn't very accurate at all except for very liquid symbols. Also, I've considered data mining spreads and inputting them live to algo for better estimates, but that's a lot of effort for an auxiliary feature.
Petter Hansson
Then there's the option of buying data of course which while expensive solves the issue in a straightforward manner. ;)
Petter Hansson
Actually, there's one more: Volatility for high resolution trade is likely to reflect the spread. So if you have tick or second resolution, you can probably ensure you place orders outside spreads in the majority of cases by offsetting last trade price by a function of volatility when calculating limit. I don't make an attempt for an exact formula here, it's just my observation you can probably get by with tweaking this until offset is larger than spread / 2 on average.
Patrick Star
Hi Petter,
These are great ideas. The last option especially is brilliant. Because even if we had Level II data, still the dark side of the market will have offers that we are not aware of. So, as long as we get closer to the other side of the spread, that's the best guess.
The only question is, when IB for instance offers an incentive for market makers, should all of the orders be market making? or they calculate the fees separately for maker and taker orders?
Example: IB's tiered model starts from 300,000 shares per month. If we trade 300,000 shares and only 200,000 of them are market maker and the rest is taker, how do they calculate the fees?
If nobody has an answer for this I will call them and will update this thread with their answer.
Petter Hansson
I'm unsure of whether this applies to IB at all; they might hide market taking fee behind their own fees, or is it somehow charged as a part of slippage. I suggest you hear with them, and please let me know what their answer is. A book I'm ever so slowly reading on HFT discusses this rebate a lot so I guess it's supposed to be important at higher trade frequencies.
Patrick Star
Sure thing! if I get a chance tomorrow, I will call them.
BTW, could you share your book's title with us? Thanks!
Petter Hansson
Aldridge - High Frequency Trading, A Practical Guide to Algorithmic Strategies and Trading Systems
To be honest a lot of that book isn't very relevant to building medium freq strategies (it has a more general scope), but it teaches plenty of stuff I didn't know about so I'm happy.
Patrick Star
Agreed. HFT changes every day and by the time that a book is published and finally read, the solutions could be already obsolete. But it's the ideas and learning the market that is very important especially for people like us who are not exactly traders but rather techies :)
Also I usually try to not learn pattern-like solutions because they won't let you think out of the box. Although on the other hand, if you don't learn them, you tend to make mistakes of trying to invent the wheel. So, the key is how to read ideas without letting them stop your creativity. Obviously a very difficult thing to do!
Patrick Star
One more question. When you place a Market order, isn't that considered as adding liquidity? because basically you are taking any price that market provides to you!
Patrick Star
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!