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.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.