Dukascopy
 
 
Wiki JStore Search Login

Support / Resistance indicator returns NaN
 Post subject: Support / Resistance indicator returns NaN Post rating: 0   New post Posted: Tue 20 Nov, 2012, 21:26 

User rating: 0
Joined: Sun 11 Nov, 2012, 17:50
Posts: 2
Hi support,

Not sure what happened but the supportResistance indicator now returns "NaN". There was no problem before and I didn't change my code. Here is the code I use

public void onTick(Instrument instrument, ITick tick) throws JFException {
double[] SR = indicators.supportResistance(instrument.EURUSD, Period.ONE_MIN, OfferSide.BID, 0);
double currentRes = SR[0];
double currentSup = SR[1];
console.getOut().println(currentSup);
}

Thanks


 
 Post subject: Re: Support / Resistance indicator returns NaN Post rating: 0   New post Posted: Tue 04 Dec, 2012, 12:40 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
This question should be asked in the Automated trading section of the forum.


 

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