OPEN-SOURCE SCRIPT

Simple FVG

Diupdate
Simple FVG - Fair Value Gap Indicator
Overview:
The "Simple FVG" script is designed for use with TradingView to identify and visually display Fair Value Gaps (FVG) on a trading chart. This indicator highlights both bullish and bearish imbalances based on specific candlestick patterns, helping traders to quickly identify potential trading opportunities.

Key Features:

Bullish and Bearish Imbalances:

Bullish Imbalances: This script identifies bullish imbalances where the price exhibits a gap upward. The conditions for detecting a bullish imbalance are:
The high of the second candle is greater than the high of the first candle.
The low of the third candle is greater than the high of the first candle.
Bearish Imbalances: This script identifies bearish imbalances where the price exhibits a gap downward. The conditions for detecting a bearish imbalance are:
The low of the second candle is less than the low of the first candle.
The high of the third candle is less than the low of the first candle.
Customizable Display:

Bullish Blocks: Users can toggle the display of bullish imbalance blocks with customizable colors and border settings.
Bearish Blocks: Users can toggle the display of bearish imbalance blocks with customizable colors and border settings.
Color and Border Settings: Adjust the color, border color, and border width of the blocks for both bullish and bearish imbalances according to user preferences.
Visual Representation:

Drawing Blocks: The script draws filled boxes on the chart to represent identified imbalances. These blocks span from the start of the first candlestick to the end of the third candlestick, providing a clear visual indicator of the price gap.
How It Works:

Identification Logic:
The script analyzes three consecutive candles to determine if an imbalance exists.
It compares the highs and lows of these candles to establish bullish or bearish conditions.
Drawing Mechanism:
Once an imbalance condition is met, the script calculates the top and bottom levels of the imbalance block based on the high of the first candle and the low of the third candle for bullish imbalances, and vice versa for bearish imbalances.
It then draws these blocks on the chart using the specified colors and border settings.
Usage Instructions:

Add the Indicator:
Apply the "Simple FVG" indicator to your TradingView chart.
Customize Settings:
Use the input options to enable or disable the display of bullish and bearish blocks.
Adjust the colors and border settings for the imbalance blocks as needed.
Interpret Imbalances:
Look for the drawn blocks to identify potential areas where price imbalances have occurred.
Use this information to inform your trading decisions.
Originality and Value:
The "Simple FVG" script offers a unique approach to visualizing Fair Value Gaps by focusing on specific candlestick patterns. It provides traders with a tool to easily identify and analyze price imbalances, enhancing chart analysis and trading strategy development.

Chart Information:
Ensure to show the complete symbol, timeframe, and script name information on your chart for clarity and reference.

For further details and usage guidelines, refer to the TradingView House Rules.

Note: This script adheres to TradingView's guidelines for originality and usefulness, offering a practical tool for traders seeking to enhance their chart analysis.

This description adheres to TradingView's requirements by providing a detailed explanation of the script's functionality, how it works, and how users can benefit from it.
Catatan Rilis
Script Description
Title: Simple FVG (Fair Value Gap) Indicator

Description:
The Simple FVG (Fair Value Gap) Indicator helps traders identify potential imbalance areas on the chart where price might return to fill the gap. This indicator highlights bullish and bearish fair value gaps (FVGs) based on a three-bar pattern. It visualizes these imbalances using colored boxes, making it easier to spot key levels of interest.

Features:

Bullish and Bearish Blocks: Displays boxes on the chart to represent fair value gaps. Bullish blocks are shown in green, while bearish blocks are shown in red.
Customizable Appearance: Adjust the color, border color, and border width of the blocks to fit your trading style.
Block Limits: Control the maximum number of bullish and bearish blocks displayed on the chart to avoid clutter.
Dynamic Update: The indicator updates in real-time to reflect new FVGs as they form.
Settings:

Bullish Blocks:

Show Bullish Blocks: Toggle visibility of bullish FVGs.
Bullish Block Color: Set the fill color of bullish blocks.
Bullish Block Border Color: Set the border color of bullish blocks.
Bullish Block Border Width: Adjust the thickness of the border for bullish blocks.
Max Number of Bullish Blocks: Define the maximum number of bullish blocks to display on the chart.
Bearish Blocks:

Show Bearish Blocks: Toggle visibility of bearish FVGs.
Bearish Block Color: Set the fill color of bearish blocks.
Bearish Block Border Color: Set the border color of bearish blocks.
Bearish Block Border Width: Adjust the thickness of the border for bearish blocks.
Max Number of Bearish Blocks: Define the maximum number of bearish blocks to display on the chart.
How It Works:

Bullish FVG: The indicator identifies a bullish FVG if the high of the second bar is higher than the high of the first bar, and the low of the third bar is higher than the high of the first bar.
Bearish FVG: The indicator identifies a bearish FVG if the low of the second bar is lower than the low of the first bar, and the high of the third bar is lower than the low of the first bar.
Display: Blocks are drawn on the chart from the bar index of the first candle to the current bar index, marking the identified fair value gaps.
Usage:

Identify Potential Reversal Zones: Use the highlighted FVGs to gauge potential areas where the price might reverse or consolidate.
Customize to Fit Your Strategy: Adjust the settings to suit different market conditions and personal preferences.
Important Notes:

Ensure that the indicator is used in conjunction with other forms of analysis to confirm trading signals.
The number of displayed blocks is limited to prevent chart clutter. Adjust the maximum number of blocks in settings as needed.
License:
This script is published under the Mozilla Public License 2.0. For more details, visit Mozilla Public License 2.0.
Catatan Rilis
Updated chart
Catatan Rilis
Added line visualization
cuplikan
cuplikan
Catatan Rilis
Bug fix.
Bands and ChannelsCandlestick analysisfairvaluegapfvgimbalance

Skrip open-source

Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menerbitkannya sebagai sumber terbuka, sehingga para trader dapat memahami dan memverifikasinya. Hormat untuk penulisnya! Anda dapat menggunakannya secara gratis, namun penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk digunakan pada chart

Inggin menggunakan skrip ini pada chart?

Pernyataan Penyangkalan