Morlac
Pine Script Rookie
Pine Script Rookie
Posts: 1
Joined: January 11th, 2024

Help needed with alert webhooks

Hi all!

Every tutorial wich is about creating webhook alerts from TV to discord says I have to use JSON format for messages like: {"text": "BTCUSD Greater Than 9000"}.

But what if my indicator uses alert() function?? It doesnt have a message box on the alert setup page, because the alert message is implemented in the code.
But it doesnt let me use {} characters in the alert() function arguments.

Can somebody help me how can i create webhoook alerts if my alerts are initiated from alert() function?

Return to “Pine Script Q&A”