In the world of trading, staying ahead of the curve is paramount. Technical indicators are powerful tools that help traders analyze price movements, identify patterns, and make informed decisions. This page introduces you to the world of technical indicators, explores the MQL5 marketplace, and presents our Market Structure Shift with FVG Indicator for MetaTrader 4 (MT4) and MetaTrader 5 (MT5).
Technical indicators are mathematical calculations based on the price and/or volume of a security. Traders use these indicators to:
- Identify Trends: Determine the direction of the market (uptrend, downtrend, or sideways).
- Gauge Momentum: Assess the strength or weakness of a price movement.
- Spot Potential Reversals: Recognize potential turning points in the market.
- Generate Trading Signals: Identify potential buy or sell opportunities.
- Measure Volatility: Understand the degree of price fluctuation.
Technical indicators are not crystal balls, but they provide valuable insights that, when combined with other forms of analysis — such as fundamental analysis and sound risk management — can significantly improve trading decisions. Common examples include Moving Averages, MACD, RSI, Bollinger Bands, and Fibonacci retracements. Each indicator uses a different formula and offers a unique perspective on market behavior.
The MQL5 marketplace is a central hub for traders using the MetaTrader 4 (MT4) and MetaTrader 5 (MT5) platforms. It’s an online store where developers can sell — or offer for free — a vast array of trading tools, including:
- Indicators: Custom technical indicators, like the one we’re introducing here.
- Expert Advisors (EAs): Automated trading robots that execute trades based on pre-defined rules.
- Scripts: Tools that perform specific tasks, such as placing orders or managing positions.
- Libraries: Collections of reusable code used to build other tools.
The MQL5 marketplace provides a secure and convenient way for traders to access tools that enhance their trading experience. It also offers developers a platform to share their work and earn income. With thousands of active developers and traders, the MQL5 community is one of the largest in the industry.
Here is our contribution to the MQL5 marketplace: the Market Structure Shift with FVG Indicator, available for both MT4 and MT5.
Are you missing crucial market turning points? Do you want a clearer picture of price action imbalances? Understanding market structure shifts (MSS) and fair value gaps (FVGs) is essential for successful trading — and our indicator identifies them automatically.
Market Structure Shifts (MSS) and Fair Value Gaps (FVGs) #
-
Market Structure Shift (MSS): A shift occurs when price breaks a significant swing high (in a downtrend, suggesting a bullish reversal) or a swing low (in an uptrend, suggesting a bearish reversal). These are key signals of potential trend changes.
-
Fair Value Gap (FVG): An FVG is a price imbalance created by rapid movement, leaving a gap between the wicks of three consecutive candles. These gaps often act as magnets, with price potentially revisiting them later.
Key Features #
- Automated MSS Detection: Identifies bullish and bearish shifts based on swing high/low breaks and significant candle body size relative to the average. Visualized with up/down arrows.
- FVG Identification: Detects bullish and bearish FVGs based on three-candle price action. FVGs are highlighted with colored rectangles.
- Real-Time Notifications: Receive instant mobile and terminal alerts for both MSS and FVG formations, enabling quick reactions.
- Customizable Parameters:
Lookback Period: Adjust the swing high/low calculation period.Displacement Factor: Control the minimum candle body size required for a valid MSS signal.Minimum FVG Size: Set the minimum size (in points) for a significant FVG. Crucial — asset and broker dependent.Candle Body Size: Define a minimum candle body size (in points) for a valid MSS. Also asset and broker dependent.Bottom Arrow Line: Adjusts the vertical placement of the arrow on the chart.
- Broker and Asset Dependency: It is essential to optimize
Minimum FVG Size,Candle Body Size, andBottom Arrow Linefor your specific instrument and broker. - Clear Visualizations: Arrows mark market structure shifts; colored rectangles highlight FVGs — giving you clean, at-a-glance chart cues.
How It Works #
The indicator combines two analytical methods:
- Swing High/Low Breaks: Calculates swing levels over the
Lookback Period. A potential MSS is signaled when price breaks a swing level and the candle body size exceeds theDisplacement Factortimes the average candle body size. - Three-Candle FVG Analysis: Examines three consecutive candles to identify FVGs — areas of price inefficiency that the market may later revisit.
Mobile and terminal alerts are sent upon detection of either an MSS or FVG.
Important Considerations #
- Optimization is Crucial: Due to broker and asset dependency, you must optimize the parameters for your specific instrument and broker. Use the MT4/MT5 Strategy Tester to find optimal values.
- No Repainting: Signals are generated after the candle closes, so what you see is what you get.
- Supplementary Tool: This indicator is a powerful aid, not a standalone system. Combine it with your own analysis and sound risk management.
Ready to enhance your trading? Download it for free from the MQL5 marketplace:
We’d love your feedback! Leave a review on the MQL5 marketplace and let us know how the indicator is working for you. Reach out with any questions or suggestions.