|
Dear support, I got discrepancy in output of indicator when using RSI on onBar method as
double[] rsiFA=indicators.rsi(Instrument.EURUSD, periodbar, OfferSide.BID, IIndicators.AppliedPrice.CLOSE, period_RSI , Filter.ALL_FLATS, 2,bidBar.getTime() ,0); //here rsiFA is a vector with 2 elements, for last completed bar and previous to it
and double[] rsiFA_OneBarOnly=indicators.rsi(Instrument.EURUSD, periodbar, OfferSide.BID, IIndicators.AppliedPrice.CLOSE, period_RSI, Filter.ALL_FLATS, 1,bidBar.getTime() ,0); //here riFA_OneBarOnly is a vector wit 1 element for last completed bar So rsiFA[1] must be equal to rsiFA_OneBarOnly[0] since these both are RSI indicator with the same parameters for the CLOSE price of last completed bar. But numbers are slightly different. What is my mistake?
Thank you in advance, your client
|