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.

Indicator documentation? EMA specifically
 Post subject: Indicator documentation? EMA specifically Post rating: 0   New post Posted: Mon 26 Sep, 2011, 18:39 

User rating: 0
Joined: Mon 26 Sep, 2011, 15:59
Posts: 1
Location: United States,
Hey, I'm brand new here, so my sincere apologizes if I am posting the wrong place or if this topic has already been answered (I searched, I promised).


So I'm trying to get started coding some custom strategies and I am looking for documentation on how to call the different indicators.

The first one I tried was the stochastic, which went well, there is a very nice wiki page explaining the call and the return types. See, https://www.dukascopy.com/wiki/index.php ... tochastics.

However, I next wanted to try a simple EMA, but I do not see any explanations of the return types for this indicator. The javadoc seems to have been on autogenerated without any real comments, java doc isn't very useful if it only documents the method signatures.

I'll go back to stochastic for a second, for example this method,

double[][] stoch(Instrument instrument,
Period period,
OfferSide side,
int fastKPeriod,
int slowKPeriod,
IIndicators.MaType slowKMaType,
int slowDPeriod,
IIndicators.MaType slowDMaType,
Filter filter,
int numberOfCandlesBefore,
long time,
int numberOfCandlesAfter)

Without the wiki page (linked earlier) I would have no idea which value was in which array. Also, I'm trusting that the wiki was correct in saying that the return type was as such:

Quote:
This example returns array of double arrays containing 4 values:

stoch[0][1] – last candle slow % K value.
stoch[1][1] – last candle slow %D value.
stoch[0][0] – next-to-last candle slow % K value.
stoch[1][0] – next-to-last candle slow %D value.



If you could please point me to some more detailed documentation, or show me how the person who wrote the wiki article on stochastic knew the return type was laid out in the manner documented.

Thanks, again sorry if this is the wrong board, or a duplicated. Very new to this.
~Sublimemm


 
 Post subject: Re: Indicator documentation? EMA specifically Post rating: 0   New post Posted: Tue 27 Sep, 2011, 12:12 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The documentation for ema is pending, at this point please see calculation for Butterworth indicator, which from function call and result perspective is almost identical to ema:
https://jforex-wiki.site.dukascopy.com/w ... utterworth


 

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