funwiththinkscript – Polynomial Regression Channel
This indicator will automatically curve-fit a polynomial regression channel. The user may select any polynomial factor between 1 (a straight line) and 6 (a complex curve).
Your indicators are no less than excellent. I have bought the wolf wave and regression channel indicators and both are very impressive.
I have made a few thousand dollars in a couple of days.
This was a fun, although very challenging, project. I needed to study up on linear algebra so that I could understand the math involved. Then, because ThinkScript does not support arrays, matrices, or easily storing data for future reference, I had to devise creative work-arounds to handle the advanced algorithms required by this indicator.
This indicator will automatically curve-fit a polynomial regression channel. The user may select any polynomial factor between 1 (a straight line) and 6.
The user may adjust the length of the channel as desired from within the settings panel.
This indicator will work on any instrument and on any time frame. Some examples are below.
Was this made with a T3 Moving Average or a Centered TMA with an extrapolation to the right?
No. No moving averages are involved. This is a true polynomial regression. The curve is fit based on the closing prices of each candle.
Will this work with Heiken-Ashi candles?
Yes. It will work with any chart type (tick, candle, Heiken-Ashi, etc.) and on any time frame.
Below is a screenshot of a Heiken-Ashi chart.