Professional Documents
Culture Documents
233
233
A ppendix A
234
where, if
TR j not = 0,
that
+SDIj = +DMj ÷ TR j ; −SDIj = −DMj ÷ TR j
if
TR j = 0,
that
+SDIj = 0, −SDIj = 0
De te rmination of the ave rage dire ctional inde x = ADX j, ADX j = e xpone ntial
moving ave rage j ( DX, N) , whe re DX j it is calculate d unde r the formula:
TR j = maximal modules from three values |High – Low|, |High – Closej –1|,
|Low – Closej –1|.
Bollinger Bands. An envelope of bands plotted above and below the price bars
on the chart.
A ppendix A
238
Formulas to calculate:
n
2
∑ (Closej − MA)
j =1
UpperBand = MA + D ×
n
n
2
∑ (Closej − MA)
j =1
LowerBand = MA − D ×
n
∑Close j
MA =
j =1
.
n
Parameters: D = standard deviation, n = number of days.
where Pi = the price ( usually closing price) of the current period; Pi − 1 = the
price ( usually closing price) of the previous period.
Daily High/ Low Differential Ratio = (Number of new fifty-two-week highs – Number
of new fifty-two-week lows) ÷ Total number of issues traded during the day
DeMark Range Projections. Used to predict range, high, and low of next bar.
Formulas to calculate:
If the close of the most recent bar is less than the open, then the calcula-
tions are:
If the close of the most recent bar is greater than the open:
If the close of the most recent bar is equal to the open then:
where:
H = today’s high
L = today’s low
Hp = the previous day’s high price
Lp = the previous day’s low price
V = current day’s volume
n
LowerBand = (1 − P ) ∑ Close j
j =1
2
∑Close j
EMA = Close +
j =1 100 − 2
nn +1 n + 1
Exponential Moving Average Difference. Use d to de te ct the pote ntial
re ve rsal of a trend.
Formula to calculate:
EMAdifference
difference = EMA(n1 ) − EMA(n 2 )
1 2
where
Price = the price in the curre nt pe riod ( Close, Open, e tc.) , TR = true range ,
Dev = de viation factor.
N
2
N
2
∑ n x (t ) cos ω(t − τ (ω )) ∑ x (t ) sin ω(t − τ(ω))
1 n =1 n =1
n n n
P (ω) = 2 N +
2σ N
∑ cos2 ω(tn − τ(ω)) ∑ sin 2
ω(tn − τ(ω))
n =1 n =1
where the 10% Trend = the exponential moving average ( EMA) of the daily
number of advancers minus number of decliners with a 10% smoothing constant
( or the nineteen-day EMA) , and the 5% Trend = the EMA of the daily number
1. N.R. Lomb, “Least-Squares Frequency Analysis of Unequally Spaced Data.” Astrophysics and
Space Science 39 ( 1976) : 447–462.
2. http:/ / www.cbi.dongnocchi.it/ glossary/ Lomb.html
A ppendix A
242
∑ PositiveMoneyFlow j
j =1
MoneyRatio = n
∑ NegativeMoneyFlow j
j =1
TypicalPrice ×Volume
j j
PositiveMoneyFlow j = if ...TypicalPrice j > TypicalPrice j −1
0...otherwise
TypicalPrice ×Volume
j j
NegativeMoneyFlow j = if ...TypicalPrice j < TypicalPrice j −1
0...otherwise
Formulas to calculate:
MACD = SMA(n1 ) − SMA(n2 )
SignalLine = SMA(nSig, MACD )
On-Balance Volume. De te cts tre nds in incre ase s or de cre ase s in trading
volume.
Formulas to calculate:
OBVstarting date = 0
A simple n-periodic moving average for the difference of the opening and
closing prices.
QStick = MA( n, ( Close – Open) )
( current day’s high minus high from two days ago) + ( current day’s low minus low
from two days ago)
You can find details on the use of this indicator in DeMark’s book on options.3
The Rate of Change (ROC) Indicator is the difference between the price
of the current period and the price of the previous period, which is located n
periods back from the current one:
ROC = Pi – Pi –n,
Pi = the price of the current period,
Pi –n = the price of the period,
A ten-day ROC tends to oscillate in a fairly regular cycle. Often, price changes
3. T.R. DeMark and T.R. DeMark, Jr., DeMark on Day Trading Options ( McGraw-Hill, 1999) .
C ommonl y U sed T echnical I ndicators
245
can be anticipated by studying past cycles of the ROC and applying the predicted
pattern to the current market.
To construct a ten-day rate of change oscillator, the latest closing price is
divided by the close ten days ago:
ROC = [ ( Close – Close ten periods ago) ÷ ( Close ten periods ago) ] × 100
∑Change j+ ∑Change j−
j =1 j =1
UpTrend = DownTrend =
n n
and
(Close − Close )if (Close − Close ) > 0
Change j + = j j −1 j j −1
0otherwise
Abs(Close j − Close j −1 )if (Close j − Close j −1 ) < 0
Change j − =
0otherwise
Formulas to calculate:
Close j − Lowest..Low..In..n1 ..periods
%K = × 100
Highest..High..in..n1 ..periods − Lowest ..Low..In..n1 ..periods
%D = SMA(%K , n2 )
%D = SMA(%K , n2 )
where:
C = today’s closing price
L = today’s lowest price
O = today’s opening price
Cy = yesterday’s closing price
L y = yesterday’s lowest price
Oy = yesterday’s opening price
Hy = yesterday’s highest price
K = the larger of either ( Hy−C) or ( L y−C)
R = a variable based on the relationship between today’s closing price and
yesterday’s high and low
T = the limit move value
C ommonl y U sed T echnical I ndicators
247
Accumulation when Change > MTV or Distribution when Change < MTV.
HLAverage − HLAverage 2
j j −n
Volatility = × 100
HLAverage j −n 2