transactionType to close or exit the Order

Hi , Do we have JSON CODE - “transactionType” to close or exit the order

Hi @sngg

I am assuming you are mentioning about Dhan Webhooks for TradingView. Field “transactionType” takes input as B or S for Buy & Sell respectively. Alternatively you can use tradingview functions like “strategy.order.action” or “strategy.order.comment” in Pinescript to place order as pinescript strategy.

To close or exit the open position, use the opposite transaction type.