Topic: about the cumulative sum
I don't know this is a bug or just a different Cumulative sum?
when i tried to convert the Cumulative Sum (CuSum for short) from FSB To mt4
I found that there quite a lot different your version to what i found on the net http://forum.mql4.com/22956
the formula which is :
IndicatorBuffer1[i]= IndicatorBuffer1[i+1]+Close[i]-average(i);
but your is:
adCumulSum[iBar] =
adCumulSum[iBar - 1] - adBasePrice[iBar - iPeriod] + adBasePrice[iBar];
confused...