Built-in indicators
The QuantRaider indicators in the Published tab, with their parameters, outputs and definitions.
QuantRaider publishes a library of well-known indicators that everyone can use. You find them in the graph editor's Node library, tab Published, under QuantRaider built-in. Search by name or by short name, such as BB, RSI or VWAP, and click the info button to see an indicator's parameters and outputs before you add it.
Each indicator is an ordinary indicator graph built only from the nodes in the Node reference. Adding one puts a copy into your graph as a Custom node: change its parameters on the node, connect its outputs to your logic, or open it to see how it is calculated. Later updates of a built-in indicator do not change copies you already added; add it again to get the new version. The built-in graphs themselves cannot be edited or deleted.
How the built-in indicators work
- Source: indicators with a Source parameter can use open, high, low, close, volume, hl2, hlc3, ohlc4 or hlcc4.
- Defaults follow TradingView's built-in indicators. RSI, ATR, ADX and the other Wilder indicators use Wilder's smoothing (RMA).
- Start of the history: windows use the candles available while they fill up, and recursive averages start from the simple average of the first Length values. Graphs are warmed up with enough earlier candles before signals count, in backtests and in live trading alike. During the first candles of a chart the values can differ from TradingView, which shows nothing there.
- Volume: forex volume is tick volume and some markets have none. Without volume OBV, A/D and CMF stay at 0, MFI shows 50, and VWAP and VWMA fall back to the plain average of the source.
- Plots: lines and histograms are drawn on the chart or in a named pane. Signal outputs (true or false) are for your own logic.
Trend
Simple Moving Average (SMA)
Arithmetic mean of the last Length candles of the source. Smooths price to show its direction; slow to react but easy to read. Commonly compared with price or with another average.
Also found as: SMA, MA, Moving Average.
- Parameters: Source (close), Length (9).
- Outputs: SMA, Source above, Cross up, Cross down.
Exponential Moving Average (EMA)
Moving average that weights recent candles more (alpha = 2 / (Length + 1)), seeded with the simple average of the first Length candles as on TradingView. Reacts faster than an SMA of the same length.
Also found as: EMA, Exponential MA.
- Parameters: Source (close), Length (9).
- Outputs: EMA, Source above, Cross up, Cross down.
Weighted Moving Average (WMA)
Linearly weighted average: the newest candle has weight Length, the oldest weight 1.
Also found as: WMA, Weighted MA, LWMA.
- Parameters: Source (close), Length (9).
- Outputs: WMA, Source above, Cross up, Cross down.
Hull Moving Average (HMA)
Alan Hull's low-lag average: WMA(2 x WMA(source, Length/2) - WMA(source, Length), sqrt(Length)). Very smooth while following price closely; often used for direction changes. The half length and smoothing length are separate parameters: TradingView uses floor(Length/2) and floor(sqrt(Length)).
Also found as: HMA, Hull, Hull MA.
- Parameters: Source (close), Length (9), Half length (4), Smoothing length (3).
- Outputs: HMA, Source above, Cross up, Cross down, Rising.
Volume Weighted Moving Average (VWMA)
Average of the source weighted by each candle's volume: sum(source x volume) / sum(volume) over Length candles. Candles with more activity count more. Forex volume is tick volume; when a window has no volume at all the indicator falls back to the simple average.
Also found as: VWMA, Volume weighted MA.
- Parameters: Source (close), Length (20).
- Outputs: VWMA, Source above, Cross up, Cross down.
Double Exponential Moving Average (DEMA)
Patrick Mulloy's DEMA = 2 x EMA - EMA(EMA). Removes part of an EMA's lag while staying smooth.
Also found as: DEMA, Double EMA.
- Parameters: Source (close), Length (9).
- Outputs: DEMA, Source above, Cross up, Cross down.
Triple Exponential Moving Average (TEMA)
TEMA = 3 x (EMA1 - EMA2) + EMA3, where each EMA smooths the previous one. Even less lag than DEMA.
Also found as: TEMA, Triple EMA.
- Parameters: Source (close), Length (9).
- Outputs: TEMA, Source above, Cross up, Cross down.
Donchian Channels
Highest high and lowest low of the last Length candles, and their midpoint. A close beyond the previous candle's channel is a classic breakout signal (Turtle traders).
Also found as: DC, Donchian, Price channel, Highest high lowest low.
- Parameters: Length (20).
- Outputs: Upper, Lower, Basis, Breakout up, Breakout down.
Ichimoku Cloud
Goichi Hosoda's system of midpoints: Conversion line (Tenkan, 9), Base line (Kijun, 26) and the leading spans A = (Conversion + Base) / 2 and B = midpoint of 52 candles. TradingView draws the leading spans 25 candles ahead (displacement 26); the outputs Cloud A/B are the span values drawn at the current candle, i.e. computed Cloud shift candles ago. Price above the cloud and Conversion/Base crosses are the usual readings.
Also found as: Ichimoku, Ichimoku Kinko Hyo, Kumo, Tenkan, Kijun.
- Parameters: Conversion length (9), Base length (26), Span B length (52), Cloud shift (25).
- Outputs: Conversion line, Base line, Leading span A, Leading span B, Cloud A now, Cloud B now, Price above cloud, Price below cloud, Bullish cloud, Conversion crosses above base, Conversion crosses below base, Lagging span above price.
Parabolic SAR
J. Welles Wilder's stop-and-reverse: a trailing level that accelerates toward price while the trend continues and flips to the other side when price crosses it. Uses TradingView's algorithm (start 0.02, increment 0.02, maximum 0.2). Built with Feedback nodes that carry SAR, extreme point, acceleration and trend direction from one candle to the next. The first candle only initialises the state.
Also found as: PSAR, SAR, Parabolic, Stop and reverse.
- Parameters: Start (0.02), Increment (0.02), Maximum (0.2).
- Outputs: SAR, Uptrend, Reversal up, Reversal down.
Supertrend
Olivier Seban's trend follower: bands at hl2 +/- Factor x ATR that only tighten while the trend lasts. The line sits below price in an uptrend and above it in a downtrend and flips when the close crosses it. Same algorithm as TradingView's ta.supertrend (ATR with Wilder smoothing). The final bands and the previous Supertrend value come from Feedback nodes. During the first ATR length candles the direction is forced down, as on TradingView.
Also found as: Supertrend, ST, ATR trailing stop.
- Parameters: ATR length (10), Factor (3).
- Outputs: Supertrend, Direction, Uptrend, Turned up, Turned down.
Linear Regression
Least-squares line through the last Length values of the source. Value is the line's end point at the current candle (TradingView ta.linreg, also known as LSMA), Slope its change per candle and Pearson's R how well a straight line fits (-1..1). Upper and Lower are Value +/- Deviations x standard deviation of the source.
Also found as: LinReg, Linear regression curve, LSMA, Regression slope.
- Parameters: Source (close), Length (50), Deviations (2).
- Outputs: Value, Slope, Pearson's R, Upper, Lower, Rising.
Momentum
Relative Strength Index (RSI)
J. Welles Wilder's RSI: 100 - 100 / (1 + average gain / average loss) with Wilder smoothing, between 0 and 100. Readings above the overbought level or below the oversold level mark stretched moves; crosses back through the levels and the RSI's moving average are common signals. Uses the built-in RSI node, which matches TradingView.
Also found as: RSI, Relative strength.
- Parameters: Source (close), Length (14), MA length (14), MA type (sma), Overbought (70), Oversold (30).
- Outputs: RSI, RSI MA, Overbought, Oversold, Crosses above oversold, Crosses below overbought, Crosses above MA, Crosses below MA.
Stochastic
George Lane's oscillator: where the close sits within the high-low range of the last %K length candles (0..100), smoothed into %K, with %D a moving average of %K. TradingView defaults 14, 1, 3. Crossings of %K and %D and the 80/20 levels are commonly watched.
Also found as: Stoch, Stochastic oscillator, %K, %D, Slow stochastic.
- Parameters: %K length (14), %K smoothing (1), %D smoothing (3), Overbought (80), Oversold (20).
- Outputs: %K, %D, Overbought, Oversold, %K crosses above %D, %K crosses below %D.
Stochastic RSI
Tushar Chande and Stanley Kroll's oscillator: the stochastic formula applied to RSI values, so it shows where the RSI sits within its own recent range. TradingView defaults: RSI 14, stochastic 14, K 3, D 3.
Also found as: StochRSI, Stoch RSI.
- Parameters: Source (close), RSI length (14), Stochastic length (14), K smoothing (3), D smoothing (3), Overbought (80), Oversold (20).
- Outputs: K, D, Overbought, Oversold, K crosses above D, K crosses below D.
MACD
Gerald Appel's MACD: fast EMA minus slow EMA of the source (12, 26), its signal line (EMA 9) and the histogram MACD - signal. Crosses of MACD and signal, and of MACD and zero, are the classic readings. The EMAs use TradingView's seeding; the built-in MACD node uses a different start-up and converges to the same values after its warm-up.
Also found as: MACD, Moving average convergence divergence.
- Parameters: Source (close), Fast length (12), Slow length (26), Signal length (9), Oscillator MA type (ema), Signal MA type (ema).
- Outputs: MACD, Signal, Histogram, MACD crosses above signal, MACD crosses below signal, MACD crosses above zero, MACD crosses below zero, Histogram rising.
Commodity Channel Index (CCI)
Donald Lambert's CCI: (source - SMA) / (0.015 x mean absolute deviation) over Length candles, with hlc3 as the default source. Readings beyond +100 / -100 mark unusually strong moves away from the average.
Also found as: CCI, Commodity channel.
- Parameters: Source (hlc3), Length (20), Upper level (100), Lower level (-100).
- Outputs: CCI, Above upper, Below lower, Crosses above lower, Crosses below upper.
Williams %R
Larry Williams' %R: 100 x (close - highest high) / (highest high - lowest low) over Length candles, between -100 and 0. Above -20 is usually read as overbought, below -80 as oversold.
Also found as: %R, Williams R, WillR.
- Parameters: Length (14), Overbought (-20), Oversold (-80).
- Outputs: %R, Overbought, Oversold.
Rate of Change (ROC)
Percentage change of the source over Length candles: 100 x (source - source[Length]) / source[Length].
Also found as: ROC, Rate of change.
- Parameters: Source (close), Length (9).
- Outputs: ROC, Positive.
Momentum
Difference between the source and its value Length candles ago (source - source[Length]).
Also found as: MOM, Momentum.
- Parameters: Source (close), Length (10).
- Outputs: Momentum, Positive.
Awesome Oscillator
Bill Williams' Awesome Oscillator: SMA(hl2, 5) - SMA(hl2, 34). The histogram is usually coloured by whether it rises or falls; zero-line crosses and two-candle direction changes are common readings.
Also found as: AO, Awesome.
- Parameters: Fast length (5), Slow length (34).
- Outputs: AO, Rising, Above zero, Crosses above zero, Crosses below zero.
True Strength Index (TSI)
William Blau's TSI: 100 x double-smoothed price change / double-smoothed absolute price change (EMA 25 then EMA 13), with an EMA 13 signal line. Oscillates around zero.
Also found as: TSI, True strength.
- Parameters: Source (close), Long length (25), Short length (13), Signal length (13).
- Outputs: TSI, Signal, TSI crosses above signal, TSI crosses below signal.
Average Directional Index (ADX / DMI)
J. Welles Wilder's Directional Movement: +DI and -DI compare upward and downward moves relative to the true range, ADX smooths their difference to measure trend strength regardless of direction (TradingView DMI: DI length 14, ADX smoothing 14, Wilder smoothing).
Also found as: ADX, DMI, +DI, -DI, Directional movement.
- Parameters: DI length (14), ADX smoothing (14), Trend level (25).
- Outputs: ADX, +DI, -DI, Trending, +DI crosses above -DI, +DI crosses below -DI.
Aroon
Tushar Chande's Aroon: how many candles ago the highest high and the lowest low of the last Length + 1 candles occurred, as 100 x (Length - candles since) / Length. Aroon Up near 100 means fresh highs; the oscillator is Up - Down. Ties count from the most recent candle.
Also found as: Aroon, Aroon oscillator.
- Parameters: Length (14).
- Outputs: Aroon Up, Aroon Down, Oscillator, Up crosses above down, Up crosses below down.
Volatility
Bollinger Bands
John Bollinger's bands: a moving average (basis) with bands a multiple of the standard deviation above and below. The bands widen when prices are volatile and narrow when they are quiet. %B shows where the source is inside the bands (0 = lower band, 1 = upper band); Bandwidth = 100 x (upper - lower) / basis measures the width. The standard deviation is the population deviation over Length, as on TradingView.
Also found as: BB, Bollinger, BBands, %B, Bandwidth.
- Parameters: Source (close), Length (20), Basis MA type (sma), StdDev multiplier (2).
- Outputs: Basis, Upper, Lower, %B, Bandwidth %, High touches upper, Low touches lower, Close above upper, Close below lower.
Keltner Channels
An exponential moving average with bands a multiple of the Average True Range above and below (TradingView defaults: EMA 20, multiplier 2, ATR 10 with Wilder smoothing). Similar to Bollinger Bands but based on the trading range, so the bands react less to single large closes.
Also found as: KC, Keltner.
- Parameters: Source (close), Length (20), Basis MA type (ema), Multiplier (2), ATR length (10).
- Outputs: Basis, Upper, Lower, Close above upper, Close below lower.
Average True Range (ATR)
J. Welles Wilder's ATR: the average of the true range, max(high - low, |high - previous close|, |low - previous close|), with Wilder smoothing by default (TradingView's Smoothing option offers RMA, SMA, EMA and WMA). Measures volatility in price units, often used to size stops.
Also found as: ATR, True range, Average true range.
- Parameters: Length (14), Smoothing (rma).
- Outputs: ATR, True range, ATR % of close.
Standard Deviation
Population standard deviation of the source over Length candles (TradingView ta.stdev), in price units.
Also found as: StdDev, Standard deviation, Sigma.
- Parameters: Source (close), Length (20).
- Outputs: Standard deviation.
Historical Volatility
Annualised standard deviation of logarithmic returns in percent: 100 x stdev(ln(close / previous close), Length) x sqrt(Periods per year). TradingView uses 365 periods for intraday and daily charts and 52 for weekly ones.
Also found as: HV, Historical volatility, Realized volatility.
- Parameters: Source (close), Length (10), Periods per year (365).
- Outputs: Historical volatility %.
Volume
On Balance Volume (OBV)
Joseph Granville's OBV: a running total that adds the candle's volume when the close rises and subtracts it when it falls. Its slope, not its absolute level, is what matters: the level depends on where the evaluated history starts. Forex volume is tick volume; without volume OBV stays at 0.
Also found as: OBV, On-balance volume.
- Parameters: Source (close), EMA length (20).
- Outputs: OBV, OBV EMA, Above EMA, Rising.
Anchored VWAP
Volume weighted average price since the start of the current period (by default the forex trading day from 17:00 New York; use UTC 00:00 for crypto), with bands at a multiple of the volume weighted standard deviation. If a period has no volume (some forex feeds), the plain average of the source is used instead.
Also found as: VWAP, Volume weighted average price, Session VWAP.
- Parameters: Source (hlc3), Band multiplier (1), Anchor period (day), Session timezone (America/New_York), Session start (17:00), Warm-up candles (1440).
- Outputs: VWAP, Upper band, Lower band, Close above VWAP, New period.
Money Flow Index (MFI)
Gene Quong and Avrum Soudack's volume-weighted RSI: positive and negative money flow (typical price x volume on rising or falling candles) summed over Length candles, as 100 - 100 / (1 + positive / negative). With no negative flow MFI is 100, with no flow at all 50 (e.g. without volume).
Also found as: MFI, Money flow.
- Parameters: Source (hlc3), Length (14), Overbought (80), Oversold (20).
- Outputs: MFI, Overbought, Oversold.
Chaikin Money Flow (CMF)
Marc Chaikin's CMF: the sum of money flow volume (where the close sits in the candle's range, times volume) over Length candles divided by the sum of volume, between -1 and 1. 0 without volume.
Also found as: CMF, Chaikin money flow.
- Parameters: Length (20).
- Outputs: CMF, Positive.
Accumulation/Distribution
Marc Chaikin's Accumulation/Distribution line: running total of money flow volume. As with OBV the slope matters, the level depends on where the evaluated history starts.
Also found as: A/D, ADL, Accumulation distribution.
- Outputs: A/D, Rising.
Structure
Pivot Points Standard
Classic floor-trader pivots from the previous period's high, low and close: P = (H + L + C) / 3, R1 = 2P - L, S1 = 2P - H, R2 = P + (H - L), S2 = P - (H - L), R3 = H + 2(P - L), S3 = L - 2(H - P). By default the period is the forex trading day from 17:00 New York; values are valid from the second period.
Also found as: Pivots, Pivot points, Floor pivots, S1, R1.
- Parameters: Anchor period (day), Session timezone (America/New_York), Session start (17:00), Warm-up candles (2880).
- Outputs: P, R1, S1, R2, S2, R3, S3, Close above P, New period.
Heikin-Ashi
Heikin-Ashi candle values: close = (O + H + L + C) / 4, open = average of the previous Heikin-Ashi open and close (first candle: (open + close) / 2), high and low include the Heikin-Ashi open and close. Smooths candles so trends show as runs of one colour.
Also found as: HA, Heikin Ashi, Heiken Ashi.
- Outputs: Open, High, Low, Close, Bullish, Turned bullish.