0 beğenilme 0 beğenilmeme
23 kez görüntülendi

merhaba. aşağıda vereceğim indikatörü tradingview de elverişli şekilde kullanıyorum. ancak mevcut indikatöre tarama oluşturmak istiyorum prime da.  son mum altında oluşan 6 rakamı sinyali veren coinleri bulmak istiyorum. aynı şekilde farklı bir tarama mum üstünde olarakda oluşan sinyali bulmak istiyorum. bu konuda yardımcı olursanız müteşekkir olurum. : 

//@version=5

indicator("Divine Code Analysis-4", overlay=true, precision=2)

 

var int highCount1 = 1

var float lastHigh1 = high

var float prevLastHigh1 = na

 

if high < lastHigh1

    highCount1 += 1

    prevLastHigh1 := lastHigh1

    lastHigh1 := high

else

    highCount1 := 1

    prevLastHigh1 := lastHigh1

    lastHigh1 := high

 

var int lowCount1 = 1

var float lastLow1 = low

var float prevLastLow1 = na

 

if low > lastLow1

    lowCount1 += 1

    prevLastLow1 := lastLow1

    lastLow1 := low

else

    lowCount1 := 1

    prevLastLow1 := lastLow1

    lastLow1 := low

 

var int riseCount = 1

var float last_high = high

var float prev_last_high = high

 

var int fallCount = 1

var float last_low = low

var float prev_last_low = low

 

prev_last_high := last_high

if high > last_high

    riseCount := riseCount + 1

    last_high := high

else

    riseCount := 1

    last_high := high

 

prev_last_low := last_low

if low < last_low

    fallCount := fallCount + 1

    last_low := low

else

    fallCount := 1

    last_low := low

 

plotshape(series=highCount1 == 3, style=shape.triangleup, color=color.green, text="3", location=location.belowbar)

plotshape(series=highCount1 == 6, style=shape.triangleup, color=color.green, text="6", location=location.belowbar)

plotshape(series=highCount1 == 7, style=shape.triangleup, color=color.green, text="7", location=location.belowbar)

plotshape(series=highCount1 == 8, style=shape.triangleup, color=color.green, text="8", location=location.belowbar)

plotshape(series=highCount1 == 9, style=shape.triangleup, color=color.green, text="9", location=location.belowbar)

 

plotshape(series=lowCount1 == 3, style=shape.triangledown, color=color.red, text="3", location=location.abovebar)

plotshape(series=lowCount1 == 6, style=shape.triangledown, color=color.red, text="6", location=location.abovebar)

plotshape(series=lowCount1 == 7, style=shape.triangledown, color=color.red, text="7", location=location.abovebar)

plotshape(series=lowCount1 == 8, style=shape.triangledown, color=color.red, text="8", location=location.abovebar)

plotshape(series=lowCount1 == 9, style=shape.triangledown, color=color.red, text="9", location=location.abovebar)

 

plotshape(series=riseCount == 3, style=shape.circle, color=color.blue, text="3", location=location.abovebar)

plotshape(series=riseCount == 6, style=shape.circle, color=color.blue, text="6", location=location.abovebar)

plotshape(series=riseCount == 7, style=shape.circle, color=color.blue, text="7", location=location.abovebar)

plotshape(series=riseCount == 8, style=shape.circle, color=color.blue, text="8", location=location.abovebar)

plotshape(series=riseCount == 9, style=shape.circle, color=color.blue, text="9", location=location.abovebar)

 

plotshape(series=fallCount == 3, style=shape.circle, color=color.orange, text="3", location=location.belowbar)

plotshape(series=fallCount == 6, style=shape.circle, color=color.orange, text="6", location=location.belowbar)

plotshape(series=fallCount == 7, style=shape.circle, color=color.orange, text="7", location=location.belowbar)

plotshape(series=fallCount == 8, style=shape.circle, color=color.orange, text="8", location=location.belowbar)

plotshape(series=fallCount == 9, style=shape.circle, color=color.orange, text="9", location=location.belowbar)

 

barcolor(highCount1 > 9 ? color.white : na)

barcolor(lowCount1 > 9 ? color.orange : na)

barcolor(riseCount > 9 ? color.purple : na)

barcolor(fallCount > 9 ? color.blue : na)

önce Grafik kategorisinde (202 puan) tarafından | 23 kez görüntülendi

1 cevap

0 beğenilme 0 beğenilmeme
Merhaba

 1.  (HIGH değeri sürekli düşüyorsa sayaç artar)

Count1 := If(H < Ref(H, -1), PREV + 1, 1);
Count1

✅  (LOW değeri sürekli yükseliyorsa sayaç artar)

Count2 := If(L > Ref(L, -1), PREV + 1, 1);
Count2

✅ 3.(her bar bir öncekinden yüksekse)

Count3 := If(H > Ref(H, -1), PREV + 1, 1);
Count3

✅ 4.(her bar bir öncekinden düşükse)

Count4 := If(L < Ref(L, -1), PREV + 1, 1);
Count4

Sayaç kaçta bulmak istiyorsanız formülün sonuna  = 6 şeklinde ekleyebilirsiniz. Farklı farklı taratabilir veya kolonlara yazıp sayaç değerlerini görebilirsiniz.

Örnek

Count1 := If(H < Ref(H, -1), PREV + 1, 1);
Count1 = 6

 

Bilgilerinize.
önce (5,030 puan) tarafından
Hoş geldiniz, Matriks Destek Platformu sizlere sorularınızın hızlıca cevaplanması için bir ortam sağlar. Sorduğunuz ve cevapladığınız soruların ve yorumlarınızın aldığı oylar üzerinden puan kazanırsınız. Puan sistemine bağlı kampanyamızla ücretsiz kullanım avantajlarından faydalanabilirsiniz.



9,314 soru
9,269 cevap
5,068 yorum
32,385 kullanıcı