Hello @elhigh
This is a perfect case where we use multicommands. Each command will start on a new line as shown below:
Close BTCUSDT A=USDM
{{strategy.order.action}} BTCUSDT Q=50% A=USDM
For more on this, see this article: Automate TradingView Alerts to Binance USDM
Tash