Skip to content

TradingView webhook recipes

This page is recipe-first on purpose. For the main syntax hubs, start with TradingView webhook format and TradingView order syntax.

ALPHA(BTCUSDT){type=market,side=buy,amount=0.001}
ALPHA(BTCUSDT){type=market,side=sell,amount=0.001}
ALPHA(BTCUSDT){type=market,position=0}
ALPHA(BTCUSDT){type=market,side=sell,amount=50%p,reduceOnly=true}
ALPHA(BTCUSDT){type=market,position=0.003}
ALPHA(BTCUSDT){type=limit,side=buy,amount=0.001,offset=-1%}
ALPHA(BTCUSDT){
type=cancel;
wait(1s);
type=limit,side=buy,amount=0.001,offset=-1%
}
ALPHA(BTCUSDT){
type=market,side=buy,amount=0.001;
wait(3s);
type=limit,position=0,offset=1%,reduceOnly=true
}
ALPHA(BTCUSDT){type=market,side=buy,amount=0.001,tp=1%,sl=0.5%}
  • the token hit the expected connection
  • the bot name matched
  • the symbol resolved correctly
  • the final size was valid
  • the exchange outcome matched the intent

Need exact syntax instead of recipes? Move to TradingView order syntax, or open TradingView webhook examples if you want more copy-ready patterns first.