Forum

Best way to code a Consolidation/Noise Filter in MQL5

Hi everyone, I'm currently working on a trend-following EA, and like many of you, I'm struggling with false breakouts during market consolidation (flat markets). To solve this, I coded a simple filter that checks the dynamic spread between two Moving Averages and ensures the current candle body size