Hello everyone, having spent this holiday season trying to figure, out how to trade calendar spreads in CL contracts I thought i should share the results with you. As you will see there is nothing earth-shatteringly complex about this algo, its just a standard linear mean-reversion trading strategy on CL contracts.
My initial thought was to trade the 1year spread (so 1 and 11 or 12 contracts) however, which showed some promise in the research environment. However, upon researching the topic further, i realized that there is virtually 0 liquidity in the 11 / 12 contract so I was forced to implement it using different spreads.
As you can see i have tried to impose volume restrictions on the algo, i.e. not trade if the average volume the last 4 days is below a certain threshold value. It would be nice to see if any of you have another idea how to model liquidity (model it as a time series ?) to make sure we are actually trading the spread and not just taking positions in the front month.
Other feedback is also greatly appreciated however since the algo is very straightforward i doubt there is much to speak about in terms of in terms of implementation.
Best
Magnus