CRSI Buy and Sell Signals Overlay in Pine Script of www.tradingview.com

in #crsi7 years ago

Please find below my code for CRSI Buy Sell Signals Overlay. Test it out in the Pine Editor of https://www.tradingview.com. More details follow as time permits!

////////////////////////////////////////////////////////////////////////
//@version=3
//KAL GANDIKOTA NOV 2017
//SteemID - chipmaker
//BTS Wallet - chip-maker
//ETH Wallet - 0x0450DCB7d4084c6cc6967584263cF6fBebA761D1
//NEO Wallet - AUdiNJDW7boeUyYYNhX86p2T8eWwuELSGr
//https://www.twitter.com/chipmaker_tweet
//https://steemit.com/@chipmaker
///////////////////////////////////////////////////////////////////////
study(title="KalyCRSI_BS_Overlay", overlay=true)
src = close, lenrsi = 3, lenupdown = 2, lenroc = 100
updown(s) =>
isEqual = s == s[1]
isGrowing = s > s[1]
ud = 0.0
ud := isEqual ? 0 : isGrowing ? (nz(ud[1]) <= 0 ? 1 : nz(ud[1])+1) : (nz(ud[1]) >= 0 ? -1 : nz(ud[1])-1)
ud
rsi = rsi(src, lenrsi)
updownrsi = rsi(updown(src), lenupdown)
percentrank = percentrank(roc(src, 1), lenroc)
crsi = avg(rsi, updownrsi, percentrank)
crsi_high=(crsi > 95)
crsi_low=(crsi < 5)
bgcolor( crsi_high ? yellow: (crsi_low ? purple:na))
barcolor( crsi_high? yellow: (crsi_low ? purple:na))
plotchar(crsi_high, title="Sell Alert", char='S', location=location.abovebar, color=red, transp=0, offset=0, size=size.tiny)
plotchar(crsi_low, title="Buy Alert", char='B', location=location.belowbar, color=green, transp=0, offset=0, size=size.tiny)
//END

The Screenshot of CRSI Buy Sell Signals Overlay on 1 day candles of BTCUSDT(Binance):
Jan23_2018_BTCUSDT_Binance_Chart_showing_CRSI_BS_Overlays.png

More Details will follow as time permits. Please let me know if I am missing anything…..

Legal Disclaimer: I am not bribed to write here and I am not seeking 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.

Safe Trading!
Kal Gandikota
PS: If you found this blog post interesting and edifying please follow, upvote, resteem.

PS2: Please kindly donate for my daily expenses (atleast as you would on streets) at the following addresses:
SteemID - chipmaker
BTS Wallet - chip-maker
ETH Wallet - 0x0450DCB7d4084c6cc6967584263cF6fBebA761D1
NEO Wallet - AUdiNJDW7boeUyYYNhX86p2T8eWwuELSGr
NEOWalletPublicAddress.png

PS3: To open a cryptocurrency trading account at the brokerage where I trade most for now, please kindly use the following website(with referral code already attached):
https://www.binance.com/?ref=18571297

Sort:  

Thanks for sharing I will take a look at your script.

Coin Marketplace

STEEM 0.26
TRX 0.20
JST 0.038
BTC 95524.55
ETH 3592.87
USDT 1.00
SBD 3.78