NeoButane

BFXLS - Bitfinex Longs vs. Shorts [compatible on any chart]



This is an edit to an existing script. Original credits to pigloo and Ivturner for the slight tweak.

What's been changed:

This version allows Bitfinex $BTC longs/shorts to be viewed on any chart. It can be helpful when trading alts to find out why price is fluctuating.

I've added a price tracker that will show you BFX's BTCUSD value if you have indicator values on. It doesn't deviate much from the base, so there's not much point in having it visible. You can edit visibility or turn it off.

Enables editing of any ticker of your choice, but references to short and long are made in input to prevent confusion. I haven't had much use for this yet; you can use it as a price graph if you disable everything except for Ticker 3.


From pigloo's script:

Green area = Longs
Red area = Shorts
Lighter area = Longs - Shorts

The data only started recently which is why there is not much history, also I have marked a period of missing data between the vertical lines.



Poorly made example of price tracking;
リリースノート: Visual needs work but I think it gives more easier to read information. Green tick -> longs over shorts increased
リリースノート: Bar close color based on positive or negative net margin volume.

Blue area: long volume
white area: short volume
リリースノート: Updated to include a lot more stuff.

- Now any pairing on Bitfinex is available to view
- Area, columns, or lines style

Note that columns style uses moving averages to help better visualize changes in long/short volume and aren't 100% accurate.
お気に入りスクリプトから削除 お気に入りスクリプトに追加
My published indicators: https://www.tradingview.com/u/NeoButane/#published-scripts

Sorry if I haven't replied to your message yet, I'm a bit backlogged :)

コメント

Old script:


//@version=3
//Original credits to pigloo and Ivturner for the slight tweak.
//This version allows Bitfinex $BTC longs/shorts to be viewed on any chart.
//Also enabled editing of any ticker of your choice, but references to short and long are made in input to prevent confusion.

//I've also added a price tracker that will show you BFX's BTCUSD value if you have indicator values on. It's the last value in blue.
//It doesn't deviate much from the base, so there's not much point in having it visible. Still, you can edit visibility or turn it off.

//Same rules apply:
//Green area = Longs
//Red area = Shorts
//White area = Longs - Shorts

study(title="BFXLS - Bitfinex Longs vs. Shorts ", shorttitle="BFXLS ", overlay=false)

tick = input(title="Ticker 1 (Shorts)", type=symbol, defval="BITFINEX:BTCUSDSHORTS")
tock = input(title="Ticker 2 (Longs)", type=symbol, defval="BITFINEX:BTCUSDLONGS")

neo = input(title="Ticker 3 (BTCUSD)", type=symbol, defval="BITFINEX:BTCUSD")


//short
tickr = security(tick, period, open)
//long
tockr = security(tock, period, open)


hist = tockr - tickr

//short
p1 = plot(-tickr, title="Ticker 1 (Short)", color=#d11d173F, style=area, linewidth=4)
//long
p2 = plot(tockr, title="Ticker 2 (Long)", color=#36a8453F, style=area, linewidth=4)
//long - short
plot(hist, title="Ticker 2 - Ticker 1", style=area, color=#ffffff3F)

butane = security(neo, period, close)
plot(butane, title="Ticker 3 (BTCUSD)", style=columns, transp=99, linewidth=2, trackprice=true)
返信
ホーム 株式スクリーナー FXスクリーナー 仮想通貨スクリーナー 経済指標カレンダー 使い方 チャート機能 価格 友達紹介 ハウスルール ヘルプセンター ウェブサイト&ブローカー向けソリューション ウィジェット チャートソリューション 軽量チャートライブラリ ブログ&ニュース ツイッター
プロフィール プロフィール設定 アカウントとお支払い 友達紹介 コイン マイサポートチケット ヘルプセンター 公開したアイデア フォロワー フォロー中 プライベートメッセージ チャット サインアウト