TradingView
Pinnacle_Investor
21 Th02 2020 10:47

OBV w/BB+EMA 

Bitcoin / United States DollarCoinbase

Mô tả

OBV plotted with Bollinger Bands to show whether the volume is breaking out from its normal deviation (both up or down). The OBV changes color depending on the macro trend which is set using a 100 EMA.

Phát hành các Ghi chú

MULTIPLE EXCHANGE DATA UPDATE:

- Now with the added feature of pulling data from multiple exchanges (for BTCUSD) and calculating a simple average. The following pairs used are: BITSTAMP:BTCUSD, BINANCE:BTCUSDT, COINBASE:BTCUSD, BITFINEX:BTCUSD and KRAKEN:BTCUSD. This feature is off by default

- There is also an option to disable Binance Data for the option above, as it has no data pre Aug 2017

- You can now select the timeframe you would like the OBV to be calculated with (Daily is default)

Phát hành các Ghi chú

Alterations to the code
Bình luận
kurtsmock
this would be pretty cool if you plotted candles instead of a line... try it out with the plotbar() function
Pinnacle_Investor
@kurtsmock, I'll give it a go at some point. Unfortunately I'm not a wizard at things like this. The script was put together by compiling other scripts, that's all. I will see if I can add it though, would be interesting
kurtsmock
@seastwood, oooo. yea. I just tried it real quick.. it is a bit of a trick. You have to assign the ohlc manually. I thought that plot function would run the script like a candle and track the ohlc throughout... doesn't really work that way with volume/obv. Still a cool idea for a script
Pinnacle_Investor
@kurtsmock, So have you got it showing in candle form?
kurtsmock
@seastwood, I did but it only painted a static flat level. So it looked like a candle that opened and closed on the same level and had no wicks. basically looked like a " - " So, I'd have to learn more about that plotcandle() function to figure how it would work...
Pinnacle_Investor
@kurtsmock, Ahh makes sense. Ill give it ago in the next few days
Thêm nữa