Hi Dhan Webhook Team, Thanks for explaining how to use webhook. Can you clarify how to do below with webhook alert
Placing the order based on Alert ( Explained in articles)
Placing Stop loss while placing the order in same alert or different alert (Risk: Reward of 1:3)
Placing Take profit while placing the order in same alert or different alert (Risk: Reward of 1:3)
1 Like
@shraddha @Hardik
Hi Dhan Team,
I have a similar concern while using Webhooks via trading view.
Current feature allows placing of Intraday/Normal orders. It does not allow Bracket Orders from the webhook UI panel.
However, I would like to modify the JSON to include boProfit and boStop loss.
How can I do this? Is it possible? Could you please share a sample JSON as to how this could be implemented by customizing the JSON.
Here is a sample JSON
{
“secret”: “ABCDE”,
“alertType”: “multi_leg_order”,
“order_legs”: [
{
“transactionType”: “B”,
“orderType”: “MKT”,
“quantity”: “1”,
“exchange”: “NSE”,
“symbol”: “NIFTY”,
“instrument”: “OPT”,
“productType”: “I”,
“sort_order”: “1”,
“price”: “0”,
“option_type”: “CE”,
“strike_price”: “25350.0”,
“expiry_date”: “2024-09-19”
}
]
}
Can I add
“boProfitValue”:“10”,
“boStopLossValue”:“5”,
to the above JSON and expect it to work like a bracket Order?
@Naman @Anirudha
Hardik
September 18, 2024, 1:11pm
4
Hello @Dev3trade
Welcome to MadeForTrade community!
No, BO order is not allowed via Webhooks. You can place similar alert simultaneously to place for Stop Loss and Take Profit orders.
@shivdeep you will have to configure this either manually or via pinescript to trigger all these different orders.
1 Like