Author: not specified. The mathematical formula expressing the linear regression looks the following way:Ñ = а + bx, where: Ñ - close price; Ñ
- position of the current time period in the database; а - 1/п (Ey - bEÑ
); b - ...
from https://tradingrobots.net/linear-regression-line-indicator-for-metatrader-4-2/