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.

perbsbands indicator parameter
 Post subject: perbsbands indicator parameter Post rating: 0   New post Posted: Fri 20 Apr, 2012, 12:10 

User rating: 1
Joined: Wed 07 Mar, 2012, 05:56
Posts: 101
Location: New CaledoniaNew Caledonia
hello support,

i'm looking after the parameter that i need to define for the persbands indicator. i don't see that in this page: https://www.dukascopy.com/client/javadoc ... ators.html.

where i can find it please?

thanks you


 
 Post subject: Re: perbsbands indicator parameter Post rating: 0   New post Posted: Fri 20 Apr, 2012, 15:10 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
There are no such indicator "persbands" in JForex


 
 Post subject: Re: perbsbands indicator parameter Post rating: 0   New post Posted: Fri 20 Apr, 2012, 15:37 

User rating: 1
Joined: Wed 07 Mar, 2012, 05:56
Posts: 101
Location: New CaledoniaNew Caledonia
sorry my fault

the real name is PERSBBANDS.

so what are the parameters that must be applied?


 
 Post subject: Re: perbsbands indicator parameter Post rating: 1   New post Posted: Tue 24 Apr, 2012, 09:39 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Here is an example of calling persbbands
        double[] persbbands = (double[]) indicators.calculateIndicator(
                Instrument.EURUSD,
                Period.TEN_MINS,
                new OfferSide[] { OfferSide.ASK },
                "PERSBBANDS",
                new AppliedPrice[] { IIndicators.AppliedPrice.CLOSE },
                new Object[] { 20, 2.0 },
                Filter.ALL_FLATS,
                10,
                bar.getTime(),
                0)[0];


 
 Post subject: Re: perbsbands indicator parameter Post rating: 0   New post Posted: Tue 24 Apr, 2012, 13:08 

User rating: 1
Joined: Wed 07 Mar, 2012, 05:56
Posts: 101
Location: New CaledoniaNew Caledonia
thanks


 
 Post subject: Re: perbsbands indicator parameter Post rating: 0   New post Posted: Tue 24 Apr, 2012, 14:02 

User rating: 1
Joined: Wed 07 Mar, 2012, 05:56
Posts: 101
Location: New CaledoniaNew Caledonia
can you explain these parameters please :

10, bar.getTime(), 0)[0];

i mean, the number 10 and 0 and [0]

thanks


 
 Post subject: Re: perbsbands indicator parameter Post rating: 0   New post Posted: Wed 25 Apr, 2012, 08:48 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
10 - The method gets 10 indicator values. The last value corresponds to bar.getTime()
0 - No values after bar.getTime() are considered
[0] - takes first output parameter of PERSBBANDS (even though in this case PERSBBANDS has only one output parameter)
please also see https://www.dukascopy.com/wiki/#Indicator_Calculation


 
 Post subject: Re: perbsbands indicator parameter Post rating: 0   New post Posted: Wed 25 Apr, 2012, 09:29 

User rating: 1
Joined: Wed 07 Mar, 2012, 05:56
Posts: 101
Location: New CaledoniaNew Caledonia
thanks you


 

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