Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Differences platform and java indicator
 Post subject: Differences platform and java indicator Post rating: 0   New post Posted: Mon 23 Jul, 2012, 07:45 

User rating: 0
Joined: Mon 23 Jul, 2012, 07:25
Posts: 2
Hi everyone,
I have a problem, in the platform I have this indicator:

Indicator: MA
instrument: Instrument.EURUSD
fixedPeriod: Period.FIVE_MINS
IIndicators.AppliedPrice: IIndicators.AppliedPrice.CLOSE
MA_Period: 95
MaType: IIndicators.MaType.SMMA
shift: I see the last price

and in the alarm code:

d_Smma_alarm = indicators.ma(Instrument.EURUSD, Period.FIVE_MINS, OfferSide.ASK, IIndicators.AppliedPrice.CLOSE, 95, IIndicators.MaType.SMMA, 0);
print("Smma: " + d_Smma_alarm);

Example of differences:
-the platform : 1.21383
-the code : 1,21273 (11 pips diff) :o

Any bad param in the java method?

Thank you so match ;)


 
 Post subject: Re: Differences platform and java indicator Post rating: 0   New post Posted: Mon 23 Jul, 2012, 08:18 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/#Indicator_usage_checklist
See the paragraph about the filters in the following section:
https://www.dukascopy.com/wiki/#Indicator_Calculation/Candlestick_price_feed


 
 Post subject: Re: Differences platform and java indicator Post rating: 0   New post Posted: Mon 23 Jul, 2012, 10:27 

User rating: 0
Joined: Mon 23 Jul, 2012, 07:25
Posts: 2
Thank you API Support


 

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