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.

Issue trying to use Fibpivot
 Post subject: Issue trying to use Fibpivot Post rating: 0   New post Posted: Sat 10 Aug, 2013, 23:44 

User rating: 0
Joined: Sun 16 Dec, 2012, 19:40
Posts: 2
Location: United States, Aurora
trying to use from code

fibPivot = indicators.fibPivot(instrument, Period.DAILY, offerSide, 2, filter, 5, previousBar.getTime(), 1);

I get an exception that it cannot be run for periods longer than 5 minutes.

If anyone has a working sample, or if this is a bug thanks in advance.


 
 Post subject: Re: Issue trying to use Fibpivot Post rating: 0   New post Posted: Tue 13 Aug, 2013, 07:57 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please take a look at the documentation for Fibpivot. You have specified 10 minutes period for the timePeriod parameter (2), try specifying a Daily period (7) or a period greater than the Daily period, e.g. fibPivot = indicators.fibPivot(instrument, Period.DAILY, offerSide, 7, filter, 5, previousBar.getTime(), 1);


 

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