Technical Indicators & Overlays
Technical Indicators & Overlays
(4)
İÇİNDEKİLER
I
1.8.2. The Linear Regression Forecast Formula .............................................................................. 32
1.8.3. Chart LRF With StockChartsACP ........................................................................................... 32
1.9. Linear Regression Intercept ................................................................................................................. 35
1.9.1. What Is the Linear Regression Intercept (LR-I)? .................................................................... 35
1.9.2. How To Chart the LR-I Using StockChartsACP ..................................................................... 35
1.10. Linear Regression R2........................................................................................................................... 37
1.10.1. What Is the Linear Regression R2 Indicator? ......................................................................... 37
1.10.2. Charting LR-R2 in StockChartsACP ....................................................................................... 37
1.11. Lowest Low Value ................................................................................................................................ 39
1.11.1. What Is the Lowest Low Value Indicator? .............................................................................. 39
1.11.2. Charting the Lowest Low Value .............................................................................................. 39
1.11.3. Trading With Lowest Low Value ............................................................................................. 39
1.12. Mass Index ........................................................................................................................................... 40
1.12.1. What Is the Mass Index? ........................................................................................................ 40
1.12.2. SharpCharts Calculation ........................................................................................................ 40
1.12.3. Signals .................................................................................................................................... 42
1.12.4. Tweaking ................................................................................................................................ 43
1.12.5. The Bottom Line ..................................................................................................................... 44
1.12.6. Using with SharpCharts .......................................................................................................... 45
1.12.7. Suggested Scans ................................................................................................................... 46
1.12.7.1. Mass Index Bullish Reversal................................................................................... 46
1.12.7.2. Mass Index Bearish Reversal ................................................................................. 46
1.13. MACD (Moving Average Convergence/Divergence) Oscillator ............................................................ 47
1.13.1. What Is the Moving Average Convergence/Divergence Oscillator? ....................................... 47
1.13.2. How Do You Calculate the MACD? ........................................................................................ 48
1.13.3. How Do You Interpret the MACD? ......................................................................................... 48
1.13.3.1. Convergence/Divergence ....................................................................................... 48
1.13.3.2. Oscillator ................................................................................................................. 49
1.13.4. Signal Line Crossovers .......................................................................................................... 49
1.13.5. Centerline Crossovers ............................................................................................................ 51
1.13.6. Divergences ........................................................................................................................... 54
1.13.7. The Bottom Line ..................................................................................................................... 56
1.13.8. Using MACD With SharpCharts ............................................................................................. 57
1.13.9. Suggested Scans ................................................................................................................... 58
1.13.9.1. MACD Bullish Signal Line Cross ............................................................................ 58
1.13.9.2. MACD Bearish Signal Line Cross ........................................................................... 58
1.13.10. MACD FAQs ........................................................................................................................... 59
1.13.11. Additional Resources ............................................................................................................. 59
1.13.11.1. Stocks & Commodities Magazine Articles .................................................... 59
II
1. Technical Indicators
1. Technical Indicators
1.1.2. Calculation
The formula for this indicator is quite simple:
(close - MA)/MA
The MA value is subtracted from the close in order to determine the difference between the two values. The
difference is divided by the MA value in order to convert the raw value to a percentage.
Note: Our formula above is not specific about the type of moving average. This indicator can be charted with
either a simple or exponential moving average (SMA or EMA).
1.1.3. Interpretation
Indicator values can fall above or below the zero line, depending on whether price is above or below the
moving average. Zero line crossovers correspond to price/MA crossovers, but those crossovers are relatively
easy to spot on the chart itself.
Note: Even with the values expressed as a percentage, different securities may have somewhat different
extreme levels. It is recommended to first look at a long-term chart of the security to get an idea of its unique
extreme levels.
Once the plug-in is installed, the Distance From Moving Average indicator can be added from the Chart
Settings panel for your StockChartsACP chart. The indicator can be positioned above, below, or behind the
security's price plot.
By default, the indicator uses a 200-period SMA, but the number of periods and the type of moving average
can be adjusted to meet your technical analysis needs. In addition, the indicator values can be plotted as
either a line chart or a histogram.
Learn More. For more details on the syntax to use for Distance From MA scans, please see our
Scanning Indicator Reference in the Support Center.
The other two parts form the Box ratio, which uses volume and the high-low range. EquiVolume charts are
based on volume and the high-low range as well. The Box ratio is the denominator of EMV. Note that volume
is divided by 100,000,000 to keep it relevant with the other numbers.
Relatively low volume and a relatively large high-low range will produce a smaller denominator (Box ratio),
which means the EMV value will be larger because of division by a smaller number. The Box ratio would be
0.50 if V/10000000 equals two and the high-low range equals four. A wide range on low volume implies
relatively easy price movement. In other words, it didn't take much volume to move prices.
A relatively small high-low range on high volume would produce a larger denominator, which means the EMV
value will be smaller. The denominator would be two if V/10000000 equals four and the high-low range equals
two. This implies that price movement was difficult because there was a relatively small high-low range on big
volume.
Spreadsheet
Chart 1
The red arrow shows an EMV value near -3, which is very negative. This is because volume was low and the
high-low range was large. This implies that prices declined with relative ease and there was little or no buying
pressure. The green arrow shows an EMV value near +3. Again, volume was low and the high-low range was
large. This means prices advanced with relative ease and there was little or no selling pressure.
The chart below shows Jabil Circuit (JBL) with the 14-period Ease of Movement indicator. This is a 14-period
simple moving average of each period's EMV value.
Chart 2
Chart 3
The second example shows Valero Energy (VLO) with EMV signals confirmed by relative strength index (RSI)
and the price chart. After advancing from January to mid-March, VLO reversed course and broke support at
the end of March. Notice that EMV broke its late February low and moved deep into negative territory at the
end of March. Additionally, RSI broke to its lowest level since early January. The second reversal occurred
when VLO broke resistance in mid-July. EMV began to improve before this breakout and was firmly positive at
the time of the breakout. RSI also confirmed with a break above its April high and a move above $55.
Chart 4
Chart 5
Chart 6
For more details on the syntax to use for Ease of Movement scans, please see our Scanning Indicator
Reference in the Support Center.
Calculation of the 1-period Force Index is straightforward. Simply subtract the prior close from the current
close and multiply by volume. The Force Index for more than one day is simply an exponential moving
average of the 1-period Force Index. For example, a 13-period Force Index is a 13-period EMA of the 1-period
Force Index values for the last 13 periods.
Three factors affect Force Index values. First, the Force Index is positive when the current close is above the
prior close. The Force Index is negative when the current close is below the prior close. Second, the extent of
the move determines the volume multiplier. Bigger moves warrant larger multipliers that influence the Force
Index accordingly. Small moves produce small multipliers that reduce the influence. Third, volume plays a key
role. A big move on big volume produces high Force Index values. Small moves on low volume produce
relatively low Force Index values. The table below shows the Force Index calculations for Pfizer (PFE). Line 27
marks the biggest move (+84 cents) and the biggest volume (162,619). This combination produces the biggest
Force Index value on the table (136,600).
The chart above shows the Force Index in action. Notice how the 1-period Force Index fluctuates above/below
the zero line and looks quite jagged. Elder recommends smoothing the indicator with a 13-period EMA to
reduce the positive-negative crossovers. Chartists should experiment with different smoothing periods to
determine what best suits their analytical needs.
1.3.5. Divergences
Bullish and bearish divergences can alert chartists of a potential trend change. Divergences are classic signals
associated with oscillators. A bullish divergence forms when the indicator moves higher as the security moves
lower. The indicator is not confirming weakness in price; this can foreshadow a bullish trend reversal. A
bearish divergence forms when the indicator moves lower as the security moves higher. Even though the
security is moving higher, the indicator shows underlying weakness by moving lower. This discrepancy can
foreshadow a bearish trend reversal.
Confirmation is an important part of bullish and bearish divergences. Even though the divergences signal
something is amiss, confirmation from the indicator or price chart is needed. A bullish divergence can be
confirmed with the Force Index moving into positive territory or a resistance breakout on the price chart. A
bearish divergence can be confirmed with the Force Index moving into negative territory or a support break on
the price chart. Chartists can also use candlesticks, moving average crosses, pattern breaks and other forms
of technical analysis for confirmation.
The chart above shows Best Buy (BBY) with the Force Index (39) sporting a series of divergences. The green
lines show bullish divergences and the red lines show bearish divergences. A bullish divergence is confirmed
when the Force Index (39) crosses into positive territory (green dotted lines). A bearish divergence is
confirmed when the Force Index (39) crosses into negative territory (red dotted lines). Chartists can also use
trend line breaks on the price chart for confirmation.
This chart shows two versions of the Force Index. The Force Index (13) captures short-term fluctuations and is
more sensitive. The Force Index (39) captures medium-term fluctuations and is smoother. The 39-day Force
Index produces fewer and longer-lasting zero line crossovers and these crossovers last longer. There is no
right or wrong answer for these settings; it all depends on personal trading objectives, time horizon and
analytical style.
With the 22-day EMA rising, traders are looking for very short-term pullbacks when the 2-day Force Index
turns negative. Traders can act when the Force Index turns negative or wait for it to move back into positive
territory. Acting when negative may improve the reward-to-risk ratio, but the correction could extend a few
more days. Waiting for the Force Index to turn positive again shows some strength that could signal the
correction has ended. The green dotted lines show when the 2-day Force Index turns negative.
Learn More. For more details on the syntax to use for Force Index scans, please see our Scanning
Indicator Reference in the Support Center.
The Gopalakrishnan Range Index applied to iShares 1–3 year Treasury Bond ETF (SHY)
If you're looking to take advantage of a market where mega tech stocks are moving higher quickly and you
decided to invest in SHY, you should be prepared to wait for a very long time before making an acceptable
investment return.
The High Low Bands indicator can identify trend direction, overbought/oversold conditions, support and
resistance levels, and volatile trading conditions.
Trend Direction. If the price consistently touches or exceeds the upper band, the indicator suggests a strong
uptrend. Conversely, if the price persistently touches or falls below the lower band, it indicates a strong
downtrend.
Overbought/Oversold Conditions. Prices near the upper band might indicate an overbought condition.
Prices near the lower band might indicate an oversold condition. It’s best to check these readings with other
indicators that interpret potential overbought/oversold readings (such as the Relative Strength Index or the
Stochastic Oscillator).
Support and Resistance. The upper and lower bands can sometimes serve as dynamic support and
resistance levels, with the middle band serving as a mean reversion level toward which prices may gravitate.
Volatility. Although the bands don't dynamically adjust to volatility like Bollinger Bands, High Low Bands can
still be a visual reference to gauge price volatility.
High HML Value. A significant difference between the high and low prices suggests high market volatility,
potentially indicating increased trading activity and interest in the asset. Some traders might interpret this as a
signal for potential market turbulence or that a “spike” in volatility might suggest the onset of a more significant
directional move.
Low HML Value. A small price range indicates lower volatility, suggesting more stable market conditions and
potentially less trading interest. If prices are in consolidation, it can also mean that the market is poised for a
sizeable explosive move toward a given direction.
High Minus Low indicator remains under 0.40 most of the time, although occasionally you'll see a spike.
Note that the HML range is largely under 0.40 for most daily sessions (blue dotted line). The range will
occasionally expand, but it typically won’t deviate too far above 0.40.
Now, look at the two HML spikes (red circles). The first spike led to a short-term rally that fizzled into a low-
volatility downtrend. In March 2024, an uptrend resumed, but the volatility remained low. In April 2024, there
was a second spike, which reversed the uptrend.
Sometimes, range expansion precedes a change in trend. Sometimes, changes in trend will occur in the
absence of any significant range expansion.
The following are a few other ways to use the HML indicator.
Volatility analysis. By tracking the fluctuations in the HML values, you can identify periods of higher or lower
market volatility, which can inform your decisions about risk management and investment timing.
Timing the market. Low volatility periods (low HML values) might signal that the market is poised for a large-
range expansion. Range expansions can present an opportunity to enter the market depending on your trading
strategy. In this case, it would help to use other indicators to fine-tune your setup and entry.
1) Enter the symbol for the stock, index, or exchange-traded fund you want to analyze.
2) From Chart Settings, scroll down the list of Standard Indicators.
3) Select Linear Regression Forecast.
Want to change the color, style, or any other indicator parameter? Select the settings icon next to the indicator
and choose your parameters.
Periods. The default setting is 14, but you can change it to any number of bars you wish to use to calculate
LRF.
Calculated From. There are various choices here—solid, solid (thin), solid (thick), dashed, etc. Take your
pick. Select the value you want to use for calculations. This can be the open, high, low, close, (H + L)/2, (H + L
+ C)/3, (H + L + 2C)/4, (O + H + L + C)/4
Line Style. You have a few choices here—solid, solid (thin), solid (thick), dashed, etc. Take your pick.
Opacity. Use the slider to select the transparency of LRF.
Colors. Choose the color for LRF that you prefer to view on your chart.
Add Overlays. Sometimes, additional overlays can help confirm trend direction. This dropdown menu offers
several overlays to choose from.
The chart below shows an example of a StockChartsACP chart with the LRF indicator.
So, how can the LRF indicator help you invest or trade? The last point forecasts price direction. In the chart
above, the short-term trend is up. If the stock price continues moving upward, you can add other indicators
such as moving averages to confirm the trend’s strength and/or momentum. This can help you decide whether
to buy, hold, or sell an asset.
1) Enter the symbol for the stock, index, or exchange-traded fund you want to analyze.
2) From Chart Settings, scroll down the list of Standard Indicators.
3) Select Linear Regression Intercept.
To change the color, style, or other indicator parameter settings for LR-I, select the settings icon next to the
indicator and choose your parameters.
Periods. The default setting is 14, but you can change it to any number of bars you wish to use to calculate
LR-I.
Calculated From. There are various choices here—solid, solid (thin), solid (thick), dashed, etc. Take your
pick. Select the value you want to use for calculations. This can be the open, high, low, close, (H + L)/2, (H + L
+ C)/3, (H + L + 2C)/4, (O + H + L + C)/4;
Line Style. You have a few choices here—solid, solid (thin), solid (thick), dashed, etc. Take your pick.
Opacity. Use the slider to select the transparency of LR-I.
Colors. You can choose the color for LR-I that you prefer to view on your chart.
Add Overlays. Sometimes, additional overlays can help confirm trend direction. This dropdown menu offers
several overlays to choose from.
The chart below shows a StockChartsACP chart with the LR-I (blue line) and LRF (red line) indicators.
Combining Linear Regression Intercept and Linear Regression Forecast can help identify bullish and bearish
trends.
The LRF shows trend direction earlier than LR-I, but when LRF crosses above LR-I, it's a stronger
confirmation of the change in trend direction. You can use the LR-I and LRF indicators in any time frame.
Short-term traders find them especially useful in intraday charts.
To change the color, style, or other indicator parameter settings for LR-R2, select the settings icon next to the
indicator and choose your parameters.
Periods. The default setting is 14, but you can change it to any number of bars you wish to use to calculate
LRF.
Calculated From. There are various choices here—solid, solid (thin), solid (thick), dashed, etc. Take your
pick. Select the value you want to use for calculations. This can be the open, high, low, close, (H + L)/2, (H + L
+ C)/3, (H + L + 2C)/4, (O + H + L + C)/4;
Line Style. You have a few choices here—solid, solid (thin), solid (thick), dashed, etc. Take your pick.
Opacity. Use the slider to select the transparency of LR-R2.
Colors. You can choose the color for LR-R2 that you prefer to view on your chart.
Add Overlays. Sometimes, additional overlays can help confirm trend direction. This dropdown menu offers
several overlays to choose from.
LR-R2 can be used with indicators such as the Stochastic Oscillator or the Relative Strength Index (RSI). The
chart below adds the Fast Stochastic Oscillator in a separate panel. On the chart, you see that between April
22 and May 1, 2024 the trend strength had declined from 0.8 to 0. After that decline, the LR-R2 started rising,
and the %K line of the Fast Stochastic Oscillator crossed over the %D line. In addition, the Fast Stochastic
Oscillator moved into overbought territory.
The Linear Regression Forecast indicator was overlaid on the price chart to add additional confirmation. Note
that price crossed above the LRF. All three indicators confirm the start of an uptrend, which means you could
potentially open a long position in SPY.
Single EMA = 9-period exponential moving average (EMA) of the high-low differential
Double EMA = 9-period EMA of the 9-period EMA of the high-low differential
EMA Ratio = Single EMA divided by Double EMA
Mass Index = 25-period sum of the EMA Ratio
Chart 1
The calculation is fairly straightforward. First, the Single EMA provides the average for the high-low range.
Second, the Double EMA provides a second smoothing of this volatility measure. Using a ratio of these two
exponential moving averages normalizes the data series. This ratio shows when the Single EMA becomes
large relative to the Double EMA. The final step, a 25-period summation, acts like a moving average to further
smooth the data series. Overall, the Mass Index rises as the high-low range widens and falls as the high-low
range narrows. A spreadsheet example is shown below.
Spreadsheet 1
Some of the spreadsheet values are off by a penny because the exponential moving average calculation
extends back less than three months. Calculations in SharpCharts extend back two years, which makes the
exponential moving average calculation more robust.
1.12.3. Signals
Donald Dorsey looked for “reversal bulges” to signal a trend reversal. According to Dorsey, a bulge occurs
when the Mass Index moves above 27. This initial bulge does not complete the signal, however. Dorsey
waited for this bulge to reverse with a move back below 26.50. Once the reversal bulge is complete, traders
should use other analysis techniques to determine the direction of the next move. Ideally, a downtrend
followed by a reversal bulge would suggest a bullish trend reversal. Conversely, an uptrend followed by a
reversal bulge would suggest a bearish trend reversal.
Chart 2
The example above shows Chipotle with the Mass Index producing two reversal bulges over a 12-month
period. In both cases, the trend was up when the Mass Index moved above 27, which means a bearish
reversal was expected. The first signal foreshadowed a trading range. The second signal foreshadowed a
sharp decline. Chartists looking for signals will most likely have to relax Dorsey's requirements for the reversal
bulge because the Mass Index rarely exceeds 27. It takes exceptional volatility to push the index above this
level.
1.12.4. Tweaking
Chartists can lower the threshold for a reversal bulge to generate more signals. One size does not fit all when
it comes to volatility. In other words, chartists may need to compare Mass Index levels over time to identify
historical highs and lows. A move that nears the high end of the historical range would suggest a volatility
bulge that could foreshadow a reversal.
The chart below shows International Paper with the Mass Index moving above 26 twice. Even though the
Mass Index touched 27 in August 2011, the 26 level seems more appropriate for a reversal bulge. Additionally,
keep in mind that August 2011 was an extremely volatile period for the entire stock market and this reading
looks like an outlier. The trend was down when the Mass Index moved above 26 in August 2011 and May
2012. This suggested that a bullish reversal would follow and chartists could then use other analytical
techniques to identify such a reversal.
Chart 3
The bottom indicator is the TRIX oscillator, which is the one-period rate-of-change for the triple smoothed
exponential moving average. The TRIX is like the smoothed version of MACD. Once the reversal bulge is in
place and the trading bias established, chartists can use the TRIX to generate a directional signal. Because
the trends were down when these reversal bulges occurred, the trading bias was bullish and only bullish
signals were considered. The green arrows show when the TRIX moved above its signal line to signal an
upturn in prices.
Learn More. For more details on the syntax for Mass Index scans, please see our Scanning Indicator
Reference in the Support Center.
Below is an example chart with the MACD indicator in the lower panel.
The MACD line is the 12-day Exponential Moving Average (EMA) less the 26-day EMA. Closing prices are
used for these moving averages. A nine-day EMA of the MACD line is plotted with the indicator, which acts as
a signal line and identifies reversals. The MACD Histogram represents the difference between MACD and its
nine-day EMA, the signal line. The histogram is positive when the MACD line is above its signal line and
negative when the MACD line is below its signal line.
The values of 12, 26, and 9 are the typical settings used with the MACD, though other values can be
substituted depending on your trading style and goals.
1.13.3.1. Convergence/Divergence
As its name implies, the MACD is all about the convergence and divergence of the two moving averages.
Convergence occurs when the moving averages move towards each other. Divergence occurs when the
moving averages move away from each other. The shorter moving average (12-day) is faster and responsible
for most MACD movements. The longer moving average (26-day) is slower and less reactive to price changes
in the underlying security.
1.13.3.2. Oscillator
The MACD line oscillates above and below the zero line, also known as the centerline. These crossovers
signal that the 12-day EMA has crossed the 26-day EMA. The direction, of course, depends on the direction of
the moving average cross. Positive MACD indicates that the 12-day EMA is above the 26-day EMA. Positive
values increase as the shorter EMA diverges further from the longer EMA. This means upside momentum is
increasing. Negative MACD values indicate the 12-day EMA is below the 26-day EMA. Negative values
increase as the shorter EMA diverges further below the longer EMA. This means downside momentum is
increasing.
some good signals and some bad signals. The yellow area highlights a period when the MACD line surged
above 2 to reach a positive extreme. There were two bearish signal line crossovers in April and May, but IBM
continued trending higher. Even though upward momentum slowed after the surge, it was still stronger than
downside momentum in April-May. The third bearish signal line crossover in May resulted in a good signal.
Below is a chart of Cummins Inc (CMI) with seven centerline crossovers in five months. In contrast to Pulte
Homes, these signals would have resulted in numerous whipsaws because strong trends did not materialize
after the crossovers.
The next chart shows 3M (MMM) with a bullish centerline crossover in late March 2009 and a bearish
centerline crossover in early February 2010. This signal lasted 10 months. In other words, the 12-day EMA
was above the 26-day EMA for 10 months. This was one strong trend.
1.13.6. Divergences
Divergences form when the MACD diverges from the price action of the underlying security. A bullish
divergence forms when a security records a lower low and the MACD forms a higher low. The lower low in the
security affirms the current downtrend, but the higher low in the MACD shows less downside momentum.
Despite decreasing, downside momentum is still outpacing upside momentum as long as the MACD remains
in negative territory. Slowing downside momentum can sometimes foreshadow a trend reversal or a sizable
rally.
The next chart shows Google (GOOG) with a bullish divergence in October-November 2008. First, notice that
we are using closing prices to identify the divergence. The MACD's moving averages are based on closing
prices and we should consider closing prices in the security as well. Second, notice that there were clear
reaction lows (troughs) as both Google and its MACD line bounced in October and late November. Third,
notice that the MACD formed a higher low as Google formed a lower low in November. The MACD turned up
with a bullish divergence and a signal line crossover in early December. Google confirmed a reversal with a
resistance breakout.
A bearish divergence forms when a security records a higher high and the MACD line forms a lower high. The
higher high in the security is normal for an uptrend, but the lower high in the MACD shows less upside
momentum. Even though upside momentum may be less, upside momentum is still outpacing downside
momentum as long as the MACD is positive. Waning upward momentum can sometimes foreshadow a trend
reversal or sizable decline.
Below we see Gamestop (GME) with a large bearish divergence from August to October. The stock forged a
higher high above 28, but the MACD line fell short of its prior high and formed a lower high. The subsequent
signal line crossover and support break in the MACD were bearish. On the price chart, notice how broken
support turned into resistance on the throwback bounce in November (red dotted line). This throwback
provided a second chance to sell or sell short.
Divergences should be taken with caution. Bearish divergences are commonplace in a strong uptrend, while
bullish divergences occur often in a strong downtrend. Yes, you read that right. Uptrends often start with a
strong advance that produces a surge in upside momentum (MACD). Even though the uptrend continues, it
continues at a slower pace that causes the MACD to decline from its highs. Upside momentum may not be as
strong, but it will continue to outpace downside momentum as long as the MACD line is above zero. The
opposite occurs at the beginning of a strong downtrend.
The next chart shows the S&P 500 ETF (SPY) with four bearish divergences from August to November 2009.
Despite less upside momentum, the ETF continued higher because the uptrend was strong. Notice how SPY
continued its series of higher highs and higher lows. Remember, upside momentum is stronger than downside
momentum as long as the MACD is positive. The MACD (momentum) may have been less positive (strong) as
the advance extended, but it was still largely positive.
For more details on the syntax to use for MACD scans, please see our Scan Syntax Reference in the
Support Center.
2) What is the difference between signal line crossovers and centerline crossovers in MACD?
Signal line crossovers occur when the MACD line crosses above or below the signal line, indicating bullish or
bearish signals, respectively. Centerline crossovers occur when the MACD line crosses above or below the
zero line, implying that the shorter-term EMA has crossed the longer-term EMA. This can suggest a change in
the overall trend of the market.