我为我的图表创建了一个交易视图脚本。我想做的是:
alertcondition(crossover(OTT[2], OTT[3]), title="GREEN ALERT", message="OTT GREEN BUY SIGNAL!")
alertcondition(crossunder(OTT[2], OTT[3]), title="RED ALERT", message="OTT RED SELL SIGNAL!")
plotshape(buySignalk and showsignalsk ? OTT*0.995 : na, title="Buy", text="Buy", location=location.absolute, style=shape.labelup, size=size.tiny, color=color.green, textcolor=color.white, transp=0)
sellSignallk = crossunder(MAvg, OTT[2])
如果系统必须添加绿色警报或出售警报,我想使用 API 发送短信。
API结构为:
http://127.0.0.1:9501/api?action=sendmessage&recipient=06203105366&messagetype=SMS:TEXT&messagedata=BNB SELL
Messagedata will be the text sell or Buy.
问候