Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Slope of Regression Line & Standard Error Exploration for Amibroker (AFL)

4 / 5 (Votes 2)
amibroker, exploration

This formula displays the slope (in degrees) of a linear regression line and the standard error of the linear regression line in two columns. This is an exploration only. It is useful for finding trending stocks. The steeper the slope the faster the trend. The lower the error the more clear and stable the trend is.

Indicator / Formula

Copy & Paste Friendly
//*************************************************Slope of Regression Line(in degrees) & Standard Err of of RS Line(%)*********************************
Daysback = Param( "Days Back", 126, 30, 252, 1 );
bb = LastValue( LinRegSlope(C, Daysback ));
pi = 4 * atan(1);
slopeangle = atan( bb ) * ( 180 / pi );

Filter = 1;

AddColumn(slopeangle,"In degrees", colorDefault, colorBlue);
AddColumn(StdErr( 100 * Close, Daysback ),"Std.Err RS Line(%)", colorDefault, colorBlue);


1. nissankarakeethi

what time frame we should use ?

2. administrator

You can use any time frame.

Leave Comment

Please login here to leave a comment.