I see in the video that the JSON created for webhook has ** transactionType** static. Now if i want to use it for a strategy in tradingview, I would need this to be dynamic formatter provided by tradingview. How do I exit a trade that I have entered into without this being dynamic?
And BTW, great feature. This has pulled me into the Dhan ecosystem. I hope it wins me over.
Hi Pravin Jadhav ji
Good Dhan Platform with best of featuresā¦
I need support in the following.
I have tradingview strategy wth buy and sell orders alert and also exit when opposite trend is startedā¦ during webhook integration, there are json for buy and sell separately, but my strategy is having inbuilt all ordersā¦
can you guide here how to auto trade this stategy.
To make order placement dynamic using webhook and Pine script, you need to alter the json object. For transactionType write {{strategy.order.comment}} and add piece of comment in pine script for Buy & Sell or Entry & Exit signal with syntax B & S.
Also @CHACKIATH, request you to not share your webhook url and secret on public forum. This is like sharing your userid & password of trading account.
@Naman pls enable direct option order placement via webhook using option symbol names (we can construct the symbol name in pine code based on underlying price).
Can you explain how the call buy and put buy basket orders are created and autotrade using webhooks.
How the buy or sell signal is triggered for options using basket ordersā¦and how this can be made dynamic tradingā¦
Got your point. It appears you are generating new webhook URL every time you create an alert. When you do this, all your previous URLs get expired. Request you to use one active url for all the alerts.
But in case i select validity of Webhook URL as one day, then next day i can generate URL right? and
then it will be applicable for fresh strategy trades, right?
Apologies for delayed reply. To trade options via webhook you have to use basket orders. Create two different basket, one with Call Buy & another with Put Buy. For long signals trigger call buy basket & for short signal trigger put buy basket.
Presently I am trading on Dhan in Nifty ATM Options.
I am using webhook and is useful for automated trading ENTRY. But exit is manual presently. I am manually trailing Stop Loss on tv.dhan.co. I want to automate it with alerts on tradingview. Please guide me with syntax to be placed in tradingview alerts to TRAIL STOP LOSS.
I would like to place 10 points SL & 20 points TARGET in Nifty options through tradingview alerts. Please let me know syntax for that as well.
Currently, MCX trade execution facility via webhook is available through basket order only. MCX data feed on tradingview is delayed, hence little challenging to make direct webhook facility on commodity.