|
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.
Need help with the parameters of indicator |
[bootor]
|
Post subject: Need help with the parameters of indicator |
Post rating: 0
|
Posted: Tue 11 May, 2010, 17:55
|
|
User rating: 0
Joined: Tue 11 May, 2010, 17:49 Posts: 2
|
Hello everybody! I can't understand which parameters need to use vith the folowing type of EMA:
double[] ema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter) throws JFException
I need to get EMA value at the last candle but one with the period 250 and WEEKENDS flat on.
Help me, please...
|
|
|
|
 |
[quantisan]
|
Post subject: Re: Need help with the parameters of indicator |
Post rating: 0
|
Posted: Wed 12 May, 2010, 19:24
|
|
User rating: 1
Joined: Fri 26 Mar, 2010, 19:19 Posts: 116 Location: Canada
|
first 4 params I assume you know
myEma = ema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice,
250, Filter.WEEKENDS, 1, bidBar.getTime(), 0);
then myEma[0] would have your result
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|