Join our fan page
- Published by:
- Amanda Vitoria De Paula Pereira
- Views:
- 134
- Published:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
This indicator is a pure price action utility designed for Smart Money Concepts (SMC) traders. It automatically scans the chart to detect and visualize Fair Value Gaps (FVGs), also known as imbalances or inefficiencies, in real-time.
A Fair Value Gap occurs when there is a three-candle sequence where the wicks of the first and third candles do not overlap, leaving a "gap" in the body of the second candle. These zones act as strong magnets for price, often serving as high-probability targets or reversal zones when the market returns to mitigate the imbalance.

Key Features:
-
Instant Detection: Automatically identifies both Bullish (Demand) and Bearish (Supply) FVGs as soon as the third candle closes.
-
Non-Repainting: The logic relies strictly on closed candles, ensuring that once an FVG is drawn, it never repaints or shifts.
-
Lightweight: Optimized code that scans a user-defined history length, ensuring zero terminal lag even when attached to multiple charts.
Input Parameters:
-
InpHistoryBars: The maximum number of historical bars the indicator will scan (default is 500 to keep the terminal extremely fast).
-
InpColorBull: Custom color selection for Bullish FVGs.
-
InpColorBear: Custom color selection for Bearish FVGs.
Recommended Usage: Attach this indicator to execution timeframes (like M5 or M15) to spot precise entry imbalances, or use it on higher timeframes (H1 or H4) to define structural liquidity targets.
MACD Tradingview version
The standard MACD on MT5 platform seem to be not enough so I code this version by copying from the pinescript.
BGC Grid EA
Regime-adaptive grid EA with three operating modes (BGT/TGT/MGT), ATR-dynamic spacing, CUSUM change-point detection, equity-based cycle management, and a full CSV diagnostics pipeline. Based on the Bi-Directional Grid Constrained (BGC) stochastic process research by Taranto & Khan (2020–2022).
Accelerator Oscillator (AC)
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.
MACD Signals
Indicator edition for new platform.