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.

WillR indicator does not match screen indicator
 Post subject: WillR indicator does not match screen indicator Post rating: 0   New post Posted: Thu 02 Dec, 2010, 11:49 

User rating: -
Hello,

I have trouble to get the same william R indicator as the one I can see using the chart indicator . Here is the code I use. With this code I get values really far from the the william R indicator i get on the chart.

public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {

if(period == Period.ONE_MIN) {


double willr0 = this.indicators.willr(instrument,period,OfferSide.BID,14,0);
double willro = willr0;
this.console.getOut().println("willr=" +willro);
}

Could you give me a hint?

thank you


 
 Post subject: Re: WillR indicator does not match screen indicator Post rating: 0   New post Posted: Thu 02 Dec, 2010, 13:35 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Please make sure flats filter is disabled (Tools/Preferences/Chart/Flats filtartion). Also, try filtering bars by instrument, not just by period.


 

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