Untitled
user_8597130
plain_text
2 years ago
2.4 kB
9
Indexable
//@version=5
indicator("🌊 Tsadsam",'🌊 Tsadasm',overlay=true,max_lines_count=500)
cci1a=input(9,"cci1")
cci2a=input(17,"cci2")
cci3a=input(26,"cci3")
ccimax1=input(200,"cci plus")
ccimax2=input(-200,"cci minus")
cci1=ta.cci(close,cci1a)
cci2=ta.cci(close,cci2a)
cci3=ta.cci(close,cci3a)
cci11=input(true,"cci1")
cci22=input(true,"cci2")
cci33=input(true,"cci3")
aaa=cci3a>100
bbb=cci3a<-100
longcci1=cci11? ta.crossover(cci1,ccimax1):na
longcci2=cci22?ta.crossover(cci2,ccimax1):na
longcci3=cci33?ta.crossover(cci3,ccimax1):na
shortcci1=cci11?ta.crossunder(cci1,ccimax2):na
shortcci2=cci22?ta.crossunder(cci2,ccimax2):na
shortcci3=cci33?ta.crossunder(cci3,ccimax2):na
zd_alerty=input(true,"alerty tylko cci")
biglongcci= (longcci1 or longcci2 or longcci3 )
bigshortcci=(shortcci1 or shortcci2 or shortcci3 )
plotshape(zd_alerty and biglongcci , title="kup", color = color.rgb(10, 149, 45, 28), textcolor = color.white, text = "â–² cci", style = shape.labelup, location = location.belowbar, size = size.normal)
plotshape(zd_alerty and bigshortcci , title = " Sprzedaj", color = color.rgb(208, 13, 13, 26), textcolor =color.white, text = "â–¼ cci", style = shape.labeldown, location = location.abovebar, size = size.normal)
varip wasbiglongcci = false
if barstate.isnew
wasbiglongcci := false
else
if biglongcci
wasbiglongcci := true
plotshape(wasbiglongcci, title="xx",color= color.rgb(159, 208, 13, 45), textcolor = color.rgb(255, 255, 255, 70), text = "â–²", style = shape.labelup, location = location.belowbar, size = size.normal, editable = false)
if wasbiglongcci and not biglongcci
alert("uciekajacy sygnal long 1", alert.freq_once_per_bar_close)
if biglongcci
alert("potwierdzony sygnal long 1", alert.freq_once_per_bar_close)
varip wasbigshortcci = false
if barstate.isnew
wasbigshortcci := false
else
if bigshortcci
wasbigshortcci := true
plotshape(wasbigshortcci, color = color.rgb(195, 208, 13, 45), textcolor =color.rgb(255, 255, 255, 72), text = "â–¼+", style = shape.labeldown, location = location.abovebar, size = size.normal, editable = false)
if wasbigshortcci and not bigshortcci
alert("uciekajacy sygnal short 1", alert.freq_once_per_bar_close)
if bigshortcci
alert("potwierdzony sygnal short1", alert.freq_once_per_bar_close)
Editor is loading...
Leave a Comment