Created
May 27, 2019 11:57
-
-
Save norbert-gaulia/931c10255bc9e6fbb8ad5e5e1f81550e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //@version=3 | |
| // Author: NGBaltic inspired by CryptoPredictions | |
| // Chart helps to determine overall hype of the biggest players on the market. | |
| study("NG [Crypto Hype Meter]") | |
| // === SERIES === | |
| // All pairs that have more than billion marketcap except bch btg etc ada | |
| //updated 2018-02-26 | |
| emaLen1=input(13,minval=2,title="Strength SMA") | |
| emaLen2=input(8,minval=2,title="Signal Slow") | |
| emaLen3=input(314,minval=2,title="Signal 314") | |
| tmp=input(true, title="Circulating supply from coinmarketcap.com") | |
| dobtc=input(true,title="Include BTC") | |
| supplyBTC= input(defval=17250887, title="Supply BTC", minval=1) | |
| btcAdj= input(.5,title="BTC Impact Adjustment", minval=.1, maxval=1, step=.1) | |
| btcusd = security("COINBASE:BTCUSD", period, close, barmerge.gaps_off, barmerge.lookahead_off) | |
| doeth=input(true,title="Include ETH") | |
| supplyETH= input(defval=101773353 , title="Supply ETH", minval=1) | |
| ethusd = security("BITFINEX:ETHUSD", period, close, barmerge.gaps_off, barmerge.lookahead_off) | |
| doxrp=input(true,title="Include XRP") | |
| supplyXRP= input(defval=39650153121, title="Supply XRP", minval=1) | |
| xrpusd = security("BITTREX:XRPUSD", period, close, barmerge.gaps_off, barmerge.lookahead_off) | |
| dobch=input(true,title="Include BCH") | |
| supplyBCH= input(defval=17332350 , title="Supply BCH", minval=1) | |
| bchusd = security("BITTREX:BCHUSD", period, close, barmerge.gaps_off, barmerge.lookahead_off) | |
| doltc=input(true,title="Include LTC") | |
| supplyLTC= input(defval=58160828, title="Supply LTC", minval=1) | |
| ltcusd = security("BITFINEX:LTCUSD", period, close, barmerge.gaps_off, barmerge.lookahead_off) | |
| doiot=input(true,title="Include IOTA") | |
| supplyIOT= input(defval=2779530283, title="Supply IOT", minval=1) | |
| iotusd = security("BITFINEX:IOTUSD", period, close, barmerge.gaps_off, barmerge.lookahead_off) | |
| doxmr=input(true,title="Include XMR") | |
| supplyXMR= input(defval=16380624, title="Supply XMR", minval=1) | |
| xmrusd = security("BITFINEX:XMRUSD", period, close, barmerge.gaps_off, barmerge.lookahead_off) | |
| doneo=input(true,title="Include NEO") | |
| supplyNEO= input(defval=65000000, title="Supply NEO", minval=1) | |
| neousd = security("BITTREX:NEOUSD", period, close, barmerge.gaps_off, barmerge.lookahead_off) | |
| doxlm=input(true,title="Include XLM") | |
| supplyXLM= input(defval=18773727937, title="Supply XLM", minval=1) | |
| xlmusd = security("BITFINEX:XLMUSD", period, close, barmerge.gaps_off, barmerge.lookahead_off) | |
| doeos=input(true,title="Include EOS") | |
| supplyEOS= input(defval=906245118, title="Supply EOS", minval=1) | |
| eosusd = security("BITFINEX:EOSUSD", period, close, barmerge.gaps_off, barmerge.lookahead_off) | |
| doetc=input(true,title="Include ETC") | |
| supplyETC= input(defval=100130658, title="Supply ETC", minval=1) | |
| etcusd = security("BITFINEX:ETCUSD", period, close, barmerge.gaps_off, barmerge.lookahead_off) | |
| strength=(dobtc?btcusd*supplyBTC*btcAdj:0) + (doeth?ethusd*supplyETH:0) + (doxrp?xrpusd*supplyXRP:0) + (dobch?bchusd*supplyBCH:0) + (doltc?ltcusd*supplyLTC:0) + (doiot?iotusd*supplyIOT:0) + (doxmr?xmrusd*supplyXMR:0) + (doneo?neousd*supplyNEO:0) + (doxlm?xlmusd*supplyXLM:0) + (doeos?eosusd*supplyEOS:0)+ (doetc?etcusd*supplyETC:0) | |
| sema1=sma(strength,emaLen1) | |
| sema2=sma(sema1,emaLen2) | |
| sema3=sma(strength,emaLen3) | |
| p1=plot(strength,color=silver,title='Crypto Strength',linewidth=1,transp=25) | |
| p2=plot(sema1,color=rising(sema1, 2)?lime:red,title='Strength SMA',linewidth=3, transp=10) | |
| p3=plot(sema2,color=silver,title='Strength SMA Slow',linewidth=1,transp=0) | |
| p4=plot(sema3,color=silver,title='Strength SMA 314',linewidth=1,transp=10) | |
| fill(p1,p2,color=sema1>strength?#ee3e75:#7ec352,transp=30) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment