There are many patterns out there – some of them are real, others are just a myth. By back testing them, we can find out which one can give us an edge. In this article, I would like to show how to code and test the famous Turnaround Tuesday pattern for the stock market.
What is the Turnaround Tuesday?
You might have heard of the “Turnaround Tuesday” in the equity indexes. The idea behind it is simple: If the equity index has a negative performance on Monday, then Tuesday`s market action often shows a bullish turnaround. Now let us code this. It is really easy using the dayofweek(date) function:
- In line 2 we check whether today is Tuesday
- in line 3 we check whether the previous day`s close was smaller than the previous day`s open
- If both conditions are met, the strategy goes long at the open
- In line 6 I added a condition which exits the position on the following day`s close (Wednesday close)
Backtesting the S&P 500 ETF – Does the Pattern work?
Here are the results for SPY (without commissions) when each signal was traded with 100k USD:
- 614 trades
- +0.168% on average
- In line 5 we check whether the close was x per cent lower than the open on Monday
- In order to have a flexible parameter, we use an input called MinDown (line 2)
Take a look at the results now:
- the number of trades came down to 129
- the average profit per trade increased from +0.168% to 0.445%
Tradesignal is a registered trademark of Tradesignal GmbH. Unauthorized use or misuse is strictly prohibited. Data by Thomson Reuters Eikon.