Type/to search
0
Follow
0
Followers
Gibt es einen Bruder, der Pine-Code im Fernsehen schreiben kann? Können Sie mir helfen, einen Indikator in eine Warnung umzuwandeln?
Help
Created 2021-09-05 12:29:34  
 8
 1299

Ich habe eine Anzeige auf dem Fernseher gefunden, aber die Signale sind nur auf dem Diagramm zu sehen. Ich kann keine Warnung erstellen. Kann mir jemand helfen, die Pine zu ändern?

Related Recommendations
Comment
All comments (8)

    我看了下也就那样,你可以自己改成策略跑跑看能不能赚钱

    5 years ago

    谢谢了 大神

    5 years ago

    加在最后面

    5 years ago

    baojin1=major==-1?1:0 //高点报警图标是圆点
    baojin2=major==1?1:0 //高点报警图标是圆
    baojin3=minor==-1?1:0 //低点报警图标是圆点
    baojin4=minor==1?1:0 //低点报警图标是圆
    alertcondition(baojin1,title="高•",message="高点大概率出现赶紧跑")
    alertcondition(baojin2,title="高○",message="高点有可能出现赶紧跑")
    alertcondition(baojin3,title="低•",message="低点大概率出现赶紧跑")
    alertcondition(baojin4,title="低○",message="低点有可能出现赶紧跑")

    5 years ago

    alertcondition写这个代码

    5 years ago

    警报,简单

    5 years ago

    这个就是源码 只在图表上画一个图标 没法创建警告 我觉得还蛮好用的 所以请过路的大神帮帮忙 img

    5 years ago

    //@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)

    5 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)