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")

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.