Quantifying The Market Type With ROC and ATR
Quantifying The Market Type With ROC and ATR
The following rules provide an idea as to how you might want to quantify both market
direction and volatility using the ROC% and Average True Range Percentage indicator.
The reason for calculating volatility with the average true range percent indicator instead of
simply the average true range, is that we want to keep the volatility measurement relative to
the price of what we’re analysing.
For example, if the S&P500 is trading at 2100 it will obviously have a higher ATR than if it’s
trading at 600. However, that doesn’t tell us anything useful about how volatile the market is
compared to its own history.
The ATR percentage indicator divides the 21 day ATR by the closing price each day and so
whether the market being analysed is at 2100 or 600, the measurement of volatility remains
relative.
For this example we’ll assume that we’re swing trading and so we set the parameters
accordingly. If we were more interested in the longer term market direction we could use the
past 200 days in our calculations.
Conversely, if we are more interested in the short term market direction we could use maybe
the past 21 days in our calculations.
Further, the exact same parameters below are applied to the SPY and then each of the 9 major
sector ETFs. These broad parameters do a reasonable job of telling us what the current
market type is for a variety of sectors.
However, you could test different parameters for each specific sector ETF that you’re
analysing to better quantify the market direction classifications for each sector.
We’ll begin by quantifying the market/sector direction. To do this we’ll use a 63 day ROC%
indicator (note that 63 trading days is roughly 3 months).
We’ll then calculate the ATR% mean and standard deviation using the past 2 years of data.
Keltner Bands
Finally, when analysing a sideways market it often helps to have a quantifiable method for
determining if the price is trading towards the high or low end of a trading range.
The Keltner bands do a good job of this although you could use Bollinger bands, X day
Highs/Lows, or Overbought/Oversold oscillators.
In the following example we see a price chart of the REIT sector ETF $RWR. Beneath the
price series I have also plotted the 63 Day ROC% indicator and also the ATR% Indicator.
Note that when $RWR was trading sideways there was an edge to buying if price was trading
towards the lower Keltner Band, or towards price support, or when the Oscillator became
oversold.
If you were analysing an individual REIT such as $AGNC, you would want to avoid placing
a buy order if your analysis of the broader REIT sector showed that it was trading sideways
and also trading at the top of a range.
These are just some simple ideas that you can test for yourselves if interested in shorter-term
or swing trading setups.
For example, note in the following chart that the market type for most of the period being
analysed was sideways normal or sideways quiet.
We see that during this market type it was profitable to sell at the upper Keltner bands or
when the oscillator was high. It was also profitable to buy at the lower Keltner bands or when
the oscillator was low.
In the next lesson you can download an Amibroker explorer which will make your
market/sector type analysis easier.
For example, the explorer tells you both the market type and whether or not the price is
trading towards the top or bottom of a price range.
Note that today (06/07/17) there are a few sectors which are both sideways and trading
towards the bottom of their range.
A profitable trade idea would be to place a buy stop order for XLK above today’s high.
Reasons for the trade include the sector being sideways normal and also trading at an obvious
level of prior price support and the lower Keltner Band.
If the entry order is filled then an initial profit target for the position would be placed at the
most recent 10 ten day high.
Stops would be placed beneath the most recent 5 day low or at least 1.1 * ATR below entry
price. Whichever is lower.