Midpoint Magnet
- Indicatori
-
Alexey Nazarov
MQL4/MQL5 developer with 10+ years of hands-on trading experience. I build Expert Advisors, indicators and scripts for your strategy: trend, grid, martingale, breakout, multi-currency. I implement logic based on ICT/SMC, Elliott Wave, divergences and liquidity levels. Track record: 3 products on - Versione: 1.1
- Aggiornato: 11 giugno 2026
Midpoint Magnet MT5 is a technical indicator for MetaTrader 5 designed to analyze price impulses and equilibrium levels using Smart Money Concepts (SMC) and ICT methodology.
The indicator automatically detects Fair Value Gap (FVG) zones, identifies the origin of a price impulse using confirmed fractals, and calculates a dynamic 50% Equilibrium level between the starting point and the current impulse extreme.
This level can be used to observe price reactions during retracements and analyze market structure.
Main Features
Multi-Timeframe Analysis (MTF)
Calculations are performed on the selected timeframe independently of the current chart period. For example, H1 data can be analyzed while working on an M5 or M15 chart.
Active Level Management
The indicator displays no more than one active level for each direction. When a new impulse is detected, the corresponding previous level is replaced.
Dynamic 50% Equilibrium
The equilibrium level is recalculated when the impulse reaches a new extreme. The active line extends as new candles form.
Historical Levels
When price touches the 50% level, the indicator generates an Alert. The active line changes to a thin dashed line and remains on the chart for historical analysis.
FVG Zone Visualization
Fair Value Gap zones can be displayed or hidden. Their transparency, lifetime, and mitigation conditions are configurable.
Chart Object Updates
The indicator uses ObjectMove to update line positions without recalculating the entire historical dataset on every tick.
How It Works
-
FVG Detection. The indicator identifies a price imbalance and waits for the following candle to close before confirming the impulse.
-
Starting Point Identification. The algorithm searches backward for the nearest confirmed fractal and uses it as the 0% reference point. The fractal remains fixed after confirmation.
-
Equilibrium Calculation. The 50% level is calculated between the starting point and the current impulse extreme.
-
Level Tracking. The equilibrium level is updated when a new impulse extreme is reached. Once price touches the level, the line switches to historical display mode.
Input Parameters
Calculation Settings
-
calc_tf — timeframe used for FVG and fractal calculations.
-
frac_len — number of candles on each side required to confirm a fractal.
-
lkb — historical lookback depth used to identify the impulse starting point.
-
fvg_min_pct — minimum FVG size expressed as a percentage of price.
Time Filters
-
time_from / time_to — time interval used for analysis.
-
max_days — maximum lifetime of an active line in days.
FVG Display Settings
-
Show FVG zone — enables or disables FVG visualization.
-
FVG lifetime (bars) — number of bars before a zone expires. A value of 0 disables the lifetime limit.
-
FVG transparency — zone fill transparency from 0 to 100.
-
Mitigation by Close — determines FVG mitigation using candle close (true) or candle wick (false).
Additional settings allow customization of bullish and bearish colors, active line width, and visual appearance.
Usage
Midpoint Magnet can be used to analyze market structure, track price impulses, visualize Fair Value Gaps, and monitor equilibrium levels across different timeframes.
The indicator is a technical analysis tool. The 50% level does not guarantee a price reversal and should be evaluated within the broader market context.

