Page 1 of 1

Import of Directional Ind. PlusDI

Posted: 16 May 2014 20:13
by Brian
If I use the NATIVE "Directional Ind.", how can I import the plusDI value? (For backtest performance, prefer the native indicator at the moment.)

Express TestCode
VARS
series MACD (MACD.Main); // works
series plusDI(DirectionalInd.plusDI); // fails

I assume that the problem is with the name “Directional Ind.”. However, I have guessed all over in the dark and failed. How would it be called?

Thanks, Brian

Re: Import of Directional Ind. PlusDI

Posted: 19 May 2014 08:24
by WHS Support
Hi Brian,

yes, your assumption is correct. When writing the indicatorName please remove all space and non alphabetical characters, i.e. numbers, _, -, +, /, …, etc. but not any alphabetical characters.

In your case you need to add the last"DI" (after +/-):

plusDI(DirectionalIndDI.plusDI);

Kind regards,
Timo
WH SelfInvest