hodl

Hodl Stick Bitcoin v.4.1.1

393 2 50
This is special version of HODL Stick for Bitcoin only. It uses data from 9 different exchanges.
Use normal HODL Stick if you need it for other assets.

Supports custom timeframe & 9 different btc exchanges

Evaluates candles and plots a line graph
Shows sentiment, divergences, patterns, horizontal and trendline support and resistance ...
Works best with HODL SR - Support & Resistance (https://www.tradingview.com/market/th-hodlsr/)
Find documentation, examples & screencasts on http://hodl.org/#hodlstick
Support: PM @hodl, http://hodl.org/#contact, TV Chatroom: https://www.tradingview.com/chat/#98WVlhF280YNEV1J
best practice: use chatroom "Project HODL" so everyone can participate

If you have suggestions or discovered new patterns, don't hesitate to share with me & community

Support development:
BTCBeerJar: 1JFJRXKX2TWztR6reNNN3ngqiDRQ1cjRQt
Subscribe to HODL SR (you won't regret it) - https://www.tradingview.com/market/th-hodlsr/.

If you use this code or part of the code, don't forget to credit hodl.org and link to the source
Remove from Favorite Scripts Add to Favorite Scripts
// HODL Stick Bitcoin v.4.1.1 , 14.9.2015
// Part of Project HODL
// Author: @hodl (https://www.tradingview.com/u/hodl/, http://hodl.org)
//
// supports custom timeframe, 9 different btc exchanges
//
// evaluates candles and plots a line graph
// shows sentiment, divergences, patterns, horizontal and trendline support and resistance...
// works best with HODL SR - Support & Resistance (https://www.tradingview.com/market/th-hodlsr/)
// find documentation, examples & screencasts on http://hodl.org/#hodlstick
// support: PM @hodl, http://hodl.org/#contact, TV Chatroom: https://www.tradingview.com/chat/#98WVlhF280YNEV1J
//      best practice: use chatroom "Project HODL" so everyone can participate 
//
// If you have suggestions or discovered new patterns, don't hesitate to share with me & community 
//
//
// Support development: 
//      BTCBeerJar: 1JFJRXKX2TWztR6reNNN3ngqiDRQ1cjRQt 
//      Subscribe to HODL SR (you won't regret it) - https://www.tradingview.com/market/th-hodlsr/. 
//      If you use this code or part of the code, don't forget to credit hodl.org and link to the source

study("Hodl Stick Bitcoin v.4.1.1", precision=2)



// define timeframe
customTf = input(false, 'Custom Timeframe?', bool)
customTfVal = input('60', 'Custom Timeframe:', resolution)
timeframe = customTf?customTfVal:period

// define exchanges
inclStamp = input(true, 'Include Bitstamp?', bool)
inclBfx = input(true, 'Include Bitfinex?', bool)
inclBtce = input(true, 'Include Btc-e?', bool)
inclOK = input(true, 'Include OKCoin?', bool)
inclHuobi = input(true, 'Include Huobi?', bool)
inclChina = input(true, 'Include BtcChina?', bool)
inclOK1W = input(true, 'Include OKCoin fut 1W?', bool)
inclOK2W = input(true, 'Include OKCoin fut 2W?', bool)
inclOK3M = input(true, 'Include OKCoin fut 3M?', bool)


calcCandle()=>

    candleHeight = high-low
    bodyHeight = abs(open-close)
    topBody = max(open,close)
    bottomBody = min(open,close)
    topWick = high-topBody
    bottomWick = bottomBody-low
    previousStrenght = candleHeight/nz(candleHeight[1])
    wickStrenght = nz((topWick-bottomWick) / candleHeight)
    bodyStrenght = nz((open-close) / candleHeight)

    candleStrenght = avg(wickStrenght, bodyStrenght) 
    cum(candleStrenght * -1)



stamp = inclStamp?security('BITSTAMP:BTCUSD', timeframe, calcCandle()):0
bfx = inclBfx?security('BITFINEX:BTCUSD', timeframe, calcCandle()):0
btce = inclBtce?security('BTCE:BTCUSD', timeframe, calcCandle()):0
ok = inclOK?security('OKCOIN:BTCCNY/FX:USDCNH', timeframe, calcCandle()):0
huobi = inclHuobi?security('HUOBI:BTCCNY/FX:USDCNH', timeframe, calcCandle()):0
china = inclChina?security('BTCCHINA:BTCCNY/FX:USDCNH', timeframe, calcCandle()):0
ok1w = inclOK1W?security('OKCOIN:BTCUSD1W', timeframe, calcCandle()):0
ok2w = inclOK2W?security('OKCOIN:BTCUSD2W', timeframe, calcCandle()):0
ok3m = inclOK3M?security('OKCOIN:BTCUSD3M', timeframe, calcCandle()):0


out = (stamp + bfx + btce + ok + huobi + china + ok1w + ok2w + ok3m) / (inclStamp + inclBfx + inclBtce + inclOK + inclHuobi + inclChina + inclOK1W + inclOK2W + inclOK3M) 

cum = out
col = cum > cum[1]?green:
    cum < cum[1]?red:orange

pStick = plot( cum, color=col, title="Hodl Stick" )
pOverlay = plot( cum[1], color=orange, offset=-1, linewidth=2, title="Overlay Line")
Hi all,
I noticed some of you are using Heikin Ashi candlesticks with HODL Stick. Heikin Ashi calculates open, high, low and close differently so Stick is not plotted correctly. The output is interesting and I will definitely spend some time analysing it.
Current advice: use normal candlestick with HODL Stick.

T.
Reply
I published HODL Technical Analysis screencast with HODL SR and HODL Stick.
You can find it on support website: http://hodl.org/#hodl_stick_screencasts
thnx,
T.
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out