Forum

Pause expert before news time

Hi guys I'm writing an expert and I need it to stop opening positions and close all positions and orders 1hour before important news time how can I do it? I searched a lot, all is about using MQLcalendar but there is not such a file named "MqlCalendar.mqh" in my metatrader5 I tried to reinstall and

keep getting error: debug version of 'test.ex5', please recompile it

Hi guys I'm new to mql5 and I'm writing an expert. I make changes and compile the code with F7 or the button above the screen written "compile" but when I run strategy tester I get the error: " debug version of 'test.ex5', please recompile" it. Even when I close the program and debugger and open

EMA returns 10 all the time

Hi guys I want to write an expert that I need EMA and SMA it didn't work and I found out the return value of EMA and SMA is alwaus 10!!! I tried in different TimeFrames , indexes, SMA , EMA but just returns 10! what am I doing wrong? Here is my tiny code for testing the value of EMA200 and it