TradingView
UDAY_C_Santhakumar
21 wrz 2014 19:23

UCSgears_Linear Regression Slope 

Apple Inc.NASDAQ

Opis

This is version 1 of the Linear Regression Slope. In ideal world the Linear regression slope values will remain same for any time period length. because the equation is y = mx+b, where m is the slope. All I did here is m = y/x

The Main Purpose of this indicator is to see, if the Trend is accelerating or decelerating.

The first Blue bar will caution when a strong trend is losing strength. I will leave the rest for you to explore.

I picked AAPL again, because it does have both up and down trend, in the recent time.

Mistake in the code

Corrected Version - tradingview.com/v/ec2jvh2Z/
Komentarze
UDAY_C_Santhakumar
Did a mistake on the CODE.

line 8 ===== > replace it with

lrs = (lrc-lrc[len])/len

Corrected Version - tradingview.com/v/ec2jvh2Z/
UDAY_C_Santhakumar
For those who agree this, Please use the Version - 2 Link is below the Script
mantracommodity
how to add this indicator on my mt4 charts ?
UDAY_C_Santhakumar
I don't use MT4, sorry.
DJ_Ania
Great job! I'm interested in developing regression modes myself.
Więcej