SIG
I had to determine whether there is an opportunity for a profitable trading strategy for the HSI futures during the closing auction in HKSE. This project was divided in two main parts. First one collecting and clean data form Bloomberg Terminal – stock indication data from the closing auction. Organise it using VBA macros and then transform to pandas dataframes. The second stage of the project was the more interesting one which was coming with a trading ideas and backtesting models for trading during the closing auction.
The closing auction is the last event of every trading day and allows market participants to execute at the closing price. During the closing auction we cannot trade stock but we could trade the futures. The goal of the project was to use the information of stock indications during the auction to trade the futures. First I had determine the the fair value for the futures during the closing auction. This was done by calculating the cost of carry for the basket of stocks in the index, also known as the EFP or basis. The second step was to decide what actions to take based on this value and decide when to enter and when to exit trades on the futures market. People trade features for several reasons. They might want to hedge the underlying, in case they want to lock the underlying price from now and do not be susceptivble for its future movements. Another reason is to market make and provide liquidity. Although SIG is a market maker, our reason for trading the futures in this particular project was to speculate and find if there is opportunity for profitable trading strategy.
The approach I took when working on this project was to start with somethng very simple, think carefully about the assumptions I made and test them. In the end I tried 3 different trading strategies, each building on findings from the previous one. So after computing the fair value of the futures, I had to decide what actions I should take. I could not trade at fair value because I would be just taking risk and market exposure for nothing. That is why I decided to test how many bips of edge I needed to enter a trade. I tested 3 different levels – 10bps, 20bps, 30bps.
The simplest stategy with which I started was just to enter trade in the beginning of the auction if I saw enough edge. If the price of the future was above the fair value with 10,20,30 bps I would sell it. If the price of the future was below fair with 10,20,30 bps I would buy it. As for closing the position I would always close position in the end of the auction as I did not want to be exposed during market non-working hours. This strategy was not very good and retained 1 bps out of the 10 bps that it required to enter a trade. However, while trying this strategy I noticed that it almost always entered trades early in the auction just after the reference period between the 1st and 6th minute. The reason for that is because during this period there is higher volatility on the stock indications and the bps I required to enter a trade were tight. I realised that in the beginning of the auction there were some market participants who just wanted to trade at the closing price of the stock but not necessarily had any opinion on the futures. For example some big asset managers just wanted to participate in the auction to get the closing price. In order to take this into account I decided that my strategy should have a warm-up period of 10 seconds after the reference period, during which it cannot enter a trade. This way I wanted to avoid the big fluctuations observed in the beginning of the auction.
Seeing that the first strategy which solely used the fair value of the futures did not work I started doubting my confidence in this fair value. That is why my second strategy was the volume strategy. I computed the historical volumes of stock indications during past auctions, and decided that I would trade the futures only once I see enough edge and the volumes were bigger than a certain threshold which was computing based on the historical volumes. This strategy did not improve the expected profits and still retained 1 bps out of 10 requested to enter a trade. However, the Sharpe ratio was improved slightly, meaning the volume strategy had lower variance while making the same amount of money. Finnally, as it seemed that I could not be confident in the fair value of the futures that I computed from the stock indications, I decided to change slightly the stock indications. Since there were some asset managers and ETF providers which just entered the auction to match the closing price, I decided to clip the data. Stock indications which were in the top 5% were removed because I thought they such stock indications were coming from people who did not have opinion on the futures market and I should not consider them as an input for finding signal. On historical values clipped data strategy retained 5 bps out of 10 bps. So it seemed that there could be some edge there to be made. Another observations I found was that trading later in the auction would be with less risky as the coputed EFP would converge to the fair value of the futures, but in order to enter trades I had to lower the amount of bps we required to enter a trade. Essentially saying that the later you enter a trade the safer it is, but the smaller expected profit you can make.
How does the closing auction work?
Closing auction lasts between 8 and 10 minutes and has 4 periods. The first one is the reference period which takes place during the first minute of the auction. It determines the reference price, (+-5%) around which auction orders can be fulfilled. This period is used to avoid people trying to manipulate the auction.
The second period is order input period during which all market participants submit their orders.
The third period is No-cancellation period between the 6th and 8th minute during which all submited orders cannot be amended or cancelled.
Finally the last two minutes are for the random closing period when the auction finishes.
HSI ~ 25000, spreads 1 or 2.
Buy futures = aggree to buy the underlying from now at a prespecified price. Loose on dividends, as do not own the stock. Win on interest as no need to pay now.
macro analysis: find who are the big players in the auctions: like asset managers, big banks etc. I realised that these big blayer usually submit their orders as early as possible in the auction just to match the closing printing price
Other players on the market the market makers , they tend to submit later in the auction to get more information .
Our goal was to use the infromation during the auction to trade the futures because we could not trade stock during the auction but could trade the futures.
computed daily efp- basis diff between futures and index.
forward looking bias
who are the other players? Do they have opinion on what you trade?