KDJ is our stochastic oscillator. It locates the close inside the high-low range of the last 9 bars (the raw value, RSV), smooths that into a K line, smooths K into a D line, and adds a J line that exaggerates the gap between them.
The average directional index measures how strong a trend is, not which way it runs.
More momentum indicators
CCI
The commodity channel index (CCI) measures how far the typical price has moved from its 20-bar average, in units of its own average deviation. The 0.015 constant scales it so most readings fall between −100 and +100; level lines sit there.
CCI = (TP − SMA(TP, 20)) / (0.015 × MD), TP = (H + L + C) / 3
Williams %R
Williams %R shows where the close sits within the high-low range of the last 14 bars, on a scale from 0 (at the high) to −100 (at the low). It is the stochastic raw value turned upside down. Level lines sit at −20 and −80, and up to three lengths can be drawn.
%R = (C − HH14) / (HH14 − LL14) × 100
Ultimate Osc
Larry Williams' Ultimate Oscillator measures buying pressure (how far the close sits above the true low) relative to true range, over 7, 14 and 28 bars, and blends the three with weights 4, 2 and 1. Mixing horizons is meant to cut the false signals of a single short window. The scale runs 0 to 100.
UO = 100 × (4 × A7 + 2 × A14 + A28) / 7, A_n = Σ BP / Σ TR over n bars, BP = close - min(low, prev close)
TSI
The True Strength Index smooths one-bar price changes twice with EMAs (25 then 13 bars) and divides by the same double smoothing of their absolute size. The result runs from -100 to +100, and a 7-bar EMA of it serves as a signal line.
TSI = 100 × EMA(EMA(Δclose, 25), 13) / EMA(EMA(|Δclose|, 25), 13), Signal = EMA(TSI, 7)
Aroon
Aroon tracks how recently the highest high and the lowest low of the last 25 bars occurred, scaled to 0 to 100. A fresh high puts Aroon Up at 100; each bar without a new high lowers it by 4. Aroon Down does the same for lows. Ties go to the most recent bar.
Up = 100 × (N - bars since highest high) / N, Down = 100 × (N - bars since lowest low) / N, over the last N + 1 bars, N = 25
Awesome Osc
The Awesome Oscillator compares a 5-bar and a 34-bar simple average of each bar's midpoint, drawn as a histogram around zero. A bar higher than the previous one is drawn in the up colour, a lower one in the down colour.
Momentum is the plain price change over a fixed number of bars: today's close minus the close 12 bars ago, in price units. A second line, MAMTM, is a 6-bar simple average of it.
MTM = close - close 12 bars ago, MAMTM = SMA(MTM, 6)
ROC
Rate of change is the percent move of the close over 12 bars. A second line, MAROC, is its 6-bar simple average. Being in percent, it compares directly across stocks and price levels.
ROC = 100 × (close - close 12 bars ago) / close 12 bars ago, MAROC = SMA(ROC, 6)
TRIX
TRIX is the one-bar percent change of a triple-smoothed EMA of the close (12 bars each layer). The triple smoothing filters out short wiggles, so TRIX shows only the slower momentum. Each EMA layer here starts from a simple average, and a 9-bar SMA of TRIX (MATRIX) acts as a signal line.
The psychological line counts how many of the last 12 bars closed higher than the bar before, as a percent. A 6-bar simple average (MAPSY) smooths it. It ignores the size of each move and only counts direction.
PSY = 100 × (up closes in the last 12 bars) / 12, MAPSY = SMA(PSY, 6)
BIAS
BIAS shows how far the close has strayed from its simple moving average, in percent. Three lines are drawn by default, for 6, 12 and 24-bar averages.
BRAR is a pair of sentiment lines over 26 bars. AR compares how far each bar rose above its open with how far it fell below it. BR does the same against the previous close. In our engine the BR terms are plain differences, so a gap past the prior close can subtract from a side rather than adding zero.
AR = 100 × Σ(high - open) / Σ(open - low), BR = 100 × Σ(high - prev close) / Σ(prev close - low), sums over 26 bars
CR
CR (energy index) compares how far a bar's high reached above the previous bar's midpoint with how far its low fell below it. In our engine CR is computed bar by bar rather than summed over 26 bars (the 26 only sets when it starts), so it is spikier than the textbook form. Four averages of it (10, 20, 40, 60 bars) are each drawn shifted a few bars later.
CR = 100 × max(0, high - M) / max(0, M - low), M = (H + L + C + O) / 4 of the previous bar, MA_n = SMA(CR, n) delayed ceil(n / 2.5 + 1) bars
PPO
The Percentage Price Oscillator is MACD expressed as a percentage of the slow EMA. Because it is scaled, readings can be compared across stocks with very different prices, or across years of one stock. It draws a PPO line, a signal line and a histogram.
The Chande Momentum Oscillator compares the sum of up moves with the sum of down moves over the last 14 bars. Unlike RSI it uses plain sums with no smoothing, so it reacts faster and swings between -100 and +100.
CMO = 100 × (Up - Down) / (Up + Down), Up = sum of positive close changes(14), Down = sum of negative close changes(14)
Relative Vigor Index
The Relative Vigor Index asks how much of each bar's range was covered from open to close. In a healthy advance closes tend to land above opens. Our version uses plain 10-bar simple averages of the body and the range (the classic form applies a 1-2-2-1 weighting first), with a 4-bar SMA signal.
The Stochastic Momentum Index measures where the close sits relative to the midpoint of the 14-bar high-low range, rather than relative to the low as the regular stochastic does. Both the distance and the range are double-smoothed with 3-bar EMAs, which gives a calmer line between roughly -100 and +100.
This is the standard 14-bar Wilder RSI with a 14-bar simple moving average drawn over it. The average smooths the RSI's day-to-day noise and gives a reference line to compare the RSI against.
The Accelerator Oscillator takes the Awesome Oscillator (a 5-bar versus 34-bar average of median price) and subtracts its own 5-bar average. It therefore tracks the change in momentum, a step earlier than AO itself. It draws as a histogram with fixed lengths and no inputs.
AO = SMA(hl2, 5) - SMA(hl2, 34), AC = AO - SMA(AO, 5)
Balance of Power
Balance of Power gauges who controlled each bar: the body (close minus open) divided by the bar's range, so +1 is a bar that opened at the low and closed at the high. Our script averages it over 14 bars and draws a histogram.
BOP = SMA((close - open) / (high - low), 14)
Pretty Good Oscillator
The Pretty Good Oscillator measures how far the close is from its 14-bar simple average, in units of average true range. Expressing the gap in ATRs makes it comparable between calm and volatile stocks. Our script smooths the true range with a 14-bar EMA.
PGO = (close - SMA(close, 14)) / EMA(TR, 14)
Price z-score
The price z-score tells you how many standard deviations the close sits from its 20-bar mean. It is the same idea that sits behind Bollinger Bands, shown as a single number. Our standard deviation divides by n (population form).
z = (close - SMA(close, 20)) / StDev(close, 20)
WaveTrend
WaveTrend is a channel-index oscillator: it measures how far typical price is from its own EMA, scaled by the average distance, much like CCI, and then smooths the result. WT1 is the main line, WT2 a 4-bar SMA of it.
DeMarker compares how much the highs pushed up with how much the lows pushed down over 14 bars. Each bar contributes its rise in high over the previous high and its drop in low under the previous low. The result runs from 0 to 1.
The Force Index multiplies each bar's price change by its volume, so a big move on heavy volume counts for more than the same move on light volume. Our script smooths it with a 13-bar EMA and draws a histogram.
Force = EMA((close - close[1]) × volume, 13)
ROC with MA
Rate of change is the percentage move of the close over the last 12 bars. This script adds a 9-bar simple average of the ROC line, which filters some of the noise and gives a reference to compare against.
The volume-weighted MACD replaces MACD's two EMAs with volume-weighted moving averages, so bars with more volume pull the averages harder. The signal line is still a 9-bar EMA of the difference.
VW-MACD = VWMA(close, 12) - VWMA(close, 26), Signal = EMA(VW-MACD, 9), Hist = VW-MACD - Signal
Stochastic (slow)
The slow (full) stochastic shows where the close sits within the 14-bar high-low range, smoothed once for %K and again for %D. The extra smoothing removes much of the jitter of the raw fast stochastic.
Momentum of RSI is the 10-bar change in a 14-bar Wilder RSI, drawn as a histogram. It asks whether momentum itself is speeding up or slowing down. Note that this script is not the Dorsey Inertia indicator, despite its key: it is simply the RSI's own rate of change in points.
ΔRSI = RSI(close, 14) - RSI(close, 14)[10]
Relative Momentum Index
The Relative Momentum Index is RSI built on the 5-bar change in close instead of the 1-bar change. Looking further back makes it less twitchy and lets it stay in extreme zones longer during trends. Gains and losses are smoothed with Wilder's 14-bar average.
The Disparity Index shows, in percent, how far the close is above or below its 14-bar simple moving average. It is a direct measure of stretch from the average, drawn as a histogram around zero.
Disparity % = 100 × (close / SMA(close, 14) - 1)
Chande Forecast Oscillator
The Chande Forecast Oscillator compares the close with the value of a 14-bar least-squares regression line at the current bar, in percent of the close. In our script the fit includes the current bar, so it measures the gap from the fitted trend rather than a true out-of-sample forecast.
CFO = 100 × (close - LinReg(close, 14)) / close
Qstick
Qstick is the 10-bar simple average of candle bodies (close minus open). It summarises whether recent bars have mostly closed above or below where they opened, in price units, drawn as a histogram.
Qstick = SMA(close - open, 10)
Price Momentum Oscillator
The Price Momentum Oscillator double-smooths the 1-bar rate of change. Our script takes a 35-bar EMA of ROC, multiplies by 10, then a 10-bar EMA, plus a 10-bar EMA signal. The published version uses custom 2/n smoothing and a 20-bar second stage, so our line is somewhat faster.
The Fisher Transform rescales where median price sits in its 9-bar range to between -1 and 1, smooths it, and applies the inverse hyperbolic tangent, so turns show as sharp peaks. The trigger is the line one bar ago.
v = 0.67 × v[1] + 0.66 × ((hl2 - LL) / (HH - LL) - 0.5), F = 0.5 × ln((1 + v) / (1 - v)) + 0.5 × F[1], v clipped to ±0.999
Schaff Trend Cycle
The Schaff Trend Cycle runs a MACD (23 and 50 bar EMAs) through a 10-bar stochastic, smooths it, then repeats the stochastic and smoothing once more. The result swings between 0 and 100, faster than MACD.
M = EMA(close, 23) - EMA(close, 50), D1 = smooth(Stoch(M, 10)), STC = smooth(Stoch(D1, 10)), smooth: x = x[1] + 0.5 × (new - x[1])
Connors RSI
Connors RSI averages three short-term readings: a 3-bar RSI of price, a 2-bar RSI of the up or down streak length, and the percentile of today's 1-bar return among the previous 100 bars. It was designed for very short-term mean-reversion studies.
Laguerre RSI passes the close through a four-stage Laguerre filter, then takes an RSI-style ratio of the up and down steps between stages. Gamma (0.5 by default) sets the smoothing: higher is smoother and slower. It runs from 0 to 100.
LRSI = 100 × CU / (CU + CD), L0 = (1 - g) × close + g × L0[1], Lk = -g × L(k-1) + L(k-1)[1] + g × Lk[1]
QQE
QQE smooths a 14-bar RSI with a 5-bar EMA and then trails it with a line set 4.236 times the double-smoothed average RSI move away, much like an ATR stop on price. Both lines are drawn shifted down by 50, so zero is the RSI midpoint.
R = EMA(RSI(close, 14), 5), DAR = 4.236 × EMA(EMA(|R - R[1]|, 27), 27), QQE line = trailing R - DAR (long) or R + DAR (short), plotted minus 50
Cyber Cycle
Cyber Cycle is a high-pass filter applied to a lightly smoothed price: it removes the slow trend and keeps the swing component. Alpha 0.07 sets how much trend is filtered out. The trigger is the cycle value one bar earlier.
The Roofing filter keeps only the middle band of price movement. A two-pole high-pass filter with a 48-bar cutoff removes the slow trend, then a 10-bar SuperSmoother removes the fast noise. What is left is the swing component, drawn as a histogram around zero. Both lengths are fixed in the script.
The Bandpass filter keeps price swings near one cycle length, 20 bars by default, and suppresses slower trends and faster noise. Bandwidth (0.3) sets how wide the band is.
Reflex looks for cycle turns. It smooths the close with a 10-bar SuperSmoother, joins the smoothed value 20 bars ago to now with a straight line, and averages how far past values sit from it, divided by a running RMS so ±1 is a typical size.
Reflex = S / √MS, S = mean over i = 1..20 of (F + i × slope - F[i]), slope = (F[20] - F) / 20, MS = 0.04 × S² + 0.96 × MS[1]
SMI Ergodic
SMI Ergodic is the True Strength Index with a signal line and a histogram of the gap between them. TSI double-smooths the bar-to-bar change in close (20-bar EMA, then 5-bar EMA) and divides by the same smoothing of its absolute value, giving a reading between -100 and +100.
TSI = 100 × EMA(EMA(Δclose, 20), 5) / EMA(EMA(|Δclose|, 20), 5), Signal = EMA(TSI, 5), Osc = TSI - Signal
Center of Gravity
The Center of Gravity weights the median prices of the last 10 bars by how many bars ago they occurred, and divides by their plain sum. The result is a balance point that shifts toward the recent bars when prices rise. It is negative by construction, centred near -5.5 for a length of 10, with a one-bar trigger.
COG = -Σ (i + 1) × hl2[i] / Σ hl2[i], i = 0..9
Rank Correlation Index
The Rank Correlation Index ranks the last 9 closes by size and compares that ranking with their order in time, using Spearman rank correlation. Tied closes share their average rank. It reads +100 when every close was higher than the one before and -100 when every close was lower.
RCI = 100 × Spearman correlation(rank of close, rank of time) over 9 bars
Price Oscillator
The Price Oscillator is the gap between a 10-bar and a 21-bar simple moving average, expressed as a percentage of the longer one. It is the simple-average relative of PPO, with no signal line.
The Accumulative Swing Index is a running total of Wilder's swing index, which scores each bar from its close, open and the previous bar, allowing for gaps. Built for futures with a limit move, our default limit of 10000 only rescales it for stocks.
ASI = cum(SI), SI = 50 × (C - C1 + 0.5 × (C - O) + 0.25 × (C1 - O1)) / R × K / L
TickerBase is provided for educational and informational purposes only. Nothing on this page is financial, investment, tax or legal advice, or a recommendation to buy, sell or hold any security. Figures are approximate and drawn from public filings. Past performance does not predict future results.