Examples
This section documents examples of common expressions.
Golden Cross Breakout
Classic bullish signal when short-term moving average crosses above long-term moving average with volume confirmation.
// Golden cross with volume confirmation
ta.crossover(ta.sma($BTC, 50), ta.sma($BTC, 200)) and $BTC.volume > ta.sma($BTC.volume, 20) * 1.5
// EMA golden cross for faster signals
ta.crossover(ta.ema($BTC, 21), ta.ema($BTC, 50)) and ta.rsi($BTC, 14) > 50RSI Oversold Bounce
Looking for oversold conditions with signs of reversal momentum.
// RSI oversold with bullish divergence setup
ta.rsi($BTC, 14) < 30 and ta.rsi($BTC, 14) > ta.rsi($BTC, 14)[1] and $BTC.close > $BTC.close[1]
// Double confirmation oversold
ta.rsi($BTC, 14) < 30 and ta.stoch($BTC, 14, 3).k < 20 and ta.crossover(ta.stoch($BTC, 14, 3).k, ta.stoch($BTC, 14, 3).d)VWAP Support Test
Price testing VWAP as support level with successful bounce.
Bollinger Band Squeeze Breakout
Low volatility followed by expansion and directional breakout.
MACD Signal Line Cross
MACD line crossing above signal line indicating momentum shift.
Breakout Above Resistance
Price breaking above previous high with volume confirmation.
Mean Reversion to Moving Average
Price returning to moving average after deviation.
Stochastic Overbought Reversal
Stochastic in overbought territory showing signs of reversal.
Volume Breakout Pattern
Unusual volume spike indicating institutional interest.
Parabolic SAR Trend Change
Parabolic SAR flipping indicating potential trend reversal.
ADX Trend Strength Filter
Using ADX to confirm strong trending conditions before entry.
Williams %R Reversal Setup
Williams %R showing reversal from extreme levels.
Multi-Timeframe Alignment
Short and long-term indicators aligned for high-probability setup.
Volatility Expansion Setup
Low volatility followed by expansion indicating potential big move.
Money Flow Divergence
Price and money flow showing divergence indicating potential reversal.
Last updated
Was this helpful?