Examples
This section documents examples of common expressions.
Golden Cross Breakout
// 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
// 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
Bollinger Band Squeeze Breakout
MACD Signal Line Cross
Breakout Above Resistance
Mean Reversion to Moving Average
Stochastic Overbought Reversal
Volume Breakout Pattern
Parabolic SAR Trend Change
ADX Trend Strength Filter
Williams %R Reversal Setup
Multi-Timeframe Alignment
Volatility Expansion Setup
Money Flow Divergence
Last updated