Linear Regression Curve in Pine Script of www.tradingview.com
Please find below code for 20 Period Linear Regression Curve Fitting. Test it out in the Pine Editor of https://www.tradingview.com. More details follow as time permits!
//@version=3
study(title="LinearRegressionCurve20", shorttitle="LRC20", overlay=true)
src = close
len = input(defval=20, minval=1, title="Length")
offset = 0
out = linreg(src, len, offset)
plot(out, color=purple, linewidth=2)
//END
The Screenshot of 20 Period Linear Regression Curve(Purple line) on 1 day candles of BTSUSD(Poloniex):
Legal Disclaimer: I did not get bribed to write here and I am not seeking to get into insider favors. I wrote here so I get replies from fellow viewers to educate myself and for my daily expenses. Hence, if anyone uses this post for making their decisions, I am not responsible for any failures incurred.
If you found this blog post interesting and edifying please follow, upvote, resteem.
ETH Wallet - 0x0450DCB7d4084c6cc6967584263cF6fBebA761D1
BTS Wallet - chip-maker
NEO Wallet - AUdiNJDW7boeUyYYNhX86p2T8eWwuELSGr
Leave Linear Regression Curve in Pine Script of www.tradingview.com to:
Read more #tradingview posts
Best Posts From Kal Gandikota
We have not curated any of chipmaker's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Kal Gandikota
- Jan 12 2020: Bitcoin’s Daily Support and Resistance Analysis (BTC is NOT a BUY for the month of JAN 2020)
- Kal’s MTF OBV Haar in PineScript
- Apr 28 2019 : Kal’s MTF ADX Rangoli Roller in PineScript
- Pine script for KAL’s ADX Overlap Technical Study with MACD Filter
- How to find Guidance on building Python based Cryptocurrency trading-bots (Part 1)
- Feb 04 2018(Time: 20:00 UTC): ETHUSD is NOT a buy based on Volume Profile Analysis
- Jan31 2018(19:00 UTC): ETHUSD is NOT a buy due to bearish flag/wedge formation(continuation of downtrend)
- Jan30 2018(5:30 UTC): BTCUSD sideways sliding back into the resistance region(red bands in the attached image)
- CRSI Buy and Sell Signals Overlay in Pine Script of www.tradingview.com
- Jan 22 2018 (2:00 UTC): What is the price resistance against BitCoin (BTCUSD) that must be broken to change its trend?
- Jan 21 2018(21:05UTC): Bitcoin ( BTCUSD ) is NOT a buy, may be a hold or a sell as of today!
- Jan 20 2018: My Comparison Notes on SUB and SNM Cryptocurrencies
- Jan 19 2018: STEEM may be a hold, not a sell as of today…
- Linear Regression Curve in Pine Script of www.tradingview.com