|
JFOREX-2543 Moving Average |
[iosefino]
|
Post subject: JFOREX-2543 Moving Average |
Post rating: 0
|
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
|
|
|
|
|
[jarek]
|
Post subject: Re: JFOREX-2543 Moving Average |
Post rating: 0
|
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.
|
|
|
|
|
API Support
|
Post subject: Re: JFOREX-2543 Moving Average |
Post rating: 0
|
Posted: Mon 03 Jan, 2011, 14:18
|
|
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);
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|