I have a few questions regarding webhook feature.
Why the 24 hours token validity is recommended for the Webhook URL?
Is there any special advantage with 24 hours validity?
Is there any potential disadvantage or risk with longer validity of the Webhook
Do we need to log into the tradingview trading panel using Dhan credentials
for using webhook feature?
Will it still work even if we shut down our system after submitting the alerts with
Dhan webhook URLs in Tradingview app?
Great to know that you are exploring Dhan Webhooks.
- The reason for recommending 24 hour validity on Webhooks is to ensure that your alerts do not trigger orders post the 24 hour active window. This is applicable for people who use alerts and place order for one day, they might miss out some active alerts in their account which might get triggered the next day without their knowledge, no other reason for this.
- No. Webhooks and Trading Panel work independently. Although if you do want to use TradingView.com for monitoring your positions as well (even for orders placed via Webhooks), then this can work as a great add-on.
- Yes. TradingView has alerts based on clouds which work even when the platform is not opened on any devices. You can read more about it here - About TradingView alerts — TradingView India
Yes, the webhook will remain active in the system till the validity of the URL. Even your alerts set on tradingview.com work in the same way.
Yes, you can create multiple orders with a single Webhook URL itself.
Your orders can be across segments or exchanges and even multiple in number associated with a single webhook URL itself.
Do note that the message displayed when generating new URL clearly mentions that if you create a new URL, then existing alerts will get disabled. As your account is linked to one webhook URL which is in turn linked to many alert generated orders, if you generate a new URL, then existing alerts will not work.
Yes ,So my intention is to place different orders based on different alerts placed at different price points.
The alerts can be on different scripts and the corresponding orders also could be on different scripts.
e,.g I placed a conditional order in MRF Futures based on a particular alert at a particular price point on the MRF Stock. Then I want to place another order in Axisbank Futures based on a different alert on Axis bank stock at a particular price point. Then should I not change the webhook URL for Axis bank Alert for its corresponding order?
Does that mean I should not change the URL for placing every different order in the same script or even on the different script for different alerts?
I noticed that every time I click on manage button on the Webhook URL page the same URL gets populated but the validity always reverts back to 24 hours even if for the previous alert I had used it with 30 days validity.
Should I use the same URL and not try to change it?
Yes, you should use the same URL for all the alerts, no matter which segment or order type it is.
You have mentioned that all this has to be managed from the Tradingview Alert window but even on Tradingview Alert window how to keep track of Expiry of the Webhook URL ?
I mean on the alerts window we do not get to see the expiry date of the URL anywhere.
a) When we revisit the charts on the Tradingview and open those alert configuration windows how do we know that the URL pasted in that notification page is still valid and not expired?
b) How do we know that the Json that is visible in the message window is also valid, active and correct for the order?
c) Is there any connection between the Webhook URL and the Json also?
I mean if we change the webhook URL in the notification page of the Alert window then is it necessary to create a new Json also for the same order that we had previously submitted?