The classic SuperTrend loses accuracy when the market regime changes because it uses fixed ATR parameters and a fixed multiplier. The article examines the architecture of ML SuperTrend Pro v2.00 written entirely in MQL5: a background test matrix with adaptive parameter updates, a regime grid as a context detector, an accuracy layer consisting of five filters, and Parabolic-style rendering with well-designed buffers. The article presents the principles of L1 regularization, the results of a comparison with the classic SuperTrend, and practical recommendations for deployment and integration via iCustom.
SuperTrend is one of the most widely used trend indicators on the MetaTrader 5 platform. Its logic is appealing in its simplicity: if the price is above the upper band, the trend is bullish; if it is below the lower band, the trend is bearish. The problem is that the classic SuperTrend uses fixed ATR parameters and a fixed multiplier. In different markets, during different seasons, and under varying levels of volatility, the same set of parameters sometimes generates accurate signals and other times produces a false signal streak.
An experienced trader knows this and periodically adjusts the parameters manually. A novice developer either optimizes the parameters based on historical data and risks overfitting, or leaves the values at their defaults and ends up with a suboptimal result. Both approaches are structurally flawed: the market changes, but the parameters do not.
This article shows how to build an indicator that solves this problem. Four components transform the classic SuperTrend into an adaptive ML system.
Check out the new article: Self-Learning SuperTrend: An Adaptive Machine Learning-Based Trend Indicator.
SuperTrend is one of the most widely used trend indicators on the MetaTrader 5 platform. Its logic is appealing in its simplicity: if the price is above the upper band, the trend is bullish; if it is below the lower band, the trend is bearish. The problem is that the classic SuperTrend uses fixed ATR parameters and a fixed multiplier. In different markets, during different seasons, and under varying levels of volatility, the same set of parameters sometimes generates accurate signals and other times produces a false signal streak.
An experienced trader knows this and periodically adjusts the parameters manually. A novice developer either optimizes the parameters based on historical data and risks overfitting, or leaves the values at their defaults and ends up with a suboptimal result. Both approaches are structurally flawed: the market changes, but the parameters do not.
This article shows how to build an indicator that solves this problem. Four components transform the classic SuperTrend into an adaptive ML system.
Author: Galym Yechshanov