// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © verleeben33733 //@version=5 indicator("Squid - Banker",overlay = false) v2=(high+low+close*(2))/(4) b = (ta.ema((v2-ta.lowest(v2,15))/(ta.highest(low,15)-ta.lowest(v2,15)),2))*38 bot1 = (-1)*(ta.ema((v2-ta.lowest(v2,15))/(ta.highest(low,15)-ta.lowest(v2,15)),2)+0.01)*38 v22 = ((close-ta.lowest(low,10))/(ta.highest(high,10)-ta.lowest(low,10)))*100 v33 =ta.ema(v22,10) v44=ta.ema(v33,10) v55= 3*v33- 2*v44 v66 =ta.ema(v55,5) bridgeT=ta.ema(v66,1) if (bridgeT> bridgeT[1]) bridgeTcolor = color.blue else bridgeTcolor = color.red plot(bridgeT,"upband",color = bridgeT >=bridgeT[1]? color.blue : color.red,linewidth = 2, style = plot.style_line ) plot(0,"",color = color.rgb(33, 243, 243, 17),linewidth = 1,style =plot.style_stepline_diamond) plot(5,"",color = color.rgb(249, 10, 185, 17),linewidth = 1,style =plot.style_stepline_diamond) plot(-bridgeT,"upband",color = bridgeT >=bridgeT[1]? color.blue : color.red,linewidth = 2, style = plot.style_line ) trend = (5)*(ta.ema(((close-ta.lowest(low,27))/(ta.highest(high,27)-ta.lowest(low,27)))*(100),5))- (3)*(ta.ema(ta.ema(((close-ta.lowest(low,27))/(ta.highest(high,27)-ta.lowest(low,27)))*(100),5),3))- ta.ema(ta.ema(ta.ema(((close-ta.lowest(low,27))/(ta.highest(high,27)-ta.lowest(low,27)))*(100),5),3),2) plot(trend,"Trend line",color = color.rgb(117, 243, 33, 1),linewidth = 1,style =plot.style_line) Buy1 = ta.crossover(trend,5) // buy 2 condition---------------------------------------- VARA1=((close>=close[1]) and (close[1]>=close[2]) and (close[1]<=close[3]) and (close[2]<=close[3]) and ((close[4]>close[2]) or (close[4]<=close[2]) and (close[5]>=close[3])) or (close>=close[1]) and (close[1]<=close[2]) and (close>=close[2]) and ((close[3]>close[1]) or (close[3]<=close[1]) and (close[4]>=close[2]))) VARA2=ta.lowest(low,5) VARA3=ta.highest(high,5) VARA4=ta.ema(((close-VARA2)/(VARA3-VARA2))*(100),4) VARA5=ta.ema((0.66699999)*(VARA4[1])+(0.333)*(VARA4),2) VARA6=(VARA5<24) and (open=bridgeT[2] //========== plot signal indicator ================ plotshape(sell,"Sell",shape.triangledown,location = location.top,size = size.small,color = color.red) plotshape(Buy1,"Buy 1",shape.arrowup,location = location.bottom,color = color.green, text = "Buy 1",textcolor = color.green,size = size.normal) plotshape(Buy2,"buy 2",shape.triangleup,location.bottom,color.blue,offset = 0, text = "B2",textcolor = color.blue,size = size.small) Top = ta.highest(bridgeT,50) plot(Top,"Top high", color.orange,linewidth = 2,style =plot.style_linebr) // Alert alertcondition(condition = Buy1,title = "Tín hiệu mua 1",message = "tín hiệu Buy1 xuất hiện") alertcondition(condition = Buy2,title="Tín hiệu mua 2",message = "tín hiệu Buy2 xuất hiện") plot(b,"",color = color.red,linewidth = 1) plot(bot1,"",color = color.red,linewidth = 1) alertcondition(Buy1,"tin hieu mua 1",message = "Tin hieu mua 1") alertcondition(Buy2,"tin hieu mua 2",message = "Tin hieu mua 2") alertcondition(sell,"tin hieu ban",message = "Tin hieu ban")