Hi support,
I was reading back through the Wiki and I think I have found a mistake:
Under "Method Calculate" in the "IIndicator Interface" page of the wiki
https://www.dukascopy.com/wiki/#IIndicator_interface it says:
"If there is input array with 30 elements and calculate method is called for SMA indicator with ''startIndex'' 0 and ''endIndex'' 29, then if there is time period of 20, indicator will have ''firstValueIndex'' 20 and ''lastValueIndex 29."
Given that arrays start at 0 and not at 1, surely a 20 period SMA indicator would have a "firstValueIndex" of 19, rather than 20? (since 0,1,2,.....18,19 is 20 data points)
Please can you clarify?