Modified Python Strategy

Job ID: 40237757

Budget: ₹100 – ₹400 INR

I want my intraday index-option opening-range breakout strategy coded end-to-end in Python, wired directly to the Dhan API for both live data and order execution. The logic is simple but must be battle-ready:

• Opening range: the first 5 minutes. Once price breaks the range high or low, the script fires the corresponding trade.
• Three sequential profit targets, each booked automatically.
• Dynamic risk: a fixed-point stop-loss that moves to cost or better once a target is hit.

I already hold a Dhan account and will handle API activation myself, so you can concentrate purely on clean, well-documented code. The script should:

• Authenticate and stream tick data in real time.
• Place, modify and exit orders per the rules above, including partial exits at each target.
• Log every event—entries, exits, rejections—timestamped in a CSV or SQLite file.
• Fail gracefully on network/API hiccups and resume smoothly.

Please deliver a single Python file (extensible modules are fine), a quick-start README, and a short call or screen share to walk me through the setup.