Internal Bar Strength In Consumer Staples
|July 16, 2017||Posted by Oddmund Grotte under strategies|
Internal bar strength is defined as follows: (close-low)/(high-low).
Here is the strategy tested on XLP:
- Yesterday IBS must be lower than 0.15
- Today IBS must be lower than 0.4
- RSI(5) today must be lower than 50
- Entry on close
- Exit when today’s close is higher than yesterday’s high
Here is the equity curve:
2008 was actually by far the best year:
And here are all the trade details:
When testing for optimization there is a clear pattern that it’s best with a low IBS yesterday and a bit higher today. Here is the code for Amibroker:
Buy= ibs<oddis AND Ref(ibs,-1)<oddis1
Of course, annual return is pretty low, but that is because the strategy spends most of the time on the sidelines. The strategy spends about 505 days in the market over this period, only around 16% of the trading days.