Skip to content

Wait command

wait pauses execution between commands in the same signal.

Use TradingView Order Syntax first if you need the full command structure before working through individual command types.

wait(500ms)
wait(3s)
wait(1m)
wait(1h)

Use wait when your workflow needs a delay between steps.

Example:

  • market entry
  • short delay
  • place follow-up exit order
ALPHA(BTCUSDT){
type=market,side=buy,amount=0.001;
wait(3s);
type=limit,position=0,offset=1%,reduceOnly=true
}

The parser also supports a duration= form that resolves to a wait command, but the cleanest user-facing syntax is still:

wait(3s)

Use wait(3s), not wait=3s.

Keep early test waits short so you can verify behavior quickly.