Quote:
|
Originally Posted by deepdrunk
the indicators making problems are wccisqeezev2 and Fx sniper sidewinder overlay,they worked normal before
|
You´re right Deep
But old versions have the same problem.
I´ve tested with 195 and the same happens
Pls, try this one and compare if all is ok.
According with one explanation in MQL forum the best way to fix this is given a "if" condition to the calculus.
So.
We have:
Code:
diff = iATR(NULL,0,KCPeriod,i)*KCFactor;
std = iStdDev(NULL,0,BBPeriod,MODE_SMA,0,PRICE_CLOSE,i);
bbs = BBDeviation * std / diff;
and change by
Code:
diff = iATR(NULL,0,KCPeriod,i)*KCFactor;
std = iStdDev(NULL,0,BBPeriod,MODE_SMA,0,PRICE_CLOSE,i);
if(diff>0) bbs = BBDeviation * std / diff;
Hope it works.