Backtest Nifty Straddle Strategy
Budget: ₹600 – ₹1,500 INR
I need a clean, reproducible backtest for my Nifty straddle strategy. Each trading day the system must open the position at a specific, user-defined time, apply a percentage-based stop loss to both legs, and automatically re-enter once the stop is hit—always on the same day, never carrying positions overnight.
Key logic to capture
• Entry: one straddle on the nearest weekly Nifty options, placed exactly at the scheduled daily time I supply.
• Risk control: single percentage stop loss that exits the whole straddle; the percentage should be an external parameter so I can optimise it later.
• Re-entry: if the stop is triggered before a fixed cut-off time, the script should immediately open a fresh straddle under the same rules. This cycle can repeat until the market close.
• Exit: square off all open positions at the official market close, no exceptions.
What I expect from you
1. Well-commented code (Python, AFL, Pine or any mainstream back-testing engine you prefer) that I can rerun and tweak on my side.
2. A concise performance report covering at least the last three years of Nifty data, showing cumulative P&L, max drawdown, win rate, and number of re-entries per day.
3. Clear instructions on how to change parameters such as entry time, stop-loss percentage, and re-entry cut-off.
Acceptance criteria
• Results replicate on my machine with the same data set.
• All parameters adjustable in a single place.
• No overnight positions in the trade log.
Let me know which platform you plan to use and the data source you recommend; if it is paid or requires an API key, flag it upfront so there are no surprises. I’m ready to start as soon as you are.
Key logic to capture
• Entry: one straddle on the nearest weekly Nifty options, placed exactly at the scheduled daily time I supply.
• Risk control: single percentage stop loss that exits the whole straddle; the percentage should be an external parameter so I can optimise it later.
• Re-entry: if the stop is triggered before a fixed cut-off time, the script should immediately open a fresh straddle under the same rules. This cycle can repeat until the market close.
• Exit: square off all open positions at the official market close, no exceptions.
What I expect from you
1. Well-commented code (Python, AFL, Pine or any mainstream back-testing engine you prefer) that I can rerun and tweak on my side.
2. A concise performance report covering at least the last three years of Nifty data, showing cumulative P&L, max drawdown, win rate, and number of re-entries per day.
3. Clear instructions on how to change parameters such as entry time, stop-loss percentage, and re-entry cut-off.
Acceptance criteria
• Results replicate on my machine with the same data set.
• All parameters adjustable in a single place.
• No overnight positions in the trade log.
Let me know which platform you plan to use and the data source you recommend; if it is paid or requires an API key, flag it upfront so there are no surprises. I’m ready to start as soon as you are.
Related categories:
PHP
JavaScript
Python
Software Architecture
Metatrader
Financial Analysis
Pine Script
Backtesting