Pinescript editor is not extended to the hosted library we have on tv.dhan.co
In case you want to use your own strategy on TradingView, you can use Dhan to execute your strategy via webhooks provided by Dhan for Free. .
You can read more about this here : Introducing Webhook Alerts : Direct Order Placements on TradingView from Dhan
In case you want to execute basket strategy, then refer this : Now execute your basket orders via webhooks on Trading View.