Hi folks!
I encountered the following strange behaviour:
I'd like to get daily bars to do some further calculation, independent from the actual time period shown in the chart. Therefore:
new InputParameterInfo("Bars", InputParameterInfo.Type.BAR){{
setPeriod(Period.Daily);}}
Doing some calculations:
for (int i = startIndex, j = 0; i <= endIndex; i++, j++) {
outputs[0][j] = inputs[0][i].getHigh() - inputs[0][i].getLow();
}
If the chart time period is set to "daily", it works like a charm. But as soon as I chose a different period, let's say "1h", a out of bounds exceptions for this particular code line is thrown:
outputs[0][j] = inputs[0][i].getHigh() - inputs[0][i].getLow();
I couldn't find a solution so far and there is no information about how "inputs" and "outputs" arrays are processed in JForex.
Any ideas?
Cheers, Luke