You are here: home » pinescript » strategies » dhokiya_s_0.09
Translations of this page:
  • en

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:

  1. `input.time` allows the user to select a timestamp. So the strategy should start executing trades only after the specifed date.
  2. The strategy function will need to check if the current time is after the start date.
  3. This close 4950
  4. if you need to execute logic only after a bar is closed, wrap that code with `if barstate.isconfirmed`

Code:

Edit this page
Back to top