OPEN-SOURCE SCRIPT
Actualizado Ai SNIPER v2 15M

Multi-Timeframe Trend Pullback Scanner (15M + 5M Refinement)
What it does
SNIPER v2 identifies trend-pullback continuation setups on the 15-minute chart and automatically pulls 5-minute data to display refined entry, stop-loss, and take-profit levels — so you get lower-timeframe precision without ever leaving the 15M chart.
How it works
A signal prints only when ALL of the following confluences align:
Higher-timeframe bias — price is above the 1H 200 EMA for longs, below for shorts (pulled via request.security, works from any chart)
Pullback — price has retraced into the 9/20 EMA zone within the lookback window
Momentum trigger — Stochastic RSI cross up from oversold (longs) or down from overbought (shorts) within the last 2 bars
Trend strength — ADX above threshold (default 20) filters out chop
Trigger candle — closes back through the 9 EMA in the signal direction
Late-entry protection — skips signals where the trigger candle has already run more than a set % (default 2%)
Cooldown — blocks repeat signals for a set number of bars
5M refinement layer
When a signal fires, the script pulls the 5-minute 9 EMA and 5-minute micro swing high/low (via request.security_lower_tf) and draws four levels on your chart:
ENTRY (5M) — refined limit-entry level at the 5M 9 EMA
SL TIGHT — 5M micro swing stop (tighter risk, larger size for the same dollar risk)
SL SAFE — original 15M pullback structure stop
TP 2R — 2:1 reward target calculated from the tight stop
All four levels are also included in the alert message, so a phone notification contains the complete trade plan.
Alerts
Uses both alert() and alertcondition(). To cover a watchlist: open each symbol on 15M, create one alert per symbol with "Any alert() function call," Once Per Bar Close.
Settings
ADX filter and threshold, optional declining-volume filter, pullback lookback, signal cooldown, late-entry %, Stoch RSI lengths/levels, and toggles for the 5M refinement lines.
Best use
Designed for the 15M chart on liquid instruments (major crypto pairs, index futures, large-cap stocks). The background tint shows current 1H bias at a glance. Signals are a starting point for your own analysis — always confirm structure before entering.
Disclaimer
This is a technical analysis tool for educational purposes only, not financial advice. No indicator predicts the future or guarantees results. Always use your own risk management.
What it does
SNIPER v2 identifies trend-pullback continuation setups on the 15-minute chart and automatically pulls 5-minute data to display refined entry, stop-loss, and take-profit levels — so you get lower-timeframe precision without ever leaving the 15M chart.
How it works
A signal prints only when ALL of the following confluences align:
Higher-timeframe bias — price is above the 1H 200 EMA for longs, below for shorts (pulled via request.security, works from any chart)
Pullback — price has retraced into the 9/20 EMA zone within the lookback window
Momentum trigger — Stochastic RSI cross up from oversold (longs) or down from overbought (shorts) within the last 2 bars
Trend strength — ADX above threshold (default 20) filters out chop
Trigger candle — closes back through the 9 EMA in the signal direction
Late-entry protection — skips signals where the trigger candle has already run more than a set % (default 2%)
Cooldown — blocks repeat signals for a set number of bars
5M refinement layer
When a signal fires, the script pulls the 5-minute 9 EMA and 5-minute micro swing high/low (via request.security_lower_tf) and draws four levels on your chart:
ENTRY (5M) — refined limit-entry level at the 5M 9 EMA
SL TIGHT — 5M micro swing stop (tighter risk, larger size for the same dollar risk)
SL SAFE — original 15M pullback structure stop
TP 2R — 2:1 reward target calculated from the tight stop
All four levels are also included in the alert message, so a phone notification contains the complete trade plan.
Alerts
Uses both alert() and alertcondition(). To cover a watchlist: open each symbol on 15M, create one alert per symbol with "Any alert() function call," Once Per Bar Close.
Settings
ADX filter and threshold, optional declining-volume filter, pullback lookback, signal cooldown, late-entry %, Stoch RSI lengths/levels, and toggles for the 5M refinement lines.
Best use
Designed for the 15M chart on liquid instruments (major crypto pairs, index futures, large-cap stocks). The background tint shows current 1H bias at a glance. Signals are a starting point for your own analysis — always confirm structure before entering.
Disclaimer
This is a technical analysis tool for educational purposes only, not financial advice. No indicator predicts the future or guarantees results. Always use your own risk management.
Notas de prensa
Ai SNIPER v2.1 — Adaptive Multi-Timeframe Trend Pullback Scanner (Auto TF Scaling + Trade Levels)What it does
SNIPER v2.1 identifies trend-pullback continuation setups and draws a complete trade plan on your chart at every signal — entry, two stop-loss options, and take-profit — with all levels included in the alert message. It adapts automatically to whatever timeframe you're viewing: the higher-timeframe bias and lower-timeframe refinement are derived from your chart TF, so the same multi-timeframe logic works on 5M, 15M, 30M, or 1H without touching a setting.
How it works
A signal prints only when ALL confluences align:
Higher-timeframe bias — price above the Bias EMA (default 200) on a timeframe 4x your chart for longs, below for shorts. Chart background tint shows current bias at a glance.
Pullback — price retraced into the Fast/Slow EMA zone (default 9/20) within the lookback window
Momentum trigger — Stochastic RSI cross up from oversold (longs) or down from overbought (shorts) within the last 2 bars
Trend strength — ADX above threshold (default 20) filters chop
Trigger candle — closes back through the Fast EMA in the signal direction
Late-entry protection — skips signals where the trigger candle already ran beyond a set %
Cooldown — blocks repeat signals for a set number of bars
Auto timeframe scaling
Bias TF = chart timeframe x4 (15M chart → 1H bias, 30M → 2H, 1H → 4H)
Refinement TF = chart timeframe ÷3 (15M chart → 5M, 30M → 10M, 1H → 20M)
An on-chart table always displays which timeframes are in use
Auto can be disabled; two manual timeframe inputs take over (only used when Auto is OFF)
Trade levels drawn at every signal
ENTRY — refined limit-entry level at the lower-timeframe Fast EMA
SL TIGHT — lower-timeframe micro swing (tighter risk distance)
SL SAFE — chart-timeframe pullback structure (wider, harder to wick out)
TP — configurable R multiple (default 2R) calculated from the tight stop
All four prices are labeled on the chart and embedded in the alert text, so a single notification contains the full trade plan.
Configurable
Fast/Slow/Bias EMA lengths, Stoch RSI lengths and levels, ADX threshold, pullback lookback, cooldown, late-entry %, TP multiple, line extension, and optional declining-volume filter.
Alerts
Uses alert() and alertcondition(). To cover a watchlist: open each symbol, create one alert per symbol with "Any alert() function call," Once Per Bar Close.
Best use
Liquid instruments (major crypto pairs, index futures, large-cap stocks) on intraday timeframes from 5M to 1H. Signals are a starting point for your own analysis — always confirm structure before entering. A companion strategy version is available for backtesting configurations.
Disclaimer
Technical analysis tool for educational purposes only, not financial advice. No indicator predicts future price movement or guarantees results. Always apply your own risk management.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.