Hi support,
Please can you outline where I am supposed to store a custom made indicator so that I can refer to it in JForex code?
Also 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?
Also please can you provide more clarity in the wiki about the following:
--"firstValueIndex'' and ''lastValueIndex" it really isn't clear (to me at least) which one is the latest value (i.e. the current candle/bar) or the earliest (i.e. the candle/bar furthest back in time)
--input array. It is incredibly unclear as to whether input[0] or input[length-1] is the most recent price.
Thanks