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.

Donchian Indicator
 Post subject: Donchian Indicator Post rating: 0   Post Posted: Thu 07 Jul, 2011, 15:34 

User rating: -
Hello,

I am new on this community. I am currently testing the API.
I have some litte problems regarding the indicator calls.

Example from javadoc:

donchian

double[][] donchian(Instrument instrument,
Period period,
OfferSide side,
int timePeriod,
Filter filter,
int numberOfCandlesBefore,
long time,
int numberOfCandlesAfter)
throws JFException

Throws:
JFException



The firs parameters like period, side are ok and understandable. The same for numberOfCandlesBefore and numberOfCandlesAfter.
What i don't exactly understand are the parameters like time, timePeriod . What are this parameters exactly doing. I understand it is something about time. I can also make some suppositions about the meaning of this parameters but an exact meaning am i unable to find.

The same with

bbands

double[][] bbands(Instrument instrument,
Period period,
OfferSide side,
IIndicators.AppliedPrice appliedPrice,
int timePeriod,
double nbDevUp,
double nbDevDn,
IIndicators.MaType maType,
long from,
long to)
throws JFException

Throws:
JFException


Are some more resoursces about the meaning of the indicator parameters? Maybe external links ?


Thank you in advance!


 
 Post subject: Re: Donchian Indicator Post rating: 0   Post Posted: Mon 11 Jul, 2011, 08:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Guest wrote:
What i don't exactly understand are the parameters like time, timePeriod
  • time is the open time of the last candle in the calculated period, meaning that you can arbitrary choose a period in the past to calculate your indicator's value (this effectively is equivalent for shift parameter where data over just one candle is returned).
  • timePeriod is sort of a look back value, for example, for MAX indicator, timePeriod=5 will return the max price over last 5 candles, but timePeriod=20 - the max price over the last 20 candles.
Guest wrote:
Are some more resoursces about the meaning of the indicator parameters? Maybe external links ?
See:
https://www.dukascopy.com/wiki/index.php ... Indicators


 

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