OPEN-SOURCE SCRIPT

Basic FVG

由nacho-fx提供
已更新
Basic Fair Value Gap (FVG) Indicator
The Basic Fair Value Gap (FVG) Indicator is a tool designed for traders using the TradingView platform to identify and visualize Fair Value Gaps (FVGs) on any given chart.

Key Features:

Bullish and Bearish FVG Detection: The indicator automatically detects and highlights both bullish and bearish Fair Value Gaps on the chart. Bullish gaps are highlighted in blue, while bearish gaps are marked in red, with customizable transparency for clear visibility.

Customizable Parameters:

Max Bars Back: Users can set the maximum number of bars to look back in order to find potential FVGs.

Box Length: The length of the FVG box can be adjusted to fit the user's preference, allowing for better visual management on different timeframes.

Tick Buffer for Close Validation: The indicator only considers an FVG filled if the price closes beyond the gap by a customizable tick buffer, ensuring precise gap closure recognition.
Automatic Removal of Filled Gaps: Once an FVG is filled (i.e., the price closes beyond the gap by the defined tick buffer), the corresponding FVG box is automatically removed from the chart. This keeps the chart clean and focused on active gaps.

Real-Time Updates: The indicator updates in real-time, ensuring that traders have the most current information about potential gaps in price, which could signify strong support or resistance levels.
版本注释
Ensured that FVG boxes are drawn only after a candle has fully closed, thereby providing more accurate and stable visual feedback. Additionally, the boxes will only be removed after a confirming candle closes beyond the FVG by at least one tick, preventing premature or incorrect removals during live price action.
版本注释
Ensured correct FVG Removal
Chart patternsfvg

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明