0 beğenilme 0 beğenilmeme
20 kez görüntülendi
per = input(14, title='Bottom Period')

loc = low < ta.lowest(low[1], per) and low <= ta.lowest(low[per], per)

bottom = ta.barssince(loc)

 

per2 = input(14, title='Top Period')

loc2 = high > ta.highest(high[1], per2) and high >= ta.highest(high[per2], per2)

top = ta.barssince(loc2)

 

yesil = bottom > top
önce Grafik kategorisinde (12 puan) tarafından | 20 kez görüntülendi

1 cevap

0 beğenilme 0 beğenilmeme
Merhabalar,

Aşağıdaki şekilde deneyiniz,

per :=14;
loc := l < ref(LLV(L,PER),-1) and  l <= ref(LLV(LLV(L,PER),PER),-1);
bottom := barssince(loc);
per2 :=14;
loc2 := h> ref(HHV(H,PER),-1) and  h >= ref(HHV(HHV(H,PER2),PER2),-1);
top :=barssince(loc2);
yesil := bottom > top;
yesil

iyi çalışmalar
önce (34,638 puan) tarafından
9,382 soru
9,339 cevap
5,082 yorum
34,870 kullanıcı