OPEN-SOURCE SCRIPT
Custom Linear Regression Candles with Real-Time Price

Hii this is great indicator to build by chatgpt.
How to use------------
1. It is based on the linear regression formula which gives you accurate market conditions.
2. You can do this with a RSI indicator so you can know overbought and oversell label.
3.If you want to get good accuracy then you can use chart type Heikin Ashi.
Input--------------
1. You can take linear regression length on different timeframes, in my backtest it was
5 to 15 min----30 and 1hour to 4hour---20 and Day---10 you can keep it.
2. You can pinpoint the highs and lows of the linear regression line.
--Please use it and give your feedback.
How to use------------
1. It is based on the linear regression formula which gives you accurate market conditions.
2. You can do this with a RSI indicator so you can know overbought and oversell label.
3.If you want to get good accuracy then you can use chart type Heikin Ashi.
Input--------------
1. You can take linear regression length on different timeframes, in my backtest it was
5 to 15 min----30 and 1hour to 4hour---20 and Day---10 you can keep it.
2. You can pinpoint the highs and lows of the linear regression line.
--Please use it and give your feedback.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.