Webhook Json Required for Strategy trading view strategy in msg box

Dear Community ,

Kindly help to share the JSON code for tradingview alert msg to make place order in dhan webhook .

Hello @rakrom

Welcome to Dhan Community!

You can generate Webhook JSON from Dhan Web, directly as per your order using Webhook Order window. You can read more about it here: Introducing: Webhooks as Order Type on Dhan. Now do Options Trading on TradingView.com

We have to fix strike price of option for json generation. How can we generate json for choosing random strike based on underlying??

Hello @9978442050

Welcome to Dhan community!

You can configure this via Pinescript on tradingview.com directly, if you want to keep strike price as dynamic based on underlying.

Can you share sample code for option strike selection in Treding View??

Hello @9978442050

This will require Pine Script code to automate strike selection via TradingView. We don’t have any snippets with us, maybe someone from community can help you here.