MT4 Parabolic SAR Error?

Hello fellow traders:

I someone out there can help me out please. I made a few changes on the default parabolic SAR that comes with MT4. Nothing big just sets up a global variable according to SAR trend. The thing is that I noted some weird behavior on SAR once the MT4 platform is opened for a few hours. An example of what I am saying is being attached to this post.

What happens is that apparently the standard custom SAR and therefore the SAR I added a couple sentences does not places the dots where there should be, it tends to place the dot either horizontally or not as far down (or up) as it should be. To verify this I placed the parabolic SAR indicator that comes with MT4 (black dot), the one that comes compiled and you can’t change it along with the others (yellow and green dots). And you can see very clear that something is wrong with the custom SAR. :eek:

Oh, one more thing if I close the program and start it again, SAR draws the dots right, same thing if I recompile the custom SAR, but after a few hours the error starts again

Is this a common error ?, has it happened to any of you ?, and more importantly WHAT CAN I DO ABOUT IT???.

Thank you very much in advance for all the help


To all:
I just saw the error. It happens when the chart shifts to right because a new candle forms up. Since I got SAR on 30 minute chart, and a new candle opens every 30 minutes (dooooh!) that’s why I saw that the error occurred after a couple of hours.

Anyway I just activated the “Chart Shift” thingy on the chart to see if this corrects the error. Hopefully

Bye

That did not fix it. But still happens every time the chart shifts. I been testing on other currencies and times frames. It happens every time.

Is anybody out there with a similar problem???. If not does anybody has a parabolic Sar code, different from the custom one that comes with MT4. Or does anybody has the source code of the parabolic sar that comes compiled, that one seems to work fine.

Thanks in advance

I see the same error but unfortunately have no idea how to fix it. Please let us know if you manage to resolve it.

Thanks

maybe some of these link could help?

MQL4 Code Base: custom indicators for MT4
mt4 parabolic indicator with alerts - Mataf.net
Parabolic SAR, Parabolic - MQL4 Code Base
Free FXCM Expert Advisors - DailyFX Forum

Perhaps you can let the people at Metatrader see this… I am sure they would be glad to correct it…

Hey that’s a good idea

And bali, 3 of the scripts on your links are compiled scripts, which I do not need since I want to place some alerts and set some global vars, the script from MQL4 Code Base i already have, and the error happens too.

I will try MT4 people
Thanks