Quantitative Indicators & Formulas
Reference directory of 160+ technical indicators, factor metrics, and mathematical transforms implemented in the Saral Engine. Every formula includes intuitive explanations, LaTeX mathematical formulation, parameter tuning guides, and visual node rule syntax for systematic strategy building.
Frequently Used Quantitative Formulas
RSI Relative Strength Index
@RSI(close, timeperiod) Bounded momentum oscillator (0 to 100) comparing the magnitude of recent gains to recent losses.
MACD Moving Average Convergence/Divergence
@MACD(close, fastperiod, slowperiod, signalperiod) Trend-following momentum oscillator displaying the relationship between two exponential moving averages.
BBANDS Bollinger Bands
@BBANDS(close, timeperiod, nbdevup, nbdevdn, matype) Dynamic volatility envelope plotting upper and lower standard deviation bands around a moving average.
realized_vol Annualized Realized Volatility
@realized_vol(field, timeperiod) Measures the annualized standard deviation of log returns, tracking pure price fluctuation magnitude.
sharpe_ratio Annualized Rolling Sharpe Ratio
@sharpe_ratio(field, timeperiod) Measures excess return earned per unit of total volatility over the risk-free rate.
momentum Annualized Regression Momentum (Clenow)
@momentum(field, timeperiod) Evaluates trend persistence by multiplying the annualized slope of log prices by the regression R-squared.
ATR Average True Range
@ATR(high, low, close, timeperiod) Wilder-smoothed measure of daily price expansion that explicitly incorporates overnight gaps.
ADX Average Directional Movement Index
@ADX(high, low, close, timeperiod) Measures the velocity and conviction of a trend independently of direction.
OBV On Balance Volume
@OBV(close, volume) Running cumulative volume total adding volume on up-days and subtracting volume on down-days.
SMA Simple Moving Average
@SMA(close, timeperiod) Simple Moving Average
EMA Exponential Moving Average
@EMA(close, timeperiod) Exponential Moving Average
STOCH Stochastic
@STOCH(high, low, close, fastk_period, slowk_period, slowk_matype, slowd_period, slowd_matype) Stochastic
All Systematic Indicators & Mathematical Transforms
HT_DCPERIOD Hilbert Transform - Dominant Cycle Period
@HT_DCPERIOD(close) Hilbert Transform - Dominant Cycle Period
HT_DCPHASE Hilbert Transform - Dominant Cycle Phase
@HT_DCPHASE(close) Hilbert Transform - Dominant Cycle Phase
HT_PHASOR Hilbert Transform - Phasor Components
@HT_PHASOR(close) Hilbert Transform - Phasor Components
HT_SINE Hilbert Transform - SineWave
@HT_SINE(close) Hilbert Transform - SineWave
HT_TRENDMODE Hilbert Transform - Trend vs Cycle Mode
@HT_TRENDMODE(close) Hilbert Transform - Trend vs Cycle Mode
ADD Vector Arithmetic Add
@ADD(high, low) Vector Arithmetic Add
DIV Vector Arithmetic Div
@DIV(high, low) Vector Arithmetic Div
MAX Highest value over a specified period
@MAX(close, timeperiod) Highest value over a specified period
MAXINDEX Index of highest value over a specified period
@MAXINDEX(close, timeperiod) Index of highest value over a specified period
MIN Lowest value over a specified period
@MIN(close, timeperiod) Lowest value over a specified period
MININDEX Index of lowest value over a specified period
@MININDEX(close, timeperiod) Index of lowest value over a specified period
MINMAX Lowest and highest values over a specified period
@MINMAX(close, timeperiod) Lowest and highest values over a specified period
MINMAXINDEX Indexes of lowest and highest values over a specified period
@MINMAXINDEX(close, timeperiod) Indexes of lowest and highest values over a specified period
MULT Vector Arithmetic Mult
@MULT(high, low) Vector Arithmetic Mult
SUB Vector Arithmetic Subtraction
@SUB(high, low) Vector Arithmetic Subtraction
SUM Summation
@SUM(close, timeperiod) Summation
ACOS Vector Trigonometric ACos
@ACOS(close) Vector Trigonometric ACos
ASIN Vector Trigonometric ASin
@ASIN(close) Vector Trigonometric ASin
ATAN Vector Trigonometric ATan
@ATAN(close) Vector Trigonometric ATan
CEIL Vector Ceil
@CEIL(close) Vector Ceil
COS Vector Trigonometric Cos
@COS(close) Vector Trigonometric Cos
COSH Vector Trigonometric Cosh
@COSH(close) Vector Trigonometric Cosh
EXP Vector Arithmetic Exp
@EXP(close) Vector Arithmetic Exp
FLOOR Vector Floor
@FLOOR(close) Vector Floor
LN Vector Log Natural
@LN(close) Vector Log Natural
LOG10 Vector Log10
@LOG10(close) Vector Log10
SIN Vector Trigonometric Sin
@SIN(close) Vector Trigonometric Sin
SINH Vector Trigonometric Sinh
@SINH(close) Vector Trigonometric Sinh
SQRT Vector Square Root
@SQRT(close) Vector Square Root
TAN Vector Trigonometric Tan
@TAN(close) Vector Trigonometric Tan
TANH Vector Trigonometric Tanh
@TANH(close) Vector Trigonometric Tanh
ADX Average Directional Movement Index
@ADX(high, low, close, timeperiod) Measures the velocity and conviction of a trend independently of direction.
ADXR Average Directional Movement Index Rating
@ADXR(high, low, close, timeperiod) Average Directional Movement Index Rating
APO Absolute Price Oscillator
@APO(close, fastperiod, slowperiod, matype) Absolute Price Oscillator
AROON Aroon
@AROON(high, low, timeperiod) Aroon
AROONOSC Aroon Oscillator
@AROONOSC(high, low, timeperiod) Aroon Oscillator
BOP Balance Of Power
@BOP(open, high, low, close) Balance Of Power
CCI Commodity Channel Index
@CCI(high, low, close, timeperiod) Commodity Channel Index
CMO Chande Momentum Oscillator
@CMO(close, timeperiod) Chande Momentum Oscillator
DX Directional Movement Index
@DX(high, low, close, timeperiod) Directional Movement Index
MACD Moving Average Convergence/Divergence
@MACD(close, fastperiod, slowperiod, signalperiod) Trend-following momentum oscillator displaying the relationship between two exponential moving averages.
MACDEXT MACD with controllable MA type
@MACDEXT(close, fastperiod, fastmatype, slowperiod, slowmatype, signalperiod, signalmatype) MACD with controllable MA type
MACDFIX Moving Average Convergence/Divergence Fix 12/26
@MACDFIX(close, signalperiod) Moving Average Convergence/Divergence Fix 12/26
MFI Money Flow Index
@MFI(high, low, close, volume, timeperiod) Money Flow Index
MINUS_DI Minus Directional Indicator
@MINUS_DI(high, low, close, timeperiod) Minus Directional Indicator
MINUS_DM Minus Directional Movement
@MINUS_DM(high, low, timeperiod) Minus Directional Movement
MOM Momentum
@MOM(close, timeperiod) Momentum
PLUS_DI Plus Directional Indicator
@PLUS_DI(high, low, close, timeperiod) Plus Directional Indicator
PLUS_DM Plus Directional Movement
@PLUS_DM(high, low, timeperiod) Plus Directional Movement
PPO Percentage Price Oscillator
@PPO(close, fastperiod, slowperiod, matype) Percentage Price Oscillator
ROC Rate of Change
@ROC(close, timeperiod) Rate of change : ((price/prevPrice)-1)*100
ROCP Rate of change Percentage: (price-prevPrice)/prevPrice
@ROCP(close, timeperiod) Rate of change Percentage: (price-prevPrice)/prevPrice
ROCR Rate of change ratio: (price/prevPrice)
@ROCR(close, timeperiod) Rate of change ratio: (price/prevPrice)
ROCR100 Rate of change ratio 100 scale: (price/prevPrice)*100
@ROCR100(close, timeperiod) Rate of change ratio 100 scale: (price/prevPrice)*100
RSI Relative Strength Index
@RSI(close, timeperiod) Bounded momentum oscillator (0 to 100) comparing the magnitude of recent gains to recent losses.
STOCH Stochastic
@STOCH(high, low, close, fastk_period, slowk_period, slowk_matype, slowd_period, slowd_matype) Stochastic
STOCHF Stochastic Fast
@STOCHF(high, low, close, fastk_period, fastd_period, fastd_matype) Stochastic Fast
STOCHRSI Stochastic Relative Strength Index
@STOCHRSI(close, timeperiod, fastk_period, fastd_period, fastd_matype) Stochastic Relative Strength Index
TRIX 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA
@TRIX(close, timeperiod) 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA
ULTOSC Ultimate Oscillator
@ULTOSC(high, low, close, timeperiod1, timeperiod2, timeperiod3) Ultimate Oscillator
WILLR Williams' %R
@WILLR(high, low, close, timeperiod) Williams' %R
BBANDS Bollinger Bands
@BBANDS(close, timeperiod, nbdevup, nbdevdn, matype) Dynamic volatility envelope plotting upper and lower standard deviation bands around a moving average.
DEMA Double Exponential Moving Average
@DEMA(close, timeperiod) Double Exponential Moving Average
EMA Exponential Moving Average
@EMA(close, timeperiod) Exponential Moving Average
HT_TRENDLINE Hilbert Transform - Instantaneous Trendline
@HT_TRENDLINE(close) Hilbert Transform - Instantaneous Trendline
KAMA Kaufman Adaptive Moving Average
@KAMA(close, timeperiod) Kaufman Adaptive Moving Average
MA Moving average
@MA(close, timeperiod, matype) Moving average
MAMA MESA Adaptive Moving Average
@MAMA(close, fastlimit, slowlimit) MESA Adaptive Moving Average
MAVP Moving average with variable period
@MAVP(close, periods, minperiod, maxperiod, matype) Moving average with variable period
MIDPOINT MidPoint over period
@MIDPOINT(close, timeperiod) MidPoint over period
MIDPRICE Midpoint Price over period
@MIDPRICE(high, low, timeperiod) Midpoint Price over period
SAR Parabolic SAR
@SAR(high, low, acceleration, maximum) Parabolic SAR
SAREXT Parabolic SAR - Extended
@SAREXT(high, low, startvalue, offsetonreverse, accelerationinitlong, accelerationlong, accelerationmaxlong, accelerationinitshort, accelerationshort, accelerationmaxshort) Parabolic SAR - Extended
SMA Simple Moving Average
@SMA(close, timeperiod) Simple Moving Average
T3 Triple Exponential Moving Average (T3)
@T3(close, timeperiod, vfactor) Triple Exponential Moving Average (T3)
TEMA Triple Exponential Moving Average
@TEMA(close, timeperiod) Triple Exponential Moving Average
TRIMA Triangular Moving Average
@TRIMA(close, timeperiod) Triangular Moving Average
WMA Weighted Moving Average
@WMA(close, timeperiod) Weighted Moving Average
CDL2CROWS Two Crows
@CDL2CROWS(open, high, low, close) Two Crows
CDL3BLACKCROWS Three Black Crows
@CDL3BLACKCROWS(open, high, low, close) Three Black Crows
CDL3INSIDE Three Inside Up/Down
@CDL3INSIDE(open, high, low, close) Three Inside Up/Down
CDL3LINESTRIKE Three-Line Strike
@CDL3LINESTRIKE(open, high, low, close) Three-Line Strike
CDL3OUTSIDE Three Outside Up/Down
@CDL3OUTSIDE(open, high, low, close) Three Outside Up/Down
CDL3STARSINSOUTH Three Stars In The South
@CDL3STARSINSOUTH(open, high, low, close) Three Stars In The South
CDL3WHITESOLDIERS Three Advancing White Soldiers
@CDL3WHITESOLDIERS(open, high, low, close) Three Advancing White Soldiers
CDLABANDONEDBABY Abandoned Baby
@CDLABANDONEDBABY(open, high, low, close, penetration) Abandoned Baby
CDLADVANCEBLOCK Advance Block
@CDLADVANCEBLOCK(open, high, low, close) Advance Block
CDLBELTHOLD Belt-hold
@CDLBELTHOLD(open, high, low, close) Belt-hold
CDLBREAKAWAY Breakaway
@CDLBREAKAWAY(open, high, low, close) Breakaway
CDLCLOSINGMARUBOZU Closing Marubozu
@CDLCLOSINGMARUBOZU(open, high, low, close) Closing Marubozu
CDLCONCEALBABYSWALL Concealing Baby Swallow
@CDLCONCEALBABYSWALL(open, high, low, close) Concealing Baby Swallow
CDLCOUNTERATTACK Counterattack
@CDLCOUNTERATTACK(open, high, low, close) Counterattack
CDLDARKCLOUDCOVER Dark Cloud Cover
@CDLDARKCLOUDCOVER(open, high, low, close, penetration) Dark Cloud Cover
CDLDOJI Doji
@CDLDOJI(open, high, low, close) Doji
CDLDOJISTAR Doji Star
@CDLDOJISTAR(open, high, low, close) Doji Star
CDLDRAGONFLYDOJI Dragonfly Doji
@CDLDRAGONFLYDOJI(open, high, low, close) Dragonfly Doji
CDLENGULFING Engulfing
@CDLENGULFING(open, high, low, close) Engulfing Pattern
CDLEVENINGDOJISTAR Evening Doji Star
@CDLEVENINGDOJISTAR(open, high, low, close, penetration) Evening Doji Star
CDLEVENINGSTAR Evening Star
@CDLEVENINGSTAR(open, high, low, close, penetration) Evening Star
CDLGAPSIDESIDEWHITE Up/Down-gap side-by-side white lines
@CDLGAPSIDESIDEWHITE(open, high, low, close) Up/Down-gap side-by-side white lines
CDLGRAVESTONEDOJI Gravestone Doji
@CDLGRAVESTONEDOJI(open, high, low, close) Gravestone Doji
CDLHAMMER Hammer
@CDLHAMMER(open, high, low, close) Hammer
CDLHANGINGMAN Hanging Man
@CDLHANGINGMAN(open, high, low, close) Hanging Man
CDLHARAMI Harami
@CDLHARAMI(open, high, low, close) Harami Pattern
CDLHARAMICROSS Harami Cross
@CDLHARAMICROSS(open, high, low, close) Harami Cross Pattern
CDLHIGHWAVE High-Wave Candle
@CDLHIGHWAVE(open, high, low, close) High-Wave Candle
CDLHIKKAKE Hikkake
@CDLHIKKAKE(open, high, low, close) Hikkake Pattern
CDLHIKKAKEMOD Modified Hikkake
@CDLHIKKAKEMOD(open, high, low, close) Modified Hikkake Pattern
CDLHOMINGPIGEON Homing Pigeon
@CDLHOMINGPIGEON(open, high, low, close) Homing Pigeon
CDLIDENTICAL3CROWS Identical Three Crows
@CDLIDENTICAL3CROWS(open, high, low, close) Identical Three Crows
CDLINNECK In-Neck
@CDLINNECK(open, high, low, close) In-Neck Pattern
CDLINVERTEDHAMMER Inverted Hammer
@CDLINVERTEDHAMMER(open, high, low, close) Inverted Hammer
CDLKICKING Kicking
@CDLKICKING(open, high, low, close) Kicking
CDLKICKINGBYLENGTH Kicking - bull/bear determined by the longer marubozu
@CDLKICKINGBYLENGTH(open, high, low, close) Kicking - bull/bear determined by the longer marubozu
CDLLADDERBOTTOM Ladder Bottom
@CDLLADDERBOTTOM(open, high, low, close) Ladder Bottom
CDLLONGLEGGEDDOJI Long Legged Doji
@CDLLONGLEGGEDDOJI(open, high, low, close) Long Legged Doji
CDLLONGLINE Long Line Candle
@CDLLONGLINE(open, high, low, close) Long Line Candle
CDLMARUBOZU Marubozu
@CDLMARUBOZU(open, high, low, close) Marubozu
CDLMATCHINGLOW Matching Low
@CDLMATCHINGLOW(open, high, low, close) Matching Low
CDLMATHOLD Mat Hold
@CDLMATHOLD(open, high, low, close, penetration) Mat Hold
CDLMORNINGDOJISTAR Morning Doji Star
@CDLMORNINGDOJISTAR(open, high, low, close, penetration) Morning Doji Star
CDLMORNINGSTAR Morning Star
@CDLMORNINGSTAR(open, high, low, close, penetration) Morning Star
CDLONNECK On-Neck
@CDLONNECK(open, high, low, close) On-Neck Pattern
CDLPIERCING Piercing
@CDLPIERCING(open, high, low, close) Piercing Pattern
CDLRICKSHAWMAN Rickshaw Man
@CDLRICKSHAWMAN(open, high, low, close) Rickshaw Man
CDLRISEFALL3METHODS Rising/Falling Three Methods
@CDLRISEFALL3METHODS(open, high, low, close) Rising/Falling Three Methods
CDLSEPARATINGLINES Separating Lines
@CDLSEPARATINGLINES(open, high, low, close) Separating Lines
CDLSHOOTINGSTAR Shooting Star
@CDLSHOOTINGSTAR(open, high, low, close) Shooting Star
CDLSHORTLINE Short Line Candle
@CDLSHORTLINE(open, high, low, close) Short Line Candle
CDLSPINNINGTOP Spinning Top
@CDLSPINNINGTOP(open, high, low, close) Spinning Top
CDLSTALLEDPATTERN Stalled
@CDLSTALLEDPATTERN(open, high, low, close) Stalled Pattern
CDLSTICKSANDWICH Stick Sandwich
@CDLSTICKSANDWICH(open, high, low, close) Stick Sandwich
CDLTAKURI Takuri (Dragonfly Doji with very long lower shadow)
@CDLTAKURI(open, high, low, close) Takuri (Dragonfly Doji with very long lower shadow)
CDLTASUKIGAP Tasuki Gap
@CDLTASUKIGAP(open, high, low, close) Tasuki Gap
CDLTHRUSTING Thrusting
@CDLTHRUSTING(open, high, low, close) Thrusting Pattern
CDLTRISTAR Tristar
@CDLTRISTAR(open, high, low, close) Tristar Pattern
CDLUNIQUE3RIVER Unique 3 River
@CDLUNIQUE3RIVER(open, high, low, close) Unique 3 River
CDLUPSIDEGAP2CROWS Upside Gap Two Crows
@CDLUPSIDEGAP2CROWS(open, high, low, close) Upside Gap Two Crows
CDLXSIDEGAP3METHODS Upside/Downside Gap Three Methods
@CDLXSIDEGAP3METHODS(open, high, low, close) Upside/Downside Gap Three Methods
AVGPRICE Average Price
@AVGPRICE(open, high, low, close) Average Price
MEDPRICE Median Price
@MEDPRICE(high, low) Median Price
TYPPRICE Typical Price
@TYPPRICE(high, low, close) Typical Price
WCLPRICE Weighted Close Price
@WCLPRICE(high, low, close) Weighted Close Price
BETA Beta
@BETA(high, low, timeperiod) Beta
CORREL Pearson's Correlation Coefficient (r)
@CORREL(high, low, timeperiod) Pearson's Correlation Coefficient (r)
LINEARREG Linear Regression
@LINEARREG(close, timeperiod) Linear Regression
LINEARREG_ANGLE Linear Regression Angle
@LINEARREG_ANGLE(close, timeperiod) Linear Regression Angle
LINEARREG_INTERCEPT Linear Regression Intercept
@LINEARREG_INTERCEPT(close, timeperiod) Linear Regression Intercept
LINEARREG_SLOPE Linear Regression Slope
@LINEARREG_SLOPE(close, timeperiod) Linear Regression Slope
STDDEV Standard Deviation
@STDDEV(close, timeperiod, nbdev) Standard Deviation
TSF Time Series Forecast
@TSF(close, timeperiod) Time Series Forecast
VAR Variance
@VAR(close, timeperiod, nbdev) Variance
ATR Average True Range
@ATR(high, low, close, timeperiod) Wilder-smoothed measure of daily price expansion that explicitly incorporates overnight gaps.
NATR Normalized Average True Range
@NATR(high, low, close, timeperiod) Normalized Average True Range
TRANGE True Range
@TRANGE(high, low, close) True Range
AD Chaikin A/D Line
@AD(high, low, close, volume) Chaikin A/D Line
ADOSC Chaikin A/D Oscillator
@ADOSC(high, low, close, volume, fastperiod, slowperiod) Chaikin A/D Oscillator
OBV On Balance Volume
@OBV(close, volume) Running cumulative volume total adding volume on up-days and subtracting volume on down-days.
MEDIAN Rolling Median
@MEDIAN(field, timeperiod) Calculates the rolling non-parametric median (50th percentile) over a specified time window.
shift Lag / Shift Operator
@shift(field, timeperiod) Shifts a time series by N periods to reference prior historical data point-in-time.
lag Universal historical lookback across multi-cadence fields (annual/quarterly fundamentals, macro, monthly flows, or daily prices) by N reporting periods without filing drift
@lag(field, timeperiod) Universal historical lookback across multi-cadence fields (annual/quarterly fundamentals, macro, monthly flows, or daily prices) by N reporting periods without filing drift
sharpe_ratio Annualized Rolling Sharpe Ratio
@sharpe_ratio(field, timeperiod) Measures excess return earned per unit of total volatility over the risk-free rate.
momentum Annualized Regression Momentum (Clenow)
@momentum(field, timeperiod) Evaluates trend persistence by multiplying the annualized slope of log prices by the regression R-squared.
log_return Lognormal Return
@log_return(field, timeperiod) Calculates continuously compounded logarithmic return over N bars.
realized_vol Annualized Realized Volatility
@realized_vol(field, timeperiod) Measures the annualized standard deviation of log returns, tracking pure price fluctuation magnitude.