Dukascopy
 
 
Wiki JStore Search Login

JFOREX-2514 OsMA indicator returning incorrect values
 Post subject: JFOREX-2514 OsMA indicator returning incorrect values Post rating: 0   New post Posted: Thu 02 Dec, 2010, 15:06 

User rating: 0
Joined: Thu 27 Aug, 2009, 12:09
Posts: 23
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


 
 Post subject: Re: JFOREX-2514 OsMA indicator returning incorrect values Post rating: 0   New post Posted: Tue 07 Dec, 2010, 10:35 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Thank you for the information, this will be investigated.


 

Jump to:  

  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com