Hello Support,
I want to put Bars(from bars 0 to bars 24) into List<IBar>sumBars, but it shows error. Could you please tell me how to correct the mistakes?
Thank you.
public List<IBar> sumBars;
...
private double funHighest() throws JFException
{
double highrange = 0;
sumBars = history.getBars(this.instrument, this.timeFrame, this.offerSide, 0, 24); //This sentence shows error.
for(IBar curbar : sumBars)
{
if(highrange < curbar.getHigh())
highrange = curbar.getHigh();
}
return highrange;
}