I have coded a simple ea that enters on a cross of mas (5wma and 25ema) when the macd lines are correct. I am having a problem with gettin bad entrances like the one highlighted on the screen shot below. It is entering when the mas don't quite cross. Any advise as to what i am doing wrong? I can upload the code if needed.
how do you check the cross? you always have to check the last closed bar because MAs are lagging. they aren't fixed until a new bar was opened. maybe this can help (one of the most mistakes with MAs )
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello,
I have coded a simple ea that enters on a cross of mas (5wma and 25ema) when the macd lines are correct. I am having a problem with gettin bad entrances like the one highlighted on the screen shot below. It is entering when the mas don't quite cross. Any advise as to what i am doing wrong? I can upload the code if needed.
Thanks for the help