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 :
but your is:
adCumulSum[iBar] = adCumulSum[iBar - 1] - adBasePrice[iBar - iPeriod] + adBasePrice[iBar];