Dukascopy
 
 
Wiki JStore Search Login

JFOREX-2619 Wrong Osma indicator functions in IIndicator
 Post subject: JFOREX-2619 Wrong Osma indicator functions in IIndicator Post rating: 0   New post Posted: Fri 07 Jan, 2011, 21:24 

User rating: 0
Joined: Fri 03 Dec, 2010, 16:11
Posts: 4
Attachment:
File comment: osma indicator screenshot
osma_indicator.png [109.1 KiB]
Downloaded 469 times


public double[] osma(Instrument instrument, Period period, OfferSide side, int fast_ema_period, int slow_ema_period, int signal_period, AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter) throws JFException;

public double[] osma(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift) throws JFException;

public double[][] osma(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to) throws JFException;

public double[][] osma(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter) throws JFException;


The first function is correct, however, the others three are missing the fast_ema_period, slow_ema_period, signal_period and appliedPrice arguments. the returns value should be double, double[] not double[], double[][] as this indicator only has one output. The last one is not necesary. Finally it should look like this:

public double osma(Instrument instrument, Period period, OfferSide side, int fast_ema_period, int slow_ema_period, int signal_period, AppliedPrice appliedPrice, shift) throws JFException;

public double[] osma(Instrument instrument, Period period, OfferSide side, int fast_ema_period, int slow_ema_period, int signal_period, AppliedPrice appliedPrice, long from, long to) throws JFException;

public double[] osma(Instrument instrument, Period period, OfferSide side, int fast_ema_period, int slow_ema_period, int signal_period, AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter) throws JFException;


 
 Post subject: Re: JFOREX-2619 Wrong Osma indicator functions in IIndicator Post rating: 0   New post Posted: Wed 02 Feb, 2011, 15:33 
User avatar

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


 

Jump to:  

  © 1998-2025 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