Join our fan page
- Views:
- 323
- Rating:
- Published:
- Updated:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
This custom indicator provides a classic MACD visualization with a color-coded histogram, the main MACD line, and a signal line in a separate window. Unlike the standard MetaTrader 5 MACD, which often displays only a histogram, this version includes both the MACD and Signal lines for a more comprehensive view of momentum and trend crossovers.
The histogram is designed to change color based on its position relative to the zero level: it turns Green when the MACD value is positive (bullish territory) and Salmon when it is negative (bearish territory). This allows traders to instantly identify the current market bias and zero-line crossovers.
The indicator is highly customizable, allowing users to select different Moving Average methods (SMA, EMA, SMMA, or LWMA) for the signal line and choose the applied price for calculations. This flexibility makes it suitable for various trading strategies, from trend-following to mean reversion.
Indicator components include:
- Main MACD Line: The difference between the Fast and Slow EMAs.
- Signal Line: A Moving Average of the MACD line.
- Color Histogram: A visual representation of the MACD line’s value with color alerts for trend direction.
Input parameters:
- Fast EMA Period: Period for the fast moving average (default: 12).
- Slow EMA Period: Period for the slow moving average (default: 26).
- Signal MA Period: Period for the signal line (default: 9).
- Signal MA Method: Choice of EMA, SMA, SMMA, or LWMA for the signal line.
- Applied Price: Price type used for calculations (default: Median Price).
Image:
ADX Wilder with Bollinger Bands
This custom indicator displays the ADX Wilder, +DI, and -DI lines together with Bollinger Bands calculated on the ADX main line in a separate window. It helps traders evaluate both trend strength and the volatility range of ADX values. The middle, upper, and lower bands can be used to identify ADX expansion, contraction, and potential strength breakouts. The indicator is useful for confirming trending conditions, spotting increasing momentum, and detecting when ADX moves outside its normal range. Input parameters allow adjustment of the ADX period, Bollinger Bands period, deviation, and applied price settings.
Fixed-Width Fractional Differencing (FFD)
MQL5 implementation of the fixed-width fractional differencing (FFD) method from López de Prado's Advances in Financial Machine Learning (Chapter 5). Transforms a non-stationary price series into a stationary one while preserving maximum historical memory; output cross-validates against the Python afml library to within 1e-12.
Channel Proximity Engine
A library to retrieve proximity signals for channel based indicators
MACD Signals
Indicator edition for new platform.
