I've discovered that the OsMA indicator when used in exactly the same way as on my charts, as far as I can tell, is returning different values. MACD with the same parameters works fine.
I've tried macdExt to see if it's using different parameters to the normal default but can't find a match.
This is on a demo account with the tester. Using tick data. Flat filter is set for weekends.
Example looking at previous one hour bar:
dOsMA = indicators.osma(currentInstrument, Period.ONE_HOUR, OfferSide.BID, 12, 26, 9, IIndicators.AppliedPrice.CLOSE, Filter.WEEKENDS, 2, bidBar.getTime(), 0)[0];
dMACD = indicators.macd(currentInstrument, Period.ONE_HOUR, OfferSide.BID, IIndicators.AppliedPrice.CLOSE, 12, 26, 9, Filter.WEEKENDS, 2, bidBar.getTime(), 0)[2][0];
Thanks
|