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
Import of Directional Ind. PlusDI
- WHS Support
- Posts: 2443
- Joined: 14 Feb 2013 10:27
Re: Import of Directional Ind. PlusDI
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
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