Indicator · Pine Script v6 · On the chart

RTD IFVG

by Rickylel

RTD IFVG tracks inverted fair value gaps (IFVGs) and identifies bullish or bearish trade setups when price closes through gaps following liquidity sweeps, higher-timeframe FVG reactions, or SMT divergence.

View on GitHub

Repaints

GitHub stars3on the repository
Pine versionv6current
Lines of code2,654
Settings40inputs
LicenceNone stated
Last update2 months ago17 Aug 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

The indicator grades setups from A+ to C based on positioning and momentum, plotting visual execution plans with customizable stop loss, break-even, and take-profit levels directly on the price chart. Users can adjust detection sensitivity, filter minimum setup grades, set risk management parameters, and highlight trading sessions.

Details

Published by

Rickylel on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

M1-M5, M15-H1

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Detection ModestringSeriesdetect_mode
SensitivitystringSensitivesens_mode
BiasstringNeutrobias_input
Allow 7-15 Candle IFVGsbooltrueallow_15_ifvg
Remove Losing Setupsbooltruerm_losing
Require BE not breached in inversionbooltruereq_be_safe
Show Winning Setupsbooltrueshow_winning
Include Current TF in HTF PDAsboolfalseinclude_curr_tf
Enable Anti-Front-Run Filterboolfalseuse_frontrun_filter
Min RTD Grade to DisplaystringAmin_grade
Number of Setups Displayedint5max_show
Stop Loss PlacementstringWick / Swingsl_mode
Show all 40 settings
SettingTypeDefaultVariable
Fixed SL Size (Points)float15.0sl_fixed_pts
Stop Loss Buffer (Points)float5.0sl_buffer
Account Balance ($)float50000acc_bal
Risk per Trade (%)float1.0risk_pct
Show Position Size (Contracts)booltrueshow_qty
Enable Visual Execution Planbooltrueviz_active
Show Price Levelsboolfalseshow_prices
Stop Loss Line (SL)colorcolor.rgb(0, 0, 0)c_viz_sl
Break-Even Trigger (BE)colorcolor.orangec_viz_be
Take Profit Lines (TP)colorcolor.rgb(0, 0, 0)c_viz_tp
NY AM Sessionsession0930-1200t_nyam
NY Lunch Sessionsession1200-1330t_lunch
NY PM Sessionsession1330-1600t_nypm
London Sessionsession0200-0500t_lon
Asia Sessionsession2000-0000t_asia
Draw NY AM Boxbooltrueshow_bg_nyam
c_bg_nyamcolorcolor.new(#2962FF, 85)c_bg_nyam
Draw Lunch Boxboolfalseshow_bg_lunch
c_bg_lunchcolorcolor.new(#787b86, 85)c_bg_lunch
Draw NY PM Boxbooltrueshow_bg_nypm
c_bg_nypmcolorcolor.new(#FF9800, 85)c_bg_nypm
Draw London Boxbooltrueshow_bg_lon
c_bg_loncolorcolor.new(#E91E63, 85)c_bg_lon
Draw Asia Boxbooltrueshow_bg_asia
c_bg_asiacolorcolor.new(#00BCD4, 85)c_bg_asia
Lookbackstring1 Daysess_lookback
Label SizestringTinysess_lbl_sz
Line StylestringDottedsess_style_in
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Golden Bullet Strategy

by TradersPost
228 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy

This indicator detects and draws the first Fair Value Gap (FVG) that forms in each hourly session based on a selected lower timeframe, with specialized handling for Regular Trading Hours (RTH) confluence windows. It draws FVG range boxes, midpoint lines, hourl

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints

This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
19 stars

This indicator highlights Inner Circle Trader (ICT) killzones and key session pivot points directly on the price chart. It projects shaded boxes for specific trading sessions, including Asia, London, NY AM, NY Lunch, and NY PM, to help traders identify high-li

Indicator v5 SMC / ICT / price actionSessions & time
Updated 3 years ago · MIT GitHub repository of ICT Killzones & Pivots

Bandz Session Ranges + ORG + Opening Prices plots trading session ranges, killzones, opening RTH gaps, standard deviation projections, and key opening prices directly on the price chart. It calculates gap ranges based on prior regular trading hours close sourc

Indicator v6 Sessions & timeSupport & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Session Ranges + ORG + Opening Prices

More SMC / ICT scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers