EMA200 Bounce Screener

281
EMA200 Bounce Screener

WHAT IT DOES
This indicator is built for TradingView's Pine Screener. It flags stocks in an established uptrend whose daily low pulls back to a rising 200-period EMA and then closes back above it — a classic "buy the pullback in a long-term uptrend" pattern. Every condition is exposed as a separate column, so watchlists can be filtered directly in the screener.

SIGNAL CONDITIONS (daily close)
1. The EMA200 is rising (higher than 20 bars ago).
2. Price closed at least X % above the EMA200 within the last N bars (default 5 % / 30 bars). This separates pullbacks from strength from stocks that are merely drifting sideways around the average.
3. The daily low touches the EMA200, at most 1 × ATR(14) below it.
4. The bar closes back above the EMA200.
5. Optional market filter: SPY trades above its own 200-period EMA.

SCREENER COLUMNS
• Signal (1 = bounce today) – all conditions met on the latest bar
• Watch (near EMA200) – uptrend intact, close at most X % above the EMA200, no touch yet (early-warning list)
• Distance to EMA200 % – close relative to the EMA200
• EMA200 slope 20 bars % – strength of the long-term trend
• Buy stop – signal-bar high plus a small offset (reference level)
• Stop – 1.5 × ATR(14) below the EMA200 (reference level)
• EMA200 – current value

HOW TO USE
1. Add the script to your favorites.
2. Open the Pine Screener, choose a watchlist, select this indicator and the 1D timeframe.
3. Filter "Signal = 1" for today's bounces, or "Watch = 1" for candidates approaching the EMA200.
4. Run it after the US close so the daily bar is complete.

NOTES AND LIMITATIONS
• This is a screening tool, not a complete trading system. It does not manage exits; the buy-stop and stop values are reference levels only.
• The Pine Screener evaluates the last 500 bars, so the EMA200 can differ slightly from the value on a chart with full history. Confirm all levels on the chart before placing an order.
• Bounces off the EMA200 often fail on the first attempt; a close back below the average is a common exit condition.
• The script uses a single request.security() call for the SPY filter and returns a scalar, which keeps it compatible with the Pine Screener.
• For educational purposes only. Not financial advice.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.