Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
543 B
103
Indexable
Never
//@version=5 
indicator(title='Bolinger Sıkışması', shorttitle='BB Sıkışması', overlay = true) 
uzunluk = input.int(20, minval=1) 
src = input(close, title='Source') 
carpan = input.float(2.0, minval=0.001, maxval=50) 
[basis,upper,lower]=ta.bb(src,uzunluk,carpan) 
sikisma = (upper-lower)/basis == ta.lowest((upper-lower)/basis, uzunluk) 
p1=plot(upper, color=color.black) 
p2=plot(lower, color=color.black) 
plot(basis, color=color.black) 
fill(p1,p2, color=sikisma ? color.new(color.yellow,20): color.rgb(227, 31, 31, 79))
Leave a Comment