Setup

Alert Didn't Run?

The most common reasons why an alert didn't run, and how to find them

It is always recommended to use testnet/sandbox first!

Check the log first

The script itself is often fine. Open View App Log in ProfitView: every alert has an id like [R12], and the line "Received Alert ..." shows when it arrived. Look for these messages:

"Too much time between firing and running of alert!"

The most common cause of a missed signal. Maximum time since alert fired (General Options, default 60 s) drops a signal that reaches ProfitView later than that after TradingView fired it.

  • Why it exists: a stale signal must not open a position at a price that has moved on.
  • When it triggers: TradingView delivers late from time to time, and so do an unstable connection or a busy computer or VPS.
  • What to do: the "slippage" in the "Received Alert" log line shows the actual delay of every alert. Raise the limit to what your strategy tolerates; 0 turns the check off, which isn't recommended for live trading.

"Running of legacy alerts disabled!"

The TradingView message named no existing PV Alert (a typo in the name, wrong parameters), so ProfitView tried to run it as direct syntax, a legacy alert. With Disable legacy alerts (General Options, Legacy Filters) switched on, it is then ignored. Check the name and the parameters, eg. ENTRY(side=long).

Filters

A FILTER: or LEGACY FILTER: warning means a bar, repeat or lock filter of the PV Alert or the General Options held the alert back.

The script ran, but did something else

  • Errors don't stop an alert: after its retries a failed line is skipped and the next one runs. Put err=abort on lines the rest depends on, typically the entry.
  • Stops have a sign: for a long sl=-1% tp=2%, sl=1% would put the stop above the price. Unified: sl=[-]1% tp=[+]2%.
  • A key in a line without an action only works as a default if it's marked Def in Setup: Commands, others (eg. market) are dropped. The editor's syntax check warns about it.
Attention: Always double check that you are using the right syntax/alert!