OPEN-SOURCE SCRIPT
Mis à jour

Sniper FVG

142
This Pine Script indicator, Sniper FVG, is designed to highlight Fair Value Gaps (FVGs) within a defined trading session based on India Standard Time (IST). The user specifies a session window (default 19:00–01:40 IST), and the script automatically shades the chart background outside this range to keep focus on active trading hours. It also draws dashed vertical lines at session start and end for clear visual boundaries.

To filter signals, the script references higher‑timeframe EMA values (15m, 30m, 1h). At the first candle of each session, a bias is set: bullish if price is below all EMAs, bearish if price is above all EMAs, and neutral otherwise. Only FVGs aligned with this bias are drawn. The detection logic checks for gaps between the high of candle 1 and the low of candle 3 (bullish) or the low of candle 1 and the high of candle 3 (bearish). Boxes are extended a few bars forward, with customizable transparency, color, and minimum size percentage to avoid insignificant gaps.

Overall, the script combines session management, bias filtering, and gap visualization to help traders focus on meaningful FVG setups during their chosen trading hours.
Notes de version
bias related changes

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.