PureBytes Links
Trading Reference Links
|
From: Jack Sallen <pcc@xxxxxxx>
>>Has anybody tried use a numeric series for the input for ADX. ... Any help
would be great as I am losing my mind.<<
Declaring the length parameter for ADX as a series variable is a clever way
around the (necessary) input limitations of a type-series user function.
However, for it to work, this series input must be the DIRECT output of a
type-series user function. For example, ...
This works....
X = MyADX(close,MySeriesFunction(....));
This will not work ..
value1 = MySeriesFunction(....);
X = MyADX(close,value1);
The latter will fail because MyADX (a type SERIES user function) will get
evaluated BEFORE any other code is evaluated in your indicator that calls
MyADX. Since value1 will not have been evaluated when MyADX is evaluated, the
user function will be fed invalid data.
OTOH, the former method should work because MySeriesFunction is also evaluated
a priori and so its data would be available to MyADX. (Assuming the compiler
knows MySeriesFunction needs to be evaluated before MyADX). It ought to. :)
------------------------------
- Mark Jurik
|