This indicator uses the calculating method described in details here : Linear Regression Value . Please check that post for more details
The same function from the above link is used to calculate this slope of the linear regression

Linear Regression Value
Linear Regression Value indicator
Tick RSI Adaptive
RSI adaptive indicator based on tick calculations
Linear Regression Line
Linear Regression Line
Linear Regression Line (apply to)
Linear regression line with an option to be applied to another indicators