Attachments forums

Re: MT5 Moving Averages (MAs)

enthusiastiAIuser, Fri Sep 04, 2026 1:59 am

Hello, this indicator is a two-moving-average crossover strategy, but it includes a built-in backtester that optimizes the values of the fast and slow MAs while determining the best exit strategy. This is illustrated by a trend line that makes it easy for you to see both losing and winning trades. If you hover over the trend line, you’ll find additional information such as the trade type and how much you earned or or lost on that trade. It also includes a system to prevent overfitting: it trains on 70% of the candlesticks (the number of which you specify in the settings) and tests the robustness of the winning settings on 30% of future candlesticks that the indicator has not yet seen. It calculates the out-of-sample performance ratio (WFE) compared to in-sample performance, and if the strategy fails to meet the 50% WFE requirement for the settings or the number of out-of-sample (OOS) trades falls below 3, the indicator immediately displays: STATUS: OVERFITTING DETECTED ❌ and resets the signals to zero and completely blocks them to protect against market noise, with the option to run the auto-optimization counter to automatically find the best settings after a certain period. You won’t need to optimize again because the optimization data for each pair and time frame is stored in the “Files” folder; so if you close and reopen the platform, the indicator will apply the saved settings.
You can adjust, explore, and change the settings as you see fit to achieve the best results for you, or use them with other tools such as filters based on market structure.

Question: Is there a thread on ForexStation dedicated to this type of indicator? (I mean self-optimizing indicators.)
All files in topic