OPEN-SOURCE SCRIPT

ICT HTF FVGs (fadi)

Updated
ICT HTF FVGs displays the higher timeframe FVGs on current chart. This allows the trader to easily visualize the higher timeframe FVGs without having to mark them manually and see when price reaches point of interest for possible reversals or reaction.

This indicator attempts to provide as much flexibility possible by being able to define the following:

Higher Timeframe Settings
Timeframe to monitor
Bullish FVG color for this timeframe
Bearish FVG color for this timeframe
Maximum number of FVGs to display for this timeframe
Distance from current bar. This prevents overcrowding of FVGs

Hide Lower Timeframes from current chart. If this option is turned off, 5m timeframe FVGs will be displayed on an hourly chart as an example.

Show Border for the FVGs. Border color is derived from the FVG color

Show Mitigated FVG on the chart. The labels are removed to prevent the labels from overlapping with the candles on the chart/

Show C.E. Draws a line at the middle point of the FVG. This is usually an area of interest.

Show Label Shows the label with label color, background color, and label size.


Release Notes
UPDATE: Changed the logic that calculates the width of the FVGs as timeframe changes. It should have consistent right side spacing now.

Two new properties:

Distance: The distance of the closest timeframe from current candle
Spacing The spacing between timeframe FVGs to prevent overlapping of labels
Release Notes
Bugfix: FVGs were being drawn before the HTF candle has closed. Added check for bar confirmation on the HTF. this will also mean that HTF cannot be marked mitigated on lower timeframe and stays visible until HTF confirms it, which is the right approach.
Release Notes
Bug Fix:
1. When mitigated FVGs were hidden, they were still counted resulting in fewer FVGs being displaced.
2. The previous bug fix resulted in FVGs' right padding not calculating correctly.
Release Notes
UPDATE:
1. Added logic to only show FVGs within range as follows:
-- Intraday, show FVGs that are within daily range above and below current price
-- Daily, show FVGs that are within 3 months range above and below current price
-- Weekly, show FVGs that are within 12 months range above and below current price
-- Monthly, show all FVGs

2. Changed the logic of how the indicator detects FVGs due to Tradingview limitations. Tradingview does not reliably return barstate.isconfirmed when checked via request.security.
Release Notes
FIX: Fixed the mitigation wick filled logic to account for when price goes through the HTF FVG
Release Notes
Bug Fix: Fixed the mitigation and display logic that was resulting in mitigated FVGs being displayed
Chart patternsfvgictictconceptsmultitimeframe

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer