Dhokiya's 0.09 Strategy
Strategy:
- Open 5 Min Chart of Bank Nifty
- Plot ORB High & Low (done)
- Plot Buy & Sell Targets (done)
- Break of ORB High :
- Get ATM strike price of first M5 candle (done)
- Draw line & Label (done)
- Create Corresponding ATM CE Option Name like this: BANKNIFTY250227P49800 (BANKNIFTY-25_02_27-P-49800)
- Fetch CE price of that Strike price
- Take Buy trade on break of High of CE
NOTES:
- `input.time` allows the user to select a timestamp. So the strategy should start executing trades only after the specifed date.
- The strategy function will need to check if the current time is after the start date.
- This close 4950
- if you need to execute logic only after a bar is closed, wrap that code with `if barstate.isconfirmed`
Code: