Urgent NIFTY Renko Automation

Заказчик: AI | Опубликовано: 24.01.2026

I trade NIFTY futures directly from a Renko chart on TradingView and now need the entire workflow automated through Pine Script v6, a companion Python bridge, and the Dhan V2.4 API. Here is the exact behaviour I expect: • Key-press handling  F1 must instantly place a Buy order for the 0.70 Δ NIFTY CE, MIS, 2 lots.  F2 must instantly place a Buy order for the 0.70 Δ NIFTY PE, MIS, 2 lots. • Dynamic chart objects  A green line that continually re-anchors itself to the current average futures fill price.  A red stop-loss line that rides 40 points below that average.  A live label pinned on the green line that refreshes tick-by-tick to show three fields:   • current P/L in rupees,   • % change from entry,   • live option delta. Everything above—keypress actions, line updates and the live label—must run hands-free once the script is loaded. Orders go exclusively through Dhan, so use their V2.4 REST/WebSocket stack to keep positions and P/L perfectly in sync with what the label shows on TradingView. Please build, test and deliver: 1. Pine Script v6 that drives the visual layers and broadcasts trade signals. 2. A lightweight Python daemon that listens for those signals, maps them to the correct 0.70 Δ strike, and fires the order via Dhan’s MIS endpoint. 3. Clear setup instructions so I can run the Python side locally and simply paste the Pine code into TradingView. If you already work with Pine v6 + Python + Dhan, this should be straightforward; accuracy and very low latency are the priorities.