TradingView
Spectrum101
2 Th12 2019 17:57
Longs Vs Shorts BTC - Open source
BITFINEX:BTCUSD
240
Bitcoin / Dollar
Bitfinex
Mô tả
⋅
2 Th12 2019 17:57
Using percentage function to compare longs/shorts over a defined time window and smoothing (a dividor of the time window)
Oscillators
Bình luận
UnknownUnicorn2955934
⋅
14 Th12 2019 16:35
I like this! Line 8 - line 9 gives a nice single line.
Spectrum101
⋅
14 Th12 2019 18:19
@stluvin, Thanks
Spectrum101
⋅
14 Th12 2019 19:23
//
@version
=3
study("longsshorts-delta")
shorts=security("btcusdshorts", period, close)
longs=security("btcusdlongs", period, close)
size = input(365,title="test window")
div = input(35,title='div window for sma')
a = ema(percentrank(longs,size),floor(size/div))
b = ema(percentrank(shorts,size),floor(size/div))
d = a-b
plot(a-b,style=area)
// copy paste to see the line 8 - line 9
gunbot_scooby
⋅
29 Th01 2021 16:43
Does this only work with BTC or can i use it with stocks too?
Spectrum101
⋅
30 Th01 2021 17:18
@gunbot_scooby
, It uses btc shorts/longs ticker
Thêm nữa