Forum

Close MA Cross, can anyone help me for my EA code please?

Hello everyone, I would like my EA to close the orders at CROSSING moving averages, simply. But I can not find the "formula" that can perform this function. However, I tried a lot of solutions, such as: if (Ask <= (ma5 (1) <ma8 (1) && ma5 (0)> ma8 (0))) ..... CloseAll (); etc ... and many others