Inspired by Brian, who is specialised in corporate finance, I would like to test the optimal EWMA pairs that generate the best short signal. In general, It is said that momentum is a good type of signals to capture upward movement, while EWMA crossing is the one for downward movement.
Here I would like to test which two EWMA crossings would generate the best performance for Hang Seng Index.
Just to describe the method briefly, when the more sensitive (EWMA of 10 days relative to EWMA of 20 days) EWMA plunges the less sensitive EWMA, we open a short contract, and hold the contract until the more sensitive EWMA breaks through the less sensitive one. The difference in index is our profit and loss.
The test data used here springs from 2009 to 2017. I skipped financial crisis because the big downward movement at that time would create bias for the more sensitive pairs. I want to test out the best pair of EWMA under most of the circumstance, but not assuming we have to undergo another financial crisis. Some of you may disagree with this since including data from 2007 to 2008 seems to make the test more robust. However, robustness comes with tradeoff in performance. I aim to discover an optimised strategy that can be run most of the time, but not a general one that would be run and left alone. This is in fact, more efficient and practical since we apply some judgment or out-of-model analysis on whether or not we should adopt this strategy in the first place, making the model more nitche and fit for the current case. In this case, since we are talking about short-sell, skipping financial crisis would make our signal more profitable under general situations.
I tested the profit of two ranges of EWMA signal, 2-60 days for the more sensitive average and 100 to 250 days for the less sensitive one. I would post the code at the end of this article(Python) so you can test any custom range of signals.
Basically the results echo with our general understanding. For the most profitable(in terms of total profit), the use of 20/103 pair tops the list. Pairs around this range have similar performance so it is pretty stable.
In terms of the most efficient trade, amazingly, the performance of 59/237 and pairs around this range have super high gain per trade, smaller maximum loss and standard deviation.
If you have some interesting trading ideas that you want validation, free feel to contact me through twitter or email.
The Code for the testing:
Download Index_09-17.csv on here