알트코인이 비트코인의 영향을 받는 것을 트레이딩뷰 지표로 직접 구현

sjc333(57)
Published in
#kr
Words
265
Reading
2 min
Listen
Play
9y

알트코인 값들이 비트코인의 영향을 많이 받고 있습니다.

그래서 매번 알트코인 값을 예측할 때 비트코인 값을 참조하게 되는데요

너무나도 귀찮죠?

그래서 제가 직접 트레이딩뷰에서 지표 스크립트를 만들었습니다.

https://kr.tradingview.com/script/wp2FeNMP/

개선한 것 링크 : https://kr.tradingview.com/script/RKsZNSy7/

저기서 add to favorite 누른뒤에

트레이딩뷰에서 차트를 볼 때 우클릭 - 지표넣기 - 즐겨찾기 하면 나옵니다.

그림은 NXTBTC 15분봉 차트이며 아래에 제가 만든 지표가 있습니다.
이 지표의 별칭은 "가갤지표" 입니다.

가갤지표가 가격 흐름이 한타이밍 빠른 것이 보이나요?
신기하죠?

어쩌면 초단타에 쓸 수도 있겠군요.

무엇보다도, 비트코인에 의한 가격흐름인지, 그 알트코인 자체적인 영향인지를 구분하는데 사용할 수 있습니다.

도움이 되기를!


현재 링크가 작동하질 않습니다. 일단 스크립트(소스 원본)을 올립니다.

//thanks lazybear and lonestar108
study(title="WaveTrend cross only BTCUSDT", shorttitle="WT_CROSS_BTCUSDT")
n1 = input(10, "Channel Length")
n2 = input(21, "Average Length")
obLevel1 = input(60, "Over Bought Level 1")
obLevel2 = input(53, "Over Bought Level 2")
osLevel1 = input(-60, "Over Sold Level 1")
osLevel2 = input(-53, "Over Sold Level 2")

btc = security("BTCUSDT", period, close)
btc_o = security("BTCUSDT", period, open)
btc3 = security("BTCUSDT", period, hlc3)

ap = btc3
esa = ema(ap, n1)
d = ema(abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * d)
tci = ema(ci, n2)

wt1 = tci
wt2 = sma(wt1,4)

plot(0, color=gray)
plot(obLevel1, color=red)
plot(osLevel1, color=green)
plot(obLevel2, color=red)
plot(osLevel2, color=green)

plot(wt1, color=blue)
plot(wt2, color=orange)
plot(wt1-wt2, color=green, style=area, transp=80)
plot(cross(wt1, wt2) ? wt2 : na, color = black , style = circles, linewidth = 3)
plot(cross(wt1, wt2) ? wt2 : na, color = (wt2 - wt1 > 0 ? red : lime) , style = circles, linewidth = 2)
//barcolor(cross(wt1, wt2) ? (wt2 - wt1 > 0 ? aqua : yellow) : na) //do not change!

알트코인이 비트코인의 영향을 받는 것을 트레이딩뷰 지표로 직접 구현 | Ecency