Creating Custom Pinescript Strategies

Hi Hardik,
I wanted to ask that , if we create a custom pinescript strategy how can i modify the json string to suit my strategy requirements.

JSON string has to be in the format that Dhan specify. Within that format u r strategy specific values can be plugged in using pine script string manipulation methods.

Please go through this doc - https://web.dhan.co/assets/Pdf/Webhooks.pdf

1 Like

Hey, is there any tutorial on how to modify the Dhan scripts according to our own custom pinescript?

Hello @pyrasp

There isn’t any tutorial on customising pinescript, as each strategy will have different parameters that might need to be modified to meet JSON params.

You can refer to this, created by @Shylaja here: Introducing: Webhooks as Order Type on Dhan. Now do Options Trading on TradingView.com - #78 by Shylaja.

Haven’t tried myself but do let us all know in the community if this helps!