Can you write the pine code on the TV, big brother, and help me turn the indicator into a warning?

Author: belove1100, Created: 2021-09-05 12:29:34, Updated:

Question: I found an indicator on the TV, but the signal is only on the graph. Couldn't create an alert. Can someone help me change it?


More

This world is my only one.I've looked at it and it's the same, you can make your own strategy and see if you can make money.

This world is my only one.Added at end

This world is my only one.baojin1=major==-1?1:0 // the high-point alarm icon is a circle baojin2=major==1?1:0 // the high-point alarm icon is round baojin3=minor==-1?1:0 // the low-point alarm icon is a circle baojin4=minor==1?1:0 // the low-point alarm icon is round alertcondition ((baojin1, title="high•",message="high point likely to occur hurry up") alertcondition ((baojin2, title="high○", message="high point may occur hurry up") alert condition ((baojin3, title="low•",message="low point likely to occur hurry up") alertcondition ((baojin4, title="low○", message="low point may occur hurry up")

This world is my only one.alertcondition writes this code

This world is my only one.Alerts are simple.

belove1100This is the source code, just draw an icon on the graph, and I can't create a warning, I think it's pretty useful, so please help me.

belove1100 //@version=2 study('Leledc Exhaustion Bar',overlay=true) maj_qual=input(6),maj_len=input(30) min_qual=input(5),min_len=input(5) maj=input(true,title="Show Major") min=input(true,title="Show Minor") lele(qual,len)=> bindex=nz(bindex[1],0) sindex=nz(sindex[1],0) ret=0 if (close>close[4]) bindex:=bindex + 1 if(close<close[4]) sindex:=sindex + 1 if (bindex>qual) and (close<open) and high>=highest(high,len) bindex:=0 ret:=-1 if ((sindex>qual) and (close>open) and (low<= lowest(low,len))) sindex:=0 ret:=1 return=ret major=lele(maj_qual,maj_len) minor=lele(min_qual,min_len) plotchar(maj ? (major==-1?high:na) : na, char='•',location=location.absolute,color=red,transp=0,size=size.normal) plotchar(maj ? (major==1?low:na) : na , char='•',location=location.absolute,color=lime,transp=0,size=size.normal) plotchar(min ? (minor==-1?high:na) : na, char='○',location=location.absolute,color=red,transp=0,size=size.normal) plotchar(min ? (minor==1?low:na) : na , char='○',location=location.absolute,color=lime,transp=0,size=size.normal)

belove1100Thank you, God.