Untitled

 avatar
user_8597130
plain_text
a year ago
2.9 kB
7
Indexable
/@version=5
indicator("🌊 Tsadsam","🌊 Tsadasm",overlay=true,max_lines_count=500)

wait=input(5,"Signal Pause")-1

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((ta.barssince(zd_alerty and  biglongcci)>wait)[1] and 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((ta.barssince(zd_alerty and bigshortcci)>wait)[1] and 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 and (ta.barssince(wasbiglongcci and not biglongcci)>wait)[1]
    alert("uciekajacy sygnal long 1", alert.freq_once_per_bar)

if biglongcci and (ta.barssince(biglongcci)>wait)[1]
    alert("potwierdzony sygnal long 1", alert.freq_once_per_bar)


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 and (ta.barssince(wasbigshortcci and not bigshortcci)>wait)[1]
    alert("uciekajacy sygnal short 1", alert.freq_once_per_bar)

if bigshortcci and (ta.barssince(bigshortcci)>wait)[1]
    alert("potwierdzony sygnal short1", alert.freq_once_per_bar)



//if bigshortcci and (ta.barssince(bigshortcci)>wait)[1]
//    alert(syminfo.ticker + '   : " potwierdzajacy sygnal short ", price (' + str.tostring(close, format.mintick) + ')')
Editor is loading...
Leave a Comment