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.
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!