Forum

Why am I getting .dat file instead of .csv when exporting?

I’m trying to export my strategy signal data into a .csv file. The file is created successfully in MQL5/ , but instead of agreement_export.csv I always get a file with .dat extension. Could someone explain why this happens, and what is the correct way to force MT5 to generate a proper .csv instead

Arrows in MT5 custom indicator not appearing with M1 candles — need help

I coded a custom indicator that plots arrows on M1 candles when all higher timeframes (M5, M15, M30, H1, H4, D1) agree with the candle direction. The arrows appear shifted or misplaced or don't appear at all. I think the problem is with the loop. I am adding the for loop in OnCalculate function