AlgoMesh comes pre-packaged with 21 highly optimized, pre-compiled C++ technical indicators. Because these are written natively in C++ and utilize lock-free memory pools, they compute significantly faster than standard Python or JavaScript indicators.
Here is the complete catalog of available indicators, including their mathematical definitions.
Trend Indicators
1. SMA (Simple Moving Average)
Calculates the average price over a specific number of periods.
SMA=n∑i=1nPi
Pi: Price of the asset at period i
n: Number of total periods
2. EMA (Exponential Moving Average)
Places a greater weight and significance on the most recent data points.
EMAt=(Pt×n+12)+EMAt−1×(1−n+12)
Pt: Current Price
n: Period length
3. WMA (Weighted Moving Average)
Assigns a linearly decreasing weight to older data points.
WMA=∑i=1ni∑i=1n(Pi×i)
4. MACD (Moving Average Convergence Divergence)
A trend-following momentum indicator that shows the relationship between two moving averages of a security's price.
MACD Line=EMA12−EMA26Signal Line=EMA9(MACD Line)Histogram=MACD Line−Signal Line
5. Parabolic SAR
Determines the price direction of an asset and draws attention to when the price direction is changing.
SARt+1=SARt+α×(EP−SARt)
α: Acceleration Factor (typically starting at 0.02 and increasing by 0.02)
EP: Extreme Point (highest high for uptrend, lowest low for downtrend)
Momentum Oscillators
6. RSI (Relative Strength Index)
Measures the speed and change of price movements to identify overbought or oversold conditions.
RSI=100−1+RS100RS=Average LossAverage Gain
7. Stochastic Oscillator
Compares a particular closing price of an asset to a range of its prices over a certain period of time.
%K=H14−L14C−L14×100%D=SMA3(%K)
C: Most recent closing price
L14, H14: Lowest low and highest high of the 14 previous trading sessions
8. CCI (Commodity Channel Index)
Measures the current price level relative to an average price level over a given period.
CCI=0.015×Mean DeviationTypical Price−SMA(Typical Price)Typical Price=3H+L+C
9. Williams %R
A momentum indicator that measures overbought and oversold levels.
%R=Hn−LnHn−C×−100
Hn, Ln: Highest high and lowest low over period n
10. Awesome Oscillator
Calculates market momentum by comparing a 34-period SMA and a 5-period SMA of the median prices.
AO=SMA5(2H+L)−SMA34(2H+L)
Volatility Indicators
11. Bollinger Bands
A set of trendlines plotted two standard deviations (positively and negatively) away from a simple moving average.
Middle Band=SMAnUpper Band=SMAn+(k×σ)Lower Band=SMAn−(k×σ)
σ: Standard Deviation of price over n periods
k: Multiplier (typically 2)
12. ATR (Average True Range)
Measures market volatility by decomposing the entire range of an asset price for that period.
TR=max[(H−L),∣H−Cp∣,∣L−Cp∣]ATRt=nATRt−1×(n−1)+TRt
13. Keltner Channels
Volatility-based envelopes set above and below an exponential moving average.
Middle Line=EMA20Upper Band=EMA20+(2×ATR10)Lower Band=EMA20−(2×ATR10)
Volume Indicators
14. OBV (On-Balance Volume)
Uses volume flow to predict changes in stock price.
The ratio of the value traded to total volume traded over a particular time horizon.
VWAP=∑Volume∑(Typical Price×Volume)
16. CMF (Chaikin Money Flow)
Measures the amount of Money Flow Volume over a specific period.
Money Flow Multiplier=H−L(C−L)−(H−C)Money Flow Volume=MFM×VolumeCMF=∑i=121Volumei∑i=121MFVi
17. MFI (Money Flow Index)
An oscillator that uses both price and volume to measure buying and selling pressure.
MFI=100−1+Money Ratio100Money Ratio=Negative Money FlowPositive Money Flow
Advanced / Hybrid Indicators
18. Ichimoku Cloud
Defines support and resistance, identifies trend direction, gauges momentum, and provides trading signals.
Tenkan-sen=2max(H9)+min(L9)Kijun-sen=2max(H26)+min(L26)Senkou Span A=2Tenkan-sen+Kijun-senSenkou Span B=2max(H52)+min(L52)
19. ADX (Average Directional Index)
Used to quantify trend strength.
ADX=SMA14(+DI+-DI∣+DI−-DI∣)×100
20. SuperTrend
A trend-following indicator constructed using the ATR.
Up=2H+L−(k×ATRn)Down=2H+L+(k×ATRn)
21. Donchian Channels
Three lines generated by moving average calculations that comprise an indicator formed by upper and lower bands around a mid-range or median band.
Upper Channel=max(Hn)Lower Channel=min(Ln)Middle Channel=2Upper+Lower