Indicator · Pine Script v5 · On the chart

Every Hour 1st FVG with Stats - RTH Confluence

by TamaraKGreen

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.

View on GitHub

Repaints

GitHub stars46on the repository
Pine versionv5runs as is
Lines of code629
Settings26inputs
LicenceNone stated
Last update7 weeks ago4 Sep 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

Every Hour 1st FVG with Stats - RTH Confluence draws FVG range boxes, midpoint lines, hourly open levels, and statistical price range projections directly on the main chart. An interactive table summary displays session statistics. Settings allow traders to adjust detection resolutions, custom color themes for RTH versus regular gaps, range calculations, and table positioning.

Details

Published by

TamaraKGreen on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

SMC / ICT / price action, Support & resistance, Screeners & dashboards, Sessions & time

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
FVG Timeframestring5ltfResolution
Bullish FVG Colorcolorcolor.new(#05f3bf, 75)bullColor
Bearish FVG Colorcolorcolor.new(#e903a4, 75)bearColor
RTH Bull FVG Colorcolorcolor.new(#00bfff, 60)rthBullColor
RTH Bear FVG Colorcolorcolor.new(#ff6600, 60)rthBearColor
Show Midpoint LinesbooltrueshowMidpoints
Midpoint Line Colorcolorcolor.new(color.black, 0)midpointColor
Midpoint Line StylestringSolidmidpointStyle
Table PositionstringTop RighttablePosition
Table Text SizestringSmalltableTextSize
Show Hourly LinesbooltrueshowHourlyLines
Show Hour DelimiterbooltrueshowDelimiter
Show all 26 settings
SettingTypeDefaultVariable
Delimiter Colorcolorcolor.new(color.gray, 50)delimiterColor
Delimiter Widthint1delimiterWidth
Show Hourly OpenbooltrueshowOpenLine
Open Line Colorcolorcolor.new(color.blue, 0)openLineColor
Open Line Widthint1openLineWidth
Open Line StylestringDashedopenLineStyle
Show Range LinesbooltrueshowRangeLines
Range StatisticstringMeanrangeStatistic
Range High Colorcolorcolor.new(color.teal, 20)rangeHighColor
Range Low Colorcolorcolor.new(color.red, 20)rangeLowColor
Range Line Widthint2rangeLineWidth
Range Line StylestringDashedrangeLineStyle
Show Line LabelsbooltrueshowLineLabels
Label Text SizestringSmalllabelTextSize
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
218 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

Clusterbreak

by Jferheart
15 stars

This indicator identifies Break of Structure (BOS) and Market Structure Shift (MSS) zones, plotting automated bracket levels on the price chart. It triggers signals when a reversal breaks a swing point formed inside an opposing zone, projecting stop loss and t

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · None stated GitHub repository of Clusterbreak

MyTTFM - Clean

by dbruce1990
12 stars

MyTTFM - Clean draws a higher-timeframe candle overlay on the price chart and marks related ICT fractal structure. It plots configurable HTF candles, period separator lines, midpoint levels, a T-Spot box, and labels for recent C2 and C3 patterns plus swept lev

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of MyTTFM - Clean

Apex Protocol Assistant

by alboogycOdR
6 stars

Apex Protocol Assistant is a Smart Money Concepts indicator designed for session-based trading. It determines market direction using a higher timeframe Exponential Moving Average and highlights Asian range boundaries alongside London and New York killzones. Th

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant

This overlay indicator researches multi-timeframe setup zones for NQ and ES futures on the price chart. It builds chart, five-minute through four-hour zones, including transformed IFVG and BB zones, scores them, and tracks liquidity pools and structure. During

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Setups Research

BTMM Entry System

by jcortes254
3 stars

The BTMM Entry System is a price-chart overlay indicator based on the Beat the Market Maker methodology. It detects Optimal Trade Entry (OTE) second-leg patterns and Fibonacci zones, combined with multi-factor confluence analysis including EMA alignments, sess

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM Entry System

More indicators

Trade Your Charts With a Regulated Broker

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

Compare brokers