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