Re: 🔺 MT5 XARD - Simple Trend Following Trading System

1662
jp303 wrote: Thu Feb 19, 2026 6:36 am Hi guys, first post on here so not sure if images will load but is my MT5 playing up? Or is this normal? My m5 doesnt make any sense - The m1,m3,m4, all have the HLEMA miles away as well as 15,30m etc but on the 5m its following price much more closely.
It's because for some reason M5 is not included in period multiplication function, it starts from M4 to M1
You need to edit the mq5 file and change period.
Search for this line of code

Code: Select all

   else if(_Period <= PERIOD_M4)
   {
      EMA16Period = 336;
      Print("M4 timeframe: EMA period = ", EMA16Period);
   }
and change PERIOD_M4 to PERIOD_M5 also change "M4 timeframe..." to "M5 timeframe..."