Hi guys,
How can I access the unerlying function(s) that produces
array data?
For example:
X = LinearReg(Close, 30);
X is a
continously calculated array. BUT I want the *straight line*
that
LinearReg produces for each set of 30 data points.
Something like this
(pseudo-code):
// this fetches a straight line from
LinearReg
// using the final 30 Close prices
// nb, the straight line in
Y is only 30 bars long
Y = Segment(LinearReg(Close, 30), 30,
BarCount-1);
Is it possible to access the underlying LinearReg()
function (and
others) from AFL without the continous array filling
stuff?
Purpose - from AFL I want to plot one short, straight line
through a
small set of price points, using linear regression.
How
do I do this?
thanks a lot!
Andy
(fog)