Next time start with the user guide ;) http://www.amibroker.com/guide/afl/afl_view.php?id=82 I believe that the following is how your referenced link would be written in AFL Regression = LinearReg(Close, 9); Buy = Cross(Regression, Close); Sell = Cross(Close, Regression);
Plot(Close, "Price", colorDarkGrey, styleCandle); Plot(Regression, "Regression", colorBlue); PlotShapes(Buy * shapeUpArrow + Sell * shapeDownArrow, IIF(Buy, colorGreen, colorRed)); Mike --- In [email protected], "Alan" <alan4...@...> wrote: > > Hi all, > > Would someone be able to help me with a formula to plot a Linear Regression Curve as shown here: > > http://www.onlinetradingconcepts.com/TechnicalAnalysis/LinRegCurve.html > > I've been experimenting all day and getting nowhere. > > Thanx for any help. > > Alan >
