Forum

Can not open txt file and keep report error 5002

Dear, Anyone can support, I can not find the problem. It keep reporting error 5002 void ReadTextFileAndExecuteSignals() { //--- correct way of working in the "file sandbox" ResetLastError (); int filehandle= FileOpen ( "D://GBPUSD.txt" , FILE_TXT ); if (filehandle!= INVALID_HANDLE ) {

Help: EA does not open the orders at same time on two different MT4 account, same broker.

Hello All, I am running a same EA on two different MT4 accounts, same broker. However, sometimes during the day, the orders are not opened at the same on two accounts. One account opened more orders than other account. Please help me how to fix it, I set Slippage is equal to 5. Thanks TT

MQ4 code to get signal from two indicators on same window with different scale.

Hello, I combined two indicators such as momentum and moving average of oscillator (OsMA) on same window. I add level 100 on momentum parameter and level 0 on OsMA parameter. Now I would like to use these two parameters to determine the signal by coding on MQ4. Anyone can help? The point here I

How to open new order right after the trailing stop is closed on same direction.

Hello, I am beginner of EA. I would like to write simple EA to open new buy/sell market order right after the trailing stop loss is closed. I already have free trailing stop EA. I appreciate if someone can help me. Regards, VNCIS