Versão 1.1
2025.03.03
Configurable ADX Threshold:
We introduced a new input parameter (ADXThreshold) that allows the user to set the ADX level required to trigger a trade. Instead of hard-coding a value (like 20), traders can now test different thresholds (for example, 35) directly from the EA's settings. This flexibility improves adaptability to different market conditions.
ADX Filter Logic in Entry Conditions:
Before evaluating other entry criteria (trend direction, EMA, and Supertrend bands), the EA retrieves the ADX value from the previous candle. If the ADX is below the user-defined threshold, it skips the entry. This helps filter out ranging or low-trend markets, potentially reducing false signals and improving trade quality.
Live Mode Application:
The ADX check is performed on every tick (and not only in debug mode), ensuring that the filter is active during live trading. This guarantees that the strategy only enters trades when market conditions are trending strongly enough, as defined by the ADX threshold.
Complete Integration:
The ADX filter was fully integrated into the EA’s initialization and tick functions. The ADX indicator is properly set up during initialization and released on deinitialization, ensuring efficient resource management. This makes the EA robust and easier to maintain.