Hey everyone,
I'm struggling with filling an array with UltOsc indicator values. Here is my code:
int OscPeriod = 14;
double[] OscVal = new double[OscPeriod];
IBar bidBar = this.history.getBar(instrument, period, OfferSide.BID, 1);
OscVal = this.indicators.ultOsc(instrument, period, OfferSide.BID, UltOsc1, UltOsc2, UltOsc3, Filter.NO_FILTER, OscPeriod, bidBar.getTime(), 0);
Eclipse does not show any problem, but the code does not work and if I cancel a back test the program totally freezes and I have to do a force close and restart the apllication.
Any help will be appreciated!