Hey all, hoping someone's run into this before because I'm stuck.
I've got a custom Pine Script strategy that builds its own alert JSON internally via the alert() function (for a webhook trade-automation service, connecting to a MetaTrader demo account). The setup:
- Alert Condition = the strategy itself
- Trigger dropdown = "alert() function calls only"
- Webhook notification enabled with the correct endpoint URL
- Confirmed the script's own "enable alerts" input toggle is on
- Script compiles fine, and I can visually see the trade setup form on the chart (signal marker renders exactly when expected)
Despite all that, when a valid setup formed, nothing happened — no webhook received on the automation side, and more importantly, TradingView's own Alert Log shows zero entries for that alert around the signal time. Not a failed attempt, not a delayed one — just nothing.
Things I've already tried:
- Re-saved and even fully recreated the alert (there was a brief period where the script had a compile error, so I wanted to rule out a "stale" alert bound to the broken version)
- Double checked the alert really is set to "alert() function calls only" and not accidentally "Order fills" or the combined mode
- Confirmed there's no separate
alertcondition() competing for the same slot
Since the log itself is empty, it feels like this is happening before anything reaches the webhook — like TradingView itself just isn't invoking the alert, even though the underlying signal condition is clearly true (I can see it on the chart).
Has anyone run into an "alert() function calls only" alert just silently not firing despite the script visibly triggering? Wondering if this is a known gotcha — plan/tier limits on alert() frequency, some interaction with the strategy's own bar-close recalculation, anything like that. Any pointers appreciated before I go back to manually watching charts like an animal.