[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] How to access AFL functions without array filling



PureBytes Links

Trading Reference Links

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)




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/