PROTECTED SOURCE SCRIPT
Opening Range Breakout & Targets [Strategy] (Fixed + Alerts)

This strategy backtests a classic Opening Range Breakout approach using a configurable opening range window (time-based OR or custom session). Once the opening range is completed, the strategy waits for price to break above ORH (Opening Range High) or below ORL (Opening Range Low) and enters in the direction of the breakout.
Targets are derived directly from the opening range width:
OR Width = ORH − ORL
Target Step = OR Width × Target %
Take-profit is placed at the selected Target # (T1, T2, etc.)
An optional Daily Bias filter can be enabled to reduce false breakouts by comparing today’s opening range midpoint (ORM) to the previous session’s ORM. When bias is active, breakouts against the bias can require a stronger confirmation (break beyond the first target step).
Risk management is configurable via multiple stop options:
Stop at Opposite OR
Stop at OR Midpoint
Stop at 1× Target Step
Or disable stops for custom management
Includes support for:
Long/Short/Both modes
One trade per session option
Optional exit on opposite breakout
Separate alert conditions (when used with the companion indicator)
Note: This is a backtesting tool. Always validate results across symbols/timeframes and account for slippage/commissions before live use.
Targets are derived directly from the opening range width:
OR Width = ORH − ORL
Target Step = OR Width × Target %
Take-profit is placed at the selected Target # (T1, T2, etc.)
An optional Daily Bias filter can be enabled to reduce false breakouts by comparing today’s opening range midpoint (ORM) to the previous session’s ORM. When bias is active, breakouts against the bias can require a stronger confirmation (break beyond the first target step).
Risk management is configurable via multiple stop options:
Stop at Opposite OR
Stop at OR Midpoint
Stop at 1× Target Step
Or disable stops for custom management
Includes support for:
Long/Short/Both modes
One trade per session option
Optional exit on opposite breakout
Separate alert conditions (when used with the companion indicator)
Note: This is a backtesting tool. Always validate results across symbols/timeframes and account for slippage/commissions before live use.
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 ただし、制限なく自由に使用できます – 詳細はこちらでご確認ください。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 ただし、制限なく自由に使用できます – 詳細はこちらでご確認ください。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。