TradingView
DevLucem
17 Apr 2020 pukul 08.53

Lnear Regression ++ 

NZD/USDOANDA

Deskripsi

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



Features
++ 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


Risk
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

Catatan Rilis

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 : tradingview.com/script/HaVyhZnP-Linear-Regression/
Komentar
sentinuslucky
After a few seconds the indicator gives this error and does not work.

'Pine cannot determine the referencing length of a series. Try using max_bars_back' error
ashishyadav003
sometimes it repaints...
YMeao
lin_reg(src, len, off) =>
ma1 =sma(src, len)
ma2 =wma(src, len)
3.0*ma2-2.0*ma1

hi,man,where is The third parameter,off
solobem
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.
DevLucem
@solobem, pleaes checkout Linear Regression ++ it has that
ITtraders
Hello, I have a very important question, can the code be used on other platforms? ex: strategy and buildder from ninjatrader8. Thank you, I await your response.
manolo_alm
Thanks for the fabulous script!
one question, there is the posibility of knowing the correlation factor r2? it would be very usefull!
Thanks again!
icelatte
@DevLucem Thank for this great script and i find this very useful. I have one question for you, how can we add buy and sell alert in the script? (just like your other Linear Regression? I find this one more simple to use). Thank you
oyeanish
its not work in 15 mint candle ??
karthikr44
Can anyone please give an idea on how to convert this script into Python/Pandas code....Just high level logic will be enough...
Lebih lanjut