OPEN-SOURCE SCRIPT

Fair Value Gaps (FVG) [UAlgo]

A fair value gap is especially popular among price action traders and occurs when there are inefficiencies or imbalances in the market, or when the buying and selling are not equal. Fair value gaps can become a magnet for the price before continuing in the same direction.

🔶 Key Features :

Fair Value Gap Identification:

Bullish fair value gaps occur when the current market price exceeds the previous high. The indicator identifies bullish gaps by comparing the low of the current candle with the high of the candle two candles ago . If the low of the current candle is higher than the high two candles ago and the closing price of the previous candle is also higher than the high two candles ago, a bullish fair value gap is detected.

Bearish fair value gaps occur when the current market price falls below the previous low. The indicator identifies bearish gaps by comparing the high of the current candle with the low of the candle two candles ago. If the high of the current candle is lower than the low two periods ago and the closing price of the previous candle is also lower than the low two candles ago, a bearish fair value gap is detected.

Fair Value Gap Filter :

ATR measures market volatility by analyzing the range of price movements over a specified period. It provides insights into the average price range that a security experiences within a given timeframe. After the ATR is calculated, a Simple Moving Average (SMA) is computed for the ATR values. This moving average smoothens out the ATR data, providing a clearer indication of the average volatility levels over time.

When the filter is active, fair value gaps are identified only if they occur during periods of relatively higher volatility, as indicated by the ATR being greater than the SMA. This helps in refining and obtaining the detection of stronger fair value gaps

An example with FVG filtering off:

snapshot

An example with FVG filtering on:

snapshot

Customizable Settings: Users have the flexibility to customize various parameters to suit their trading preferences. They can adjust settings such as the number of fair value gaps displayed, mitigation method (either based on closing prices or wicks), and apply filters based on Average True Range (ATR) to refine gap detection.

🔶 Disclaimer :

Use with Caution: Trading involves significant risk, and this indicator should be used with caution. While it can help identify potential trading opportunities, it does not guarantee profits and may sometimes provide false signals.

Not Financial Advice: The information provided by the Fair Value Gaps indicator is for educational and informational purposes only and should not be considered as financial advice. Traders should conduct their own research and consult with financial professionals before making any trading decisions.

Past Performance: Past performance is not indicative of future results. Historical price movements analyzed by the indicator may not accurately predict future market behavior.
Chart patternsfairvaluegapfvgimbalancepriceactionanalysis

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?


Get access to our exclusive tools: ualgo.trade

Join Our Discord For Updates: discord.com/invite/kyQkKxUQkW

All scripts & Content Provided by UAlgo Are For Informational & Educational Purposes Only.
Também em:

Aviso legal