Lnear Regression ++

Here is another amazing script for you guys

Target Audience
++ Programmers
++ Linear Regression Enthusiasts

Please Use this Indicator If you understand the risk posed by linear regression ; ill explain some below

++ Raw Formulae for the linear regression
--I understand that tradingview explanation on how the linreg function works is not clear to many of you and therefore i included this for developers
--Yes its much simpler than you thought, Do Enjoy
++ Alerts
--You can get alerts when the lower band is crossed/touched based on your settings
--These alerts are not repainting at all.

Linear Regression Limits
As you traders know, the market changes from time and new levels will get drawn
The alerts are based on these new levels and once we have new ones, we keep updating

This script is similar to Bollinger Bands style of alerts, If the market moves continuously to one direction after the break of a band, The levels change and you may receive a new signal confirmation

Cheers!! Enjoy!! Feel free to ask me for any improvements
Release Notes: Cleaned Up the code for easier binding

You can customise the ma type but please note; it will change the results of calculation

For user customisations and MTF feature, please use :
Remove from Favorite Scripts Add to favorite indicators
Ample Forex


You can add a display of the trend slope to determine the strength or weakness of a trend. Also, if possible, add MTFs for larger frames and blur them out, which is very beneficial when trading smaller time frames.
+1 Reply
LucemAnb solobem
@solobem, pleaes checkout Linear Regression ++ it has that
+3 Reply
its not work in 15 mint candle ??
Can anyone please give an idea on how to convert this script into Python/Pandas code....Just high level logic will be enough...
Hi lucemanb what was the logic or formula of linear Regression channel i want code into amibroker plz help me sir plz mail me if you are ok with my request
First of all thanks for this amazing script. How can I set tradingview alerts on buy/sell signals?
LucemAnb DenoTrade
@DenoTrade, please use this one for the alerts with awesome settings
LucemAnb LucemAnb
simply go to the alerts and select the indicator, you will have buy and sell alerts
DenoTrade LucemAnb
@LucemAnb, I cannot click on it. Could you please post the name of this script? Thank you.

Found it, thank you !
+2 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out