Technical Indicators

Use these indicators as conditions in your strategy. Just reference them by name — no code needed. Default periods are used if you don't specify one.

Trend

Default SMA/EMA period: 200 days if not specified.

IndicatorDefaultDescription
Simple Moving Average (SMA)200-daySmooths price over N days to identify long-term trend direction
Exponential Moving Average (EMA)200-dayLike SMA but weights recent prices more heavily — reacts faster to changes
SMA Crossover50/200Golden cross (bullish) or death cross (bearish) when fast SMA crosses slow SMA
EMA Crossover12/26Faster-reacting crossover signal used for shorter-term trend changes

Momentum

Default RSI period: 14. Default MACD: 12/26/9. Default Stochastic: 14/3.

IndicatorDefaultDescription
RSI (Relative Strength Index)Period: 14Measures speed of price changes on 0-100 scale. Below 30 = oversold, above 70 = overbought
MACD12, 26, 9Shows relationship between two EMAs. Crossovers signal momentum shifts
MACD Histogram12, 26, 9Visualizes distance between MACD and signal line. Positive = bullish momentum
Stochastic %K / %DK: 14, D: 3Compares closing price to high-low range. Below 20 = oversold, above 80 = overbought
Rate of Change (ROC)Period: 12Percentage price change over N periods. Measures acceleration of price movement
CCI (Commodity Channel Index)Period: 20Measures deviation from average price. Below -100 = oversold, above 100 = overbought
ADX (Average Directional Index)Period: 14Measures trend strength (not direction). Above 25 = strong trend, below 20 = weak/sideways

Volatility

Default Bollinger: 20-period, 2 standard deviations. Default ATR: 14.

IndicatorDefaultDescription
Bollinger Bands20, 2σPrice envelope that expands/contracts with volatility. Touches often signal reversals
Bollinger %B20, 2σWhere price sits within the bands. Below 0 = below lower band, above 1 = above upper
Bollinger Width20, 2σDistance between bands as % of middle. Narrow = squeeze (breakout coming)
ATR (Average True Range)Period: 14Average daily price range in dollars. Used for stop-loss sizing and volatility filters
Keltner ChannelsPeriod: 20Similar to Bollinger but uses ATR instead of standard deviation. Smoother bands
Historical VolatilityPeriod: 21Annualized standard deviation of returns. Measures how much price fluctuates

Volume

Default volume average: 50-day rolling. Default multiplier: 1.5x.

IndicatorDefaultDescription
Volume vs Average50-day, 1.5xCompares current volume to rolling average. High volume confirms price moves
Volume Surge50-day, 2xDetects unusual spikes in trading activity. Confirms breakouts and reversals
On-Balance Volume (OBV)Cumulative volume indicator. Rising OBV with rising price confirms uptrend
Chaikin Money Flow (CMF)Period: 20Measures buying/selling pressure over time. Positive = accumulation, negative = distribution

Price Action

These use raw price data — no indicator computation needed.

IndicatorDescription
Price Drop %Percentage decline from previous close. Detects sharp selloffs
Price Gain %Percentage gain from previous close. Detects sharp rallies
52-week High/LowHow close price is to its yearly extremes. Near highs = momentum, near lows = value
Price vs SMAWhether price is above or below a moving average. Basic trend filter
Parabolic SARTrailing stop that flips between above/below price. Signals trend reversals
Pivot PointsSupport and resistance levels calculated from prior day's high, low, close

Example Strategies

RSI Mean Reversion

Buy oversold, sell overbought.

Buy AAPL when RSI(14) drops below 30, sell all when RSI crosses above 70

MACD Crossover

Follow momentum shifts.

Buy SPY when MACD crosses above the signal line, sell when it crosses below

SMA Trend Following

Stay in uptrends, exit downtrends.

Buy QQQ when price crosses above the 200-day SMA, sell when it drops below

Bollinger Band Squeeze

Buy when price touches the lower band in an uptrend.

Buy NVDA when price is within 5% of the lower Bollinger Band and above the 200-day SMA

Volume Breakout

Confirm breakouts with volume.

Buy TSLA when price makes a new 52-week high and volume is 2x above the 50-day average

Multi-Indicator Combo

Stack multiple conditions for higher conviction.

Buy AMZN when RSI(14) < 35 and MACD histogram is positive and price is above the 200-day SMA