OPEN-SOURCE SCRIPT
Atualizado RTH 1st Presented FVG

Plots the first Fair Value Gap of the Regular Trading Hours session and keeps those levels on the chart.
First presented FVG
Detects the first 3-candle wick-and-body FVG after the cash open. The middle candle cannot be the 09:30 bar, so the earliest valid gap starts at 09:31. By default the gap is measured on 1-minute data and drawn on any chart up to the Max Timeframe. Turn on “Use Chart Timeframe for 1st Presented” to measure it on the chart’s own timeframe instead.
Gradient Levels
Each gap can show high/low, equilibrium, quartiles, and optional eighths. One label sits at the midpoint. Boxes and lines can extend right with a bar buffer.
History
Choose how many daily first-FVGs to keep. Optionally keep a separate count of Monday and Friday gaps so those days stay visible longer.
Premium / Discount
Builds a range from recent first-FVG highs and lows. A table shows premium or discount versus equilibrium, with optional gradient lines at high, low, mid, quartiles, and eighths.
Overlapping FVGs
Optionally highlight later FVGs that trade through a stored first-FVG level. Can limit that to the first overlap of the session.
Session hours, timezone, colors, line styles, and Max Timeframe are all user-controlled.
First presented FVG
Detects the first 3-candle wick-and-body FVG after the cash open. The middle candle cannot be the 09:30 bar, so the earliest valid gap starts at 09:31. By default the gap is measured on 1-minute data and drawn on any chart up to the Max Timeframe. Turn on “Use Chart Timeframe for 1st Presented” to measure it on the chart’s own timeframe instead.
Gradient Levels
Each gap can show high/low, equilibrium, quartiles, and optional eighths. One label sits at the midpoint. Boxes and lines can extend right with a bar buffer.
History
Choose how many daily first-FVGs to keep. Optionally keep a separate count of Monday and Friday gaps so those days stay visible longer.
Premium / Discount
Builds a range from recent first-FVG highs and lows. A table shows premium or discount versus equilibrium, with optional gradient lines at high, low, mid, quartiles, and eighths.
Overlapping FVGs
Optionally highlight later FVGs that trade through a stored first-FVG level. Can limit that to the first overlap of the session.
Session hours, timezone, colors, line styles, and Max Timeframe are all user-controlled.
Notas de Lançamento
1. Made option to exclude current day (if Monday/Friday) for the last 2 weeks of Monday/Friday calculation.Notas de Lançamento
1. Added 1st Displacement FVG2. Added 1st Reflection FVG
3. Fixed Premium/Discount bug
4. Fixed historical session bug
Notas de Lançamento
1. Corrected last 2 weeks of Mondays/Fridays to be 2 weeks prior to the current open trading week.2. Added Isolation Mode. Users can select any week day(s) and select how many weeks back to see gaps of those specific days.
3. Added option to include/force show gaps on holidays when not the traditional RTH definition.
Note: Gap sizing and displacement body size are optimized for NQ1! When trading ES1!, users might want to lower minimum gap size and displacement body size.
Notas de Lançamento
1. Fixed bug for Show last Monday/Friday Gaps when viewed in RTH mode.Notas de Lançamento
1. Fixed bug with Isolation mode showing 1st Presented FVGs in the chart timeframe.2. Strengthened logic for Displacement Gaps (Still a work in progress).
3. Added macro time filter to overlapping FVGs.
Notas de Lançamento
1. Fixed bug with gaps origin.2. Buffer and TV RTH Session mode no longer working. Will look for fix in next update.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.