Indicator almost ready to go to MQL5 Community. Just 1 bug that is driving me nuts!
Minions Labs:
Could someone take a look and tell me what am I missing?
Thanks a lot in advance!
;)
Apparently you try division by zero.
bufferDiff[i] = MathAbs( (bufferFast[i]/bufferSlow[i]-1)*100 );
Just finishing another indicator to share with you on Codebase, but I lost the whole day experimenting, digging, searching, trying to figure out why this behavior is happening.
The indicator is a simple one, based on the famous Didi Needles, but I added a threshold to look for the correct "padding" between 2 of the MAs, so we can filter out supposedly "bad trades". There a re a couple of user inputs, and one of them is the Smoothing of the MAs.
All is working perfectly with ONE bizarre exception. When I select the smoothing "Exponential" the indicator goes crazy! Mixing all data buffers. I checedk every line of code and cannot say why just on the Exponential mode things goes bonkers...
Video:
Could someone take a look and tell me what am I missing?
Thanks a lot in advance!
;)