Simple MA cross algo on MT5
-
I am trying to do a VERY basic MA cross on MT5. I did some testing overnight. This algo works randomly It sees some of the MA crosses & misses some. Stops seeing the crosses for a long period & then it starts seeing them again. To try & sort out why it does not work I made 2 identical EA's one for MT5 & 1 for MT4 . I ran both for several hours earlier today. The MT4 version works as it should. The MT5 version is random it misses some crosses. Indicated a cross where there is none. At one point it indicated the cross 5 bars early I do not think that I am good enough to program something that can see into the future! It almost looks like it gets worse the longer it runs?
This is the MT 4 version that works as it should https://fxdreema.com/shared/VPuUx2F9d
Mt 5 version https://fxdreema.com/shared/tZKTcPi5e -
Here is a screen shot of the MT5 chart over the MT4 chart. The MT5 chart has an indicator that draws white arrows at the MA crosses So my ea should enter a trade & draw a line & an arrow at the same time

-
This should be super simple. Nothing fancy Just a simple MA cross. 95% of all the fxdreema projects that I have done have been for MT4 This is one of my first projects for MT5.
What am I doing wrong? Why does this not work? I would prefer to use MT5 But It almost looks like a fxdreema has some issues with MT5?. Is anyone else having strange issues with fxdreema & MT5 projects -
@dore The logic is correct. Is this the whole project or just a part of it? My only suggestion would be separating those BE and TS blocks. You'd better connect them both separated below a 'Pass' block instead.
-

your block IDs are wrong.
-
@l-andorrà said in Simple MA cross algo on MT5:
@dore The logic is correct. Is this the whole project or just a part of it? My only suggestion would be separating those BE and TS blocks. You'd better connect them both separated below a 'Pass' block instead.
agreed, not together, but not pass block. Id put it under an if position at least, use less computer resources when the time comes.
-
@tipsywisdom Good catch Stupid error on my part I'll correct & see if that changes anything I have been through so many different changes to get this to work. The BE & TS work but I could relocate to a better location
-
@tipsywisdom The 'if position' block is unnecessary because the TS block itself does that by default.
-
@dore said in Simple MA cross algo on MT5:
@tipsywisdom Good catch Stupid error on my part I'll correct & see if that changes anything I have been through so many different changes to get this to work. The BE & TS work but I could relocate to a better location
we all make them!