TradingView
UDAY_C_Santhakumar
2 paź 2014 17:44

Linear Regression Slope - Version 2 

3D Systems CorporationNYSE

Opis

Version 2 - Linear Regression Slope. This version will have more freedom on picking your own length for all the Inputs.

One of the main reason I changed it is because, Slope calculation on transition period was not being computed properly. Because the Version 1, looks back the length assigned, and compute the slope based on two candle readings, could be 10 days apart or 50. That was misleading.

Therefore, I changed it to plot daily slope and Smooth it with an EMA.

Linear Regression Curve - tradingview.com/v/JojPxTRD/

List of All my Indicators - tradingview.com/p/stocks/?sort=recent&time=day&by=ucsgears
Komentarze
gmax
how i can add it to my strategy to trade when histogram turns green? Does the color in the histogram represents some value of the regression slope?
UDAY_C_Santhakumar
In a nutshell, its the slope of the slope. Take the condition for the color and work with it to add the strategy. If you need help, I can do it over the weekend.
vivek.savaliya
@ucsgears,
Thank you very much for code

Please help me out of code for slope value is above zero and green colour(Buy conditon) or slope value is below zero and red colour (Sell condition)
JGrams1
Awesome indicator! In your opinion, which lenght and signal is the best for 1M timeframe? Tks!
ratgangofficial3
Is there repaint?
UDAY_C_Santhakumar
@ratgangofficial3, Not on this version
ratgangofficial3
@ucsgears, Awesome. This helps a lot more than you think aha.
gatorNic
Thanks for the update. Hope to look more into this, this weekend
Kellyan965
this is amazing thank you! Bar coloring would be a great ad :-)
Więcej