LRS Lineal Regresion Slope MT4
If instead of calculating the value of the linear regression line (LRMA indicator), we calculate the value of its slope, we get LRS or linear regression slope indicator.
Since the slope is positive when prices rise, zero when they are in range and negative when they are lowered, LRS provides us the data on the price trend.
Parameters
- Symbol (empty = current symbol): working pair, for example, EURUSD.
- Period calculation: number of previous bars, to which the calculation is applied.
- Signal period: smooth signal period (EMA).
- Price applied: open, close...
- Timeframe: H1, H2, D1...
- Visual corrector: set the image to the reported slope.
Calculations
sum(XY, n) - avg(Y, n)*sum(X, n) Y= a + mX; m= -------------------------------- a= avg(Y, n) - m*avg(X, n) sum(X2, n) - avg(X, n)*sum(X, n)
According to the above formulas, the moving average of "Y" values builds the LRMA indicator; the moving average of "m" values builds the LRS indicator.
The usefulness of this indicator increases when it is used with the R-squared indicator that reports the strength of the trend, while LRS informs us of the positive or negative strength.
联系方式
公司:顺水的鱼外汇EA
状态:离线 发送信件 在线交谈
姓名:顺水的鱼(先生)
职位:投机客
电话:18391752892
手机:18391752892
地区:默认地区
地址:西安市高新区软件园
邮件:3313198376@qq.com
QQ:3313198376
微信:18391752892
阿里旺旺:顺水的鱼waterfish
Skype:3313198376@qq.com
状态:离线 发送信件 在线交谈
姓名:顺水的鱼(先生)
职位:投机客
电话:18391752892
手机:18391752892
地区:默认地区
地址:西安市高新区软件园
邮件:3313198376@qq.com
QQ:3313198376
微信:18391752892
阿里旺旺:顺水的鱼waterfish
Skype:3313198376@qq.com
