ozgurhan

CCI al-sat indikatörü

BITFINEX:BTCUSD   Bitcoin
Merhabalar cci indikatörü üzerine 4 durum için aşağıda verdiğim pine script kodu ile yazmış olduğum üzere alarm koyabilirsiniz. 4 saatlik grafikte daha iyi çalışır.
Not : hata verirse burada kodları kopyala yapıştır yaparken hata oluyor
iff(xSMA > xFMA, -1, nz(pos, 0)))
kodunu 2 tab ileri alınız
a) -100 aşırı alım bilgesi
b) 100 aşırı satım
c) yukarı kesişim
d) aşağı kesişim

study(title="CCI AŞIRI ALIM VE SATIM", shorttitle="CCI strategy")
asiriAlimSeviyesi=input(-100, title="Aşırı Alım Seviyesi")
asiriSatimSeviyesi=input(100, title="Aşırı Alım Seviyesi")

FastMA = input(10, minval=1)
SlowMA = input(20, minval=1)
hline(0, color=purple, linestyle=dashed)
hline(100, color=black, linestyle=dashed)
hline(-100, color=black, linestyle=dashed)
xCCI = cci(close, 10)
xSMA = sma(xCCI,SlowMA)
xFMA = sma(xCCI,FastMA)
pos = iff(xSMA < xFMA , 1,
iff(xSMA > xFMA, -1, nz(pos, 0)))
barcolor(pos == -1 ? red: pos == 1 ? green : blue)
plot(xSMA, color=red, title="CCI MA Slow")
plot(xFMA, color=blue, title="CCI MA FAST")
yukariKeser=crossover(xFMA, xSMA)
asagiKeser=crossunder(xFMA, xSMA)
alertcondition(yukariKeser, title="Yukarı keser", message="Yukari keser")
alertcondition(asagiKeser, title="Aşağı Keser ", message="Aşağı Keser keser")

alimsarti=crossunder(xFMA, asiriAlimSeviyesi)
alertcondition(alimsarti, title="Al", message="Al")
plotshape(alimsarti,size=size.small,style=shape.labelup,location=location.bottom,text="AL")

satimsarti=crossover(xFMA, asiriSatimSeviyesi)
alertcondition(satimsarti, title="SAT", message="SAT")
plotshape(satimsarti,size=size.small,style=shape.labelup,location=location.top,text="SAT")

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.