Skip to main content

Backtester Alerts

Users can get alerted for any action executed by a strategy, from opening positions to closing them. The way alerts work is the same across all the Backtester scripts. The message field in the Alert Messages setting section of each Backtester allows for the strategy to send a custom alert message depending on the action taken by the strategy, if no messages are set the strategy will send default messages. In order for alerts to return custom user set messages the {{strategy.order.alert_message}} should be set on the message field of the Tradingview alert menu.
Backtester (PAC) does not have Exit Long/Short TP/SL alerts, instead only having Exit Long/Short

Alerts Placeholders

Users can use placeholders in the messages set from the Alert Messages setting section to return market data, take profit/stop losses values, chart ticker and timeframe…etc.
In order to function properly, {timenow} requires the strategy to recalculate on everytick.This can be enabled from the strategy settings -> Properties -> RECALCULATEIf not enabled {timenow} will act like {time}.
Example:
New long entry generated at {time} and price {close} on {ticker}{timeframe} with take profit {tp} and stop loss {sl}