Wait command
What it does
Section titled “What it does”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.
Valid duration examples
Section titled “Valid duration examples”wait(500ms)wait(3s)wait(1m)wait(1h)Why it matters
Section titled “Why it matters”Use wait when your workflow needs a delay between steps.
Example:
- market entry
- short delay
- place follow-up exit order
Example
Section titled “Example”ALPHA(BTCUSDT){ type=market,side=buy,amount=0.001; wait(3s); type=limit,position=0,offset=1%,reduceOnly=true}Alternative parser form
Section titled “Alternative parser form”The parser also supports a duration= form that resolves to a wait command, but the cleanest user-facing syntax is still:
wait(3s)Common mistakes
Section titled “Common mistakes”Forgetting the parentheses
Section titled “Forgetting the parentheses”Use wait(3s), not wait=3s.
Using overly long waits during testing
Section titled “Using overly long waits during testing”Keep early test waits short so you can verify behavior quickly.