Dukascopy
 
 
Wiki JStore Search Login

getIndicator returns null for some indicators
 Post subject: getIndicator returns null for some indicators Post rating: 0   Post Posted: Tue 09 Apr, 2013, 14:19 

User rating: 0
Joined: Tue 09 Apr, 2013, 14:14
Posts: 8
Location: SloveniaSlovenia
Hi.

I'm having problems calling indicators by String name. E.g. the first example returns a non null object, the second returns null. Also for "linearRegAngle" null is returned. Why can't all indicators be called by name and which one can and cannot be retrieved with this method?
indicators.getIndicator("linearReg");
indicators.getIndicator("linearRegSlope");

Sincerely,
Terry


 
 Post subject: Re: getIndicator returns null for some indicators Post rating: 0   Post Posted: Wed 10 Apr, 2013, 09:48 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
Change indicator names to "LINEARREG_ANGLE" and "LINEARREG_SLOPE". You can use the "Add indicator" dialog to check the correct names of indicators used in the getIndicator() method.


 

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