Fresh MQL5 code release – perfect for enhancing your MT4/MT5 strategies.
MACD Institutional: High-Volume Activity Filter
The Concept: Statistical Relevance Filtering
The indicator operates on the premise that not all price movements are equally valid. In illiquid markets, price can move erratically without real support.
MACD Institutional uses an Analysis Buffer (InpBufferSize) that is only updated when the volume of a current tick exceeds its volume moving average (volume SMA). If the volume is below the average, the indicator ignores that data, maintaining the institutional "memory". The result is a MACD that reacts to real buying and selling pressure from major participants.
Key Features
-
Dynamic Volume Filtering: Only candlesticks with above average volume (InpMAVolumePeriod) are used to calculate EMAs.
Protect profits effectively with the smart Trailing Stop Expert Advisor. Advanced trailing options for MT4/MT5. See it in action.
-
False Signal Reduction: By removing low activity noise, signal lines and MACD tend to show cleaner trends and crossovers with higher probability of success.
-
Custom EMA Calculation: Includes a proprietary implementation for calculating the Exponential Moving Average based solely on the filtered data window.
-
Fully Adjustable Parameters: Full control over volume period, analysis buffer size and classic MACD periods.
Input Parameters
-
Volume Averaging Period: Window to average volume and determine what is "relevant activity".
-
N values in the array (Buffer Size): Size of the analysis window for the filtered price reconstruction.
-
MACD Fast/Slow EMA: Traditional periods for the calculation of the spread.
-
MACD Signal Period: Period of the SMA that acts as a trigger line.
Technical Details
-
Author: Fernando Javier De Mendonça
-
Platform: MetaTrader 5 (MQL5)
-
Type: Separate Window Indicator
Complement community code with advanced automation from RobotFX.
71832