I'm trying to send a tradingview webhook to my php server as follows:
condition_alert = (crossunder(rsi, rsi2) and crossunder(rsi, rsi2) and rsiColor1[1] == #0ebb23 and rsiDowntrend)
if (condition_alert)
alert("condition_alert", alert.freq_once_per_bar_close)
url = "https://MYserver.com//hook.php"
webhookdata = "condition_alert" + syminfo.ticker
webhookrequest = request.post(url, body=webhookdata)
but am receiving the error: Could not find function or function reference 'request.post'. I'm not sure what the correct syntax is for achieving this. And also believe the '+ syminfo.ticker' might be incorrect.
Thank you in advance.