OPEN-SOURCE SCRIPT
Opening Range Breakout - NQ Dynamic Risk

Found this video talking about first M15 opening candle range breakout:
youtube.com/watch?v=fuTqr5vlPZM
Was curious about the results and wrote a script to backtest. Strategy rules:
1) First 3 M5 candles defines the opening range
2) First M5 candle that closes outside of this range, enter trade
3) SL at halfway of the range + additional 5 points
4) Target 2R
The script is set for NY open at 9:30 with daylight saving etc accounted for.
By default it's set to start taking trades from May 1 2025.
Dynamic position size. Default equity to risk is 1%, so it automatically calculates number of contracts based on entry to SL. Also, this is NQ so contract multiplier is set to 20.
Have fun.
youtube.com/watch?v=fuTqr5vlPZM
Was curious about the results and wrote a script to backtest. Strategy rules:
1) First 3 M5 candles defines the opening range
2) First M5 candle that closes outside of this range, enter trade
3) SL at halfway of the range + additional 5 points
4) Target 2R
The script is set for NY open at 9:30 with daylight saving etc accounted for.
By default it's set to start taking trades from May 1 2025.
Dynamic position size. Default equity to risk is 1%, so it automatically calculates number of contracts based on entry to SL. Also, this is NQ so contract multiplier is set to 20.
Have fun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.