Formulae for Trend Slope and Regression Analysis

 

Looking for the formulae for these 2

 

https://ta.mql4.com/indicators/trends/moving_average

https://ta.mql4.com/linestudies/linear_regression_channel

for more search Google.