Forum

Can't find error in logic

Hello friends, I'm writing an EA but I'm having trouble with the programming logic part. The EA should do the following: At each candle check if the fast moving average of 05 has crossed from low to high the slow ones of 75 and 85, if it has, check if MacD has changed from negative to positive for

Newbie trying to figure out really simple problem

Hello, everyone, I started learning how to program in MQL5 today and I'm trying to make a simple moving average cross expert advisor. It compiles without errors, but when I try to test it in the strategy tester it does not seem to work, it stays still. I'm not sure if the problem is in the code or