TradingView
iravan
١٩ كانون الأول ديسمبر ٢٠٢٢ ١٤:٢٣

Dynamic Linear Regression Channels 

Dow Jones Industrial Average IndexTVC

الوصف

Plots new linear regression channels from points where a previous channel is broken thus keeping the length of bars in the trend dynamic. Regression channels are useful in detecting trend changes, support and resistance levels and to trade mean reversions.

Note: Setting higher values of upper and lower deviation may result in error if the price never breaks the channel and the script references too many bars than supported.
التعليقات
alexgrover
Really useful and cool! :D It can be nice to know that dynamic length's linregs can be computed serially trough the WMA and the SMA.
iravan
@alexgrover, Thank you! I checked your script to understand what you meant - "Computing The Linear Regression Using The WMA And SMA", wow!!

Substituting here with, WMA=SumXY/SumX, SMA=SumY/n, SumXSqr=n(n+1)(2n+1)/6, we get your formula! Learnt a lot, thank you so much :-)
Trendoscope
Well done.
Vibranium_Capital
@HeWhoMustNotBeNamed, he killed it here. I need to try it out
PineCoders
cpartipi
Thank you!
justnifty
I am sorry, but how to trade with this? Any experts, please guide me.
HisNomad
@justnifty, you may start learning trendlines and you will get this one
AbhinavAsthana
Hi @iravan
Does this indicator repaints?
Beast_09
@AbhinavAsthana, yes but only after a break out
المزيد