Custom MQL5 MA crossover condition
-

I could use the condition blocks to achieve this but i would prefer to use code as i have many conditions (multipe MA constants)
Its a very simple ma cross over signal using index 1 and 2. yet when i run this in the mt5 backtester, its shorting all candles as if the custom mql code box doesnt exist. am I missing something here?