Dukascopy
 
 
Wiki JStore Search Login

JFOREX-2543 Moving Average
 Post subject: JFOREX-2543 Moving Average Post rating: 0   New post Posted: Fri 10 Dec, 2010, 15:37 

User rating: 0
Joined: Mon 06 Dec, 2010, 09:40
Posts: 1
Hi guys,
I ve got a problem..
double Ma_Slow = this.indicators.ema(instrument, Period.ONE_MIN, OfferSide.BID, IIndicators.AppliedPrice.CLOSE, 20, 0);
double Ma_Fast = this.indicators.sma(instrument, Period.ONE_MIN, OfferSide.BID, IIndicators.AppliedPrice.MEDIAN_PRICE, 1, 0);

I test my strategy and I read:
"Error in indicator: java.lang.InternalError: Unknown parameter type @com.dukascopy.api.impl.ah.setOptInputParameter(Unknown Source)"

What can it be?

Thx


 
 Post subject: Re: JFOREX-2543 Moving Average Post rating: 0   New post Posted: Sat 01 Jan, 2011, 23:35 

User rating: 0
Joined: Mon 27 Dec, 2010, 12:54
Posts: 1
For some reason SMA doesn't work with timePeriod = 1.


 
 Post subject: Re: JFOREX-2543 Moving Average Post rating: 0   New post Posted: Mon 03 Jan, 2011, 14:18 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
he minimum value of time period in sma indicator is 2:
double Ma_Fast = this.indicators.sma(instrument, Period.ONE_MIN, OfferSide.BID, IIndicators.AppliedPrice.MEDIAN_PRICE, 2, 0);


 

Jump to:  

cron
  © 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