I want to get the stochastic, So I find the indicators.stoch method,
the method : double[] stoch_1hour = indicators.stoch(instrumentXAUUSD, Period.ONE_HOUR, OfferSide.ASK, 25, 6, MaType.SMA, 6, MaType.SMA, 0);
but the result of the method is wrong when the period=Period.ONE_HOUR,
and the result of the method is right when the period=Period.FIFTEEN_MINS
I don't know what's happen!!!!
Need help!!!!!
|