IldarAkhmetgaleev

Commodity channel index x2 v1

Slightly enhenced CCI. Take a look how difference between slow and fast CCI displayed as histogram can predict possible reverse.
EDIT: fast = 14, slow = 28 works better.
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?
study(title="Commodity Channel Index x2" , shorttitle='CCIx2')

fast_lenght = input(title="Fast CCI Length", type=integer, defval=6, minval=1)
slow_lenght = input(title="Slow CCI Length", type=integer, defval=14, minval=1)

source = close

fast_cci = cci(source, fast_lenght)
slow_cci = cci(source, slow_lenght)

hist = (fast_cci - slow_cci)
hist_color = hist > 0 ? green : red

hline(0, title="Zero Line", color=gray, linestyle=dotted)
overbought = hline(100, title="Positive Line", color=gray, linestyle=dotted)
oversold = hline(-100, title="Negative Line", color=gray, linestyle=dotted)
fill(overbought, oversold, color=#9915ff, transp=90)

plot(hist, color=hist_color, title='Difference', style=histogram)
fast_line = plot(fast_cci, color=#9922ff, title='Fast CCI')
slow_line = plot(slow_cci, color=#447711, title='Slow CCI')
fill(fast_line, slow_line, color=#004499, transp=90)