The Aqua-Yellow is the one I'm working on (from the source code posted by @Hercs).
The DodgerBlue-Red one is the .ex4 you posted.
The other two are from forex-station:
The bigger arrows is the MTF nrp which I posted with the EA.
The diamond arrow is another one, from a historgram Half-Trend.
As you see, yours failed to produce an arrow.
Mine produced an arrow later.
The two from forex-station are working in-line with each other, but they are plotting differently than mine and yours.
NOTE: The one I call "mine" has not been posted, yet!
It is my most recent modification from today, and the EA is trading it.
However, which version will perform better overall, I don't know.
About 2 and a half hours later this is the picture:
.ex4/.ex5 files can't be fixed or modified / I'm not a coder!