Hi,
I'm trying to calculate:
timeFrame = Period.createCustomPeriod(Unit.Minute, 180); // 3 hours
indicators.sma(instrument, timeFrame, OfferSide.BID, IIndicators.AppliedPrice.CLOSE, period, filter,
numberOfCandlesBefore, time, numberOfCandlesAfter);
The period is 3 hours. However I get:
com.dukascopy.api.JFException: Number of bars to load = 0 or time is not correct time for the period specified
Is it possible to get sma for any period other than predefined one in Period class? I bet I have other settings correct (when I change 3 hour to 1 hour everything works).
Thanks