Import of Directional Ind. PlusDI

Post Reply
Brian
Posts: 3
Joined: 27 Apr 2014 21:54

Import of Directional Ind. PlusDI

Post 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
User avatar
WHS Support
Posts: 2443
Joined: 14 Feb 2013 10:27

Re: Import of Directional Ind. PlusDI

Post 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
Post Reply

Return to “WHS NANOTRADER - EXPRESS PROGRAMMING”