Use an explicit close action
{"action":"close","ticker":"EURUSD"}
That removes ambiguity and makes testing much easier than relying on placeholders that do not clearly express exits.
When to use strategy.order.alert_message
The current TradingView builder favors {{strategy.order.alert_message}}
as the best quick setup path when your Pine logic already constructs the JSON you
want to send. That is especially useful for exits and more complex alert logic.
How to verify
- Open a small test position.
- Trigger a close alert.
- Confirm the receiver closes and Logs show the close event clearly.
