Range Commander ORB [JOAT]An Opening Range Breakout command center: captures the opening range, projects measured-move targets, and tracks the breakout live.
◆ WHAT IT IS
The opening range — the high and low of the first minutes of a session — is one of the most-watched intraday reference structures. Range Commander captures it automatically, locks it into a clean box, and builds a full breakout and target framework around it. It is a context and structure tool: it maps the range, marks the breaks, and tracks the targets — it does not fire endless buy/sell arrows.
This is 100% original code, written from scratch. It does not reuse any other author's ORB script.
◆ HOW IT WORKS
1. Range capture. During your chosen session window (default 09:30–09:45 New York, fully adjustable with a timezone selector), the indicator records the running high and low into a live box.
2. Lock and project. When the window closes, the range locks. Its height becomes 1R , and the tool projects measured-move target rails at ±0.5R, ±1R and ±1.5R (all configurable), plus the range midline.
3. Breakout logic. A breakout is registered on either a close beyond the range (cleaner) or a wick beyond the range (faster) — your choice. An option stamps only the first break per side per day to keep the chart immaculate. A minimum range-size filter (in ATR) lets you skip dead, low-range opens.
4. Retests and targets. After a break, the first return to the broken edge is marked with a subtle diamond, and each measured-move target is tracked as hit or unhit in the dashboard.
◆ WHAT YOU SEE
• A precision opening-range box with high/low rails and optional midline
• Measured-move target rails at ±0.5R / ±1R / ±1.5R
• Minimal breakout stamps and retest diamonds — no arrow spam
• A resizable command dashboard with breakout status, OR high/low with intact-or-broken state, range height, range-versus-ATR quality (tight / normal / wide), which targets have printed, and retest status
◆ HOW TO USE IT
• Set the session window to match your instrument and desired ORB length (e.g. 0930-1000 for a 30-minute range).
• A wide range vs. ATR often signals a more energetic session; a tight range warns breakouts may be prone to failure.
• Use the ±R target rails as objective, pre-defined profit references and the opposite range edge as a natural invalidation.
• Designed for intraday timeframes . On daily and higher charts the session concept does not apply, and the dashboard will say so.
◆ NOTES & LIMITATIONS
Use on standard candlestick charts and intraday timeframes. Opening-range breakouts fail as well as follow through — the tool maps structure and targets, it is not financial advice and cannot guarantee a break will run. Combine it with your own analysis and risk management.
— made with passion by officialjackofalltrade
Indicator

ORB Laboratory v1.0.12ORB LABORATORY v1.0.12
Opening Range Breakout Research & Backtesting Framework
ORB Laboratory is a modular Opening Range Breakout strategy designed for systematic research, backtesting, robustness testing, and experimentation across different markets, sessions, symbols, timeframes, execution assumptions, and ORB methodologies.
This is not a single hard-coded ORB strategy.
The purpose of ORB Laboratory is to provide a flexible environment where traders and researchers can isolate individual variables, compare different approaches to opening-range behavior, and test whether an idea remains viable under different conditions rather than relying on one fixed set of rules.
The script includes multiple ORB sessions, seven entry models, configurable breakout buffers, several confirmation methods, market-condition filters, multiple stop-loss and profit-target models, position sizing, trade-frequency controls, execution modeling, breakeven and trailing-stop management, forced exits, and visual/debugging tools.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. MULTI-SESSION ORB ENGINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORB Laboratory supports up to three independent Opening Range windows:
• ORB 1
• ORB 2
• ORB 3
Each ORB can be configured independently with:
• Enable / Disable
• Custom session name
• Starting hour
• Starting minute
• ORB duration in minutes
• Long trades enabled / disabled
• Short trades enabled / disabled
This makes it possible to research multiple market opens or intraday expansion periods within the same strategy.
Examples could include:
• New York open
• London open
• Secondary morning range
• Later-session expansion
• Crypto-specific session windows
• Custom event-based time windows
ORB lengths can range from very short opening ranges to much longer windows.
The strategy continuously tracks the highest high and lowest low while an ORB is forming.
When the ORB finishes, the final:
• ORB High
• ORB Low
• ORB Midpoint
are stored and projected forward on the chart.
The ORB is finalized on the close of the final range-building bar so resting breakout orders can be prepared before the first post-range bar begins.
The implementation also supports one-bar ORBs correctly.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2. STRATEGY TIME ZONE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The entire strategy uses a configurable strategy time zone.
This allows ORB sessions, entry cutoffs, forced closes, weekdays, and other time-sensitive logic to remain anchored to the desired market time regardless of the exchange or chart time zone.
Default:
America/New_York
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3. DIRECTION CONTROL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Global direction can be set to:
• Both
• Long Only
• Short Only
Each individual ORB also has independent Long and Short permissions.
This means direction can be controlled both globally and per session.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4. ENTRY ALLOWANCE / TRADE FREQUENCY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORB Laboratory includes several trade-frequency modes:
ONE TOTAL
Only one entry may be taken from an ORB.
ONCE PER DIRECTION
Allows one long and one short opportunity per ORB.
MAXIMUM NUMBER
Allows a configurable maximum number of entries per ORB.
UNLIMITED
Removes the per-ORB entry restriction while remaining subject to other global limits.
Additional controls include:
• Maximum entries per ORB
• Maximum entries per day
• Stop trading after first winning trade
• Stop trading after first losing trade
• Maximum planned daily risk
These tools make it possible to research whether an ORB performs better as a single-shot setup, one trade per direction, or as a multi-entry strategy.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5. ENTRY MODEL — BREAKOUT (TOUCH)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Breakout (Touch) is designed to model a traditional stop-order breakout.
After the ORB is complete, resting stop entries are prepared at:
Long:
ORB High + Long Breakout Buffer
Short:
ORB Low - Short Breakout Buffer
The entry can therefore occur when price touches the breakout threshold rather than waiting for a candle close.
The strategy uses resting stop orders for this mode.
Long and short breakout orders are placed into an OCA cancellation group.
When one side fills, competing unfilled breakout orders are cancelled.
This allows the strategy to model a two-sided opening-range breakout where both directions may initially be armed but only the triggered side remains active.
Unfilled Breakout (Touch) orders are also cancelled when the configured entry cutoff is reached.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
6. ENTRY MODEL — BREAKOUT (CLOSE)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Breakout (Close) requires confirmation from the candle close.
Long:
Candle closes above the ORB High + Long Breakout Buffer.
Short:
Candle closes below the ORB Low - Short Breakout Buffer.
This model is useful for comparing immediate touch-based breakout execution against the additional confirmation of a completed candle outside the range.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
7. ENTRY MODEL — BREAK + RETEST ORB
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This model waits for a confirmed breakout and then looks for price to retest the broken ORB boundary.
After a breakout, the retest can be confirmed using one of three methods:
TOUCH ONLY
Price only needs to return to the broken ORB boundary.
CLOSE OUTSIDE
Price must retest the boundary and close back on the breakout side.
REJECTION CANDLE
Price must retest the boundary and produce directional rejection.
For a bullish retest, the candle must interact with the ORB High and confirm back above it.
For a bearish retest, the candle must interact with the ORB Low and confirm back below it.
Additional controls include:
• Retest expiry in bars
• Maximum extension before a retest is considered too late
Once a valid retest is consumed, the retest setup is disarmed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
8. ENTRY MODEL — BREAK + RETEST FVG
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORB Laboratory includes directional Fair Value Gap detection following an ORB breakout.
A bullish FVG is detected when a three-candle imbalance exists with the current low above the high from two bars earlier.
A bearish FVG is detected when the current high is below the low from two bars earlier.
The minimum FVG size can be defined as an ATR multiple.
Optional logic can require the FVG to remain outside the ORB.
Three FVG entry depths are available:
NEAR EDGE
Uses the first edge of the FVG encountered on the retracement.
MIDPOINT
Uses the 50% level of the FVG.
FULL FILL
Requires price to reach the opposite edge of the FVG.
Additional controls include:
• Minimum FVG size as ATR ×
• FVG must remain outside ORB
• FVG expiry in bars
If price reaches the selected FVG level while the setup is valid, an entry is submitted in the direction of the original breakout.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
9. ENTRY MODEL — SWEEP REVERSAL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Sweep Reversal is designed to research failed breaks of the opening range.
A high sweep occurs when price trades above:
ORB High + Long Breakout Buffer
but then closes back below the ORB High.
A low sweep occurs when price trades below:
ORB Low - Short Breakout Buffer
but then closes back above the ORB Low.
Two confirmation modes are available:
CLOSE BACK INSIDE
The breakout only needs to fail and close back inside the ORB.
REJECTION CANDLE
The failed breakout must also produce a directional rejection candle.
A failed high produces a potential short setup.
A failed low produces a potential long setup.
Sweep trades are treated as fade/reversal trades and can use dedicated fade-target logic.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
10. ENTRY MODEL — FADE FIRST BREAKOUT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This model records which side of the ORB breaks first.
The strategy permanently tracks:
• First breakout direction
• First breakout bar
• Maximum extension reached by that breakout
If the first breakout subsequently fails and closes back inside the ORB within the configured failure window, the strategy can fade that failed move.
First high breakout fails:
Potential short.
First low breakout fails:
Potential long.
The model also includes a Maximum Extension Before Retest/Fade setting.
This prevents an extremely extended move from later being treated as a normal failed breakout simply because price eventually returns to the range.
A configurable First-Break Failure Timeout controls how many bars the setup remains eligible.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
11. ENTRY MODEL — FIRST-BREAK DECISION TREE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The First-Break Decision Tree is a hybrid model that evaluates what happens after the first ORB break.
Instead of automatically assuming that the first breakout should either be followed or faded, the script waits to determine whether the move confirms continuation or fails.
The first breakout direction and extreme are recorded.
Continuation can then be defined as:
TOUCH
Price reaches the breakout threshold.
CLOSE OUTSIDE
Price closes outside the ORB in the breakout direction.
RETEST HOLDS
Price retests the broken boundary and closes back on the breakout side.
If continuation confirms, the strategy trades in the direction of the original breakout.
If the first breakout instead fails and closes back inside the ORB during the allowed failure window, the strategy can reverse and trade against the failed breakout.
This allows a single model to test both:
• Breakout continuation
• Failed-break reversal
using the first interaction with the opening range as the decision point.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
12. BREAKOUT BUFFER SYSTEM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Long and short breakout buffers are independently configurable.
Buffers can be expressed using:
TICKS
Buffer is based on the symbol's minimum tick size.
ORB %
Buffer is calculated as a percentage of the completed ORB range.
ATR
Buffer is calculated as a multiple of ATR.
This allows breakout confirmation to be normalized in several different ways.
For example, researchers can test whether a fixed one-tick breakout behaves differently from a volatility-adjusted or range-adjusted breakout.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
13. BID / ASK TRIGGER MODEL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Breakout (Touch) includes an optional bid/ask trigger-timing model.
Application can be set to:
• Off
• Longs Only
• Shorts Only
• Both
Spread can be entered as:
• Ticks
• Absolute price
The model allows the visible PulseWire trigger to be shifted relative to the intended execution level.
For example, on a bid-based chart, a long ask-trigger may occur while the visible bid remains one spread below the intended buy price.
The model therefore allows researchers to approximate the difference between:
• Structural/intended execution level
• Visible chart trigger level
IMPORTANT:
PulseWire Strategy Tester still records the chart-trigger price as the actual historical fill.
Because of this limitation, built-in Strategy Tester P&L remains an approximation when bid/ask trigger modeling is enabled.
The feature is intended for execution research and timing approximation, not as a claim of perfect historical bid/ask reconstruction.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
14. BID / ASK STOP MODEL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORB Laboratory separately includes a spread model for stop-loss triggering.
Application options include:
• Off
• Long Stops Only
• Short Stops Only
• Both
This allows the displayed PulseWire stop trigger to be shifted relative to the structural stop by the modeled spread.
The structural stop itself is still retained internally for calculations when desired.
This makes the entry-side spread assumption and stop-side spread assumption independently configurable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
15. ENTRY CALCULATION PRICE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
When spread modeling is active, Fixed-R calculations can use either:
CORRECTED ENTRY
Uses the intended execution level.
CHART TRIGGER
Uses the spread-shifted PulseWire trigger.
This setting affects Fixed-R target calculations.
It does not independently change the actual submitted quantity or order execution.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
16. STOP CALCULATION PRICE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Risk calculations can use either:
CORRECTED STOP
Uses the modeled spread-adjusted stop.
ORIGINAL STOP
Uses the underlying structural stop.
This selection can affect:
• Position sizing
• Original risk calculation
• Fixed-R target calculations
This allows researchers to separate structural price levels from the levels used to approximate executable stop behavior.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
17. EMA FILTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
An optional EMA directional filter is included.
The EMA length is configurable.
Available rules:
PRICE VS EMA
Long:
Price must be above the EMA.
Short:
Price must be below the EMA.
EMA SLOPE
Long:
EMA must be rising.
Short:
EMA must be falling.
BOTH
Requires both the appropriate price relationship and EMA slope.
When enabled, the EMA is also plotted on the chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
18. VWAP FILTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
An optional VWAP directional filter is available.
Rules include:
PRICE VS VWAP
Long:
Price above VWAP.
Short:
Price below VWAP.
VWAP SLOPE
Long:
VWAP rising.
Short:
VWAP falling.
BOTH
Requires both conditions.
When enabled, VWAP is plotted directly on the chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
19. PREVIOUS CLOSE FILTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The script retrieves the confirmed previous daily close without lookahead.
Two filtering modes are available:
PRICE VS PREVIOUS CLOSE
Long:
Current price must be above the previous close.
Short:
Current price must be below the previous close.
ORB VS PREVIOUS CLOSE
Long:
The entire ORB must be above the previous close.
Short:
The entire ORB must be below the previous close.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
20. ORB RANGE FILTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A configurable minimum and maximum ORB range filter is included.
The ORB size can be measured in:
• Ticks
• ATR multiples
• Percentage of price
This allows researchers to reject ranges that are considered:
• Too small
• Too large
• Abnormally compressed
• Abnormally volatile
It also makes range thresholds more portable across different symbols and volatility environments.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
21. RELATIVE VOLUME FILTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
An optional relative-volume condition compares current volume with a moving average of volume.
Controls include:
• Volume average length
• Minimum relative-volume multiplier
A trade is permitted only when current volume meets or exceeds the selected multiple of average volume.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
22. ADX FILTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
An optional ADX filter is included.
Controls:
• ADX length
• Minimum ADX value
This can be used to research whether ORB setups behave differently during stronger or weaker directional conditions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
23. MAXIMUM BREAKOUT CANDLE SIZE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The strategy can reject entry conditions when the current candle becomes excessively large relative to ATR.
Maximum breakout candle size is expressed as:
ATR × multiplier
This can be used to study whether chasing unusually extended breakout candles damages expectancy.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
24. STOP LOSS — CANDLE EXTREME
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
For long trades:
Stop is placed below the relevant candle low, with an optional tick buffer.
For short trades:
Stop is placed above the relevant candle high, with an optional tick buffer.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
25. STOP LOSS — ATR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Places the stop a configurable ATR distance from the entry/reference price.
Long:
Entry/reference price - ATR × multiplier
Short:
Entry/reference price + ATR × multiplier
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
26. STOP LOSS — ORB MIDPOINT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Uses the midpoint between the ORB High and ORB Low as the structural stop.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
27. STOP LOSS — ORB OPPOSITE RANGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Long:
Stop below the ORB Low.
Short:
Stop above the ORB High.
An optional stop buffer in ticks can be applied beyond the opposite boundary.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
28. STOP LOSS — BREAKOUT EXTREME
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Uses the relevant breakout extreme as the stop reference, with the optional stop buffer applied beyond that level.
This is useful for retest, failure, sweep, and other models where the breakout structure itself provides the invalidation point.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
29. STOP LOSS — ORB PERCENTAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Stop distance is calculated as a configurable percentage of the completed ORB range.
This allows the stop distance to scale directly with the size of the opening range.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
30. STOP LOSS — FVG INVALIDATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Uses the relevant FVG boundary as the stop reference.
Long:
Below the FVG bottom.
Short:
Above the FVG top.
The configured stop buffer may also be applied.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
31. STOP BUFFER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A configurable stop buffer can be added in ticks.
This allows the structural stop to sit beyond the selected invalidation level rather than directly on it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
32. PROFIT TARGET — FIXED R
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Profit target is calculated as a multiple of the original trade risk.
Long:
Entry + Risk × R Multiple
Short:
Entry - Risk × R Multiple
The R multiple is fully configurable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
33. PROFIT TARGET — ORB PROJECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Projects a configurable multiple of the complete ORB range beyond the breakout boundary.
Long:
ORB High + ORB Range × multiplier
Short:
ORB Low - ORB Range × multiplier
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
34. PROFIT TARGET — ATR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Sets the target a configurable ATR multiple away from entry.
Long:
Entry + ATR × multiplier
Short:
Entry - ATR × multiplier
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
35. PROFIT TARGET — ORB MIDPOINT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Uses the ORB midpoint as the target.
This can be useful when researching reversal or mean-reversion behavior.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
36. PROFIT TARGET — ORB OPPOSITE RANGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Targets the opposite ORB boundary.
This is especially useful for studying moves that rotate from one side of the range toward the other.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
37. DEDICATED FADE TARGETS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Fade/reversal entries can use their own target preference:
• Midpoint
• Opposite Boundary
• Fixed R
This allows continuation trades and fade trades to be researched using different exit logic.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
38. POSITION SIZING — FIXED USD RISK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Position size can be calculated so the planned loss between entry and stop corresponds to a fixed dollar amount.
The script calculates:
• Entry-to-stop distance
• Cash risk per unit
• Required quantity
and then rounds quantity according to the configured quantity step.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
39. POSITION SIZING — RISK % OF EQUITY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Position size can dynamically scale with strategy equity.
The selected percentage of current equity is divided by the calculated cash risk per unit to determine quantity.
This allows compounding-based position sizing to be researched.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
40. POSITION SIZING — FIXED QUANTITY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A fixed position size can be used instead of risk-based sizing.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
41. QUANTITY CONSTRAINTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Position sizing supports:
• Quantity step
• Minimum quantity
• Maximum quantity
Calculated quantity is stepped downward to the permitted increment and then constrained within the configured minimum and maximum.
This makes sizing adaptable to instruments with different contract or quantity requirements.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
42. MAXIMUM DAILY PLANNED RISK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
An optional daily planned-risk ceiling can prevent new entries when another planned trade would push total daily risk above the configured limit.
A value of zero disables this restriction.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
43. STOP AFTER FIRST WIN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
When enabled, the strategy prevents further entries after the first profitable closed trade of the day.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
44. STOP AFTER FIRST LOSS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
When enabled, the strategy prevents further entries after the first losing closed trade of the day.
These two controls can be used independently to study daily stopping rules.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
45. ENTRY CUTOFF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A configurable time prevents new entries after a chosen hour and minute.
For Breakout (Touch), any remaining unfilled resting breakout orders are cancelled when the cutoff is reached.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
46. FORCE CLOSE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
An optional forced-close time exits any remaining open position at or after the configured time.
This is useful for strictly intraday strategies that should not carry positions beyond a session boundary.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
47. WEEKDAY FILTERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Every day of the week can be independently enabled or disabled:
• Monday
• Tuesday
• Wednesday
• Thursday
• Friday
• Saturday
• Sunday
This allows weekday effects to be researched without modifying the strategy code.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
48. BREAKEVEN MANAGEMENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
An optional breakeven system can move the active stop after price reaches a configurable R multiple.
Controls:
• Breakeven activation R
• Breakeven offset in ticks
For a long position, the stop can move to entry plus the selected offset.
For a short position, the stop can move to entry minus the selected offset.
The stop is only tightened; the logic does not intentionally loosen an existing stop.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
49. BAR-CLOSE ATR TRAILING STOP
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
An optional ATR trailing system activates after the trade reaches a configurable R threshold.
The strategy tracks the best confirmed close reached during the trade.
After activation:
Long:
Trail candidate = Best Close - Entry ATR × Trail Multiplier
Short:
Trail candidate = Best Close + Entry ATR × Trail Multiplier
The stop only ratchets in the favorable direction.
The trailing logic operates on confirmed bars.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
50. TIME-BASED EXIT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Positions can optionally be closed after a specified number of bars.
Setting the value to zero disables the time exit.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
51. ONE ACTIVE POSITION / NO PYRAMIDING
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The strategy is configured with pyramiding disabled.
New setups also require the strategy to be flat before entry.
This keeps the framework focused on one active position at a time rather than stacking multiple simultaneous positions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
52. OCA BREAKOUT ORDER MANAGEMENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Breakout (Touch) orders use One-Cancels-All behavior.
When one resting breakout order fills, competing unfilled touch orders are cancelled.
The strategy then records the filled ORB, direction, stop, target, entry ATR, and original risk for active position management.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
53. ORB VISUALIZATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Optional ORB boxes display the opening-range construction directly on the chart.
Once complete, the script extends:
• ORB High
• ORB Low
• Optional ORB Midpoint
forward on the chart.
This allows the strategy logic to be inspected visually rather than only through Strategy Tester results.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
54. SIGNAL LABELS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Optional labels identify strategy entries and their originating logic.
Examples include:
• Breakout Touch Fill
• Breakout Close
• ORB Retest
• FVG Retest
• High Sweep
• Low Sweep
• Fade First High Break
• Fade First Low Break
• Decision: Continuation
• Decision: Failed High
• Decision: Failed Low
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
55. BLOCKED-REASON DEBUGGING
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Optional debugging labels can show why an otherwise evaluated setup was blocked.
Possible reasons include:
• Direction disabled
• Range filter
• Entry / daily limit
• Bias / condition filter
• Other blocked condition
This feature is designed to make strategy research easier by showing not only where entries occurred, but also why expected entries did not occur.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
56. ACTIVE STOP & TARGET PLOTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
While a position is open, the strategy can display:
• Active Stop
• Active Target
directly on the chart.
Stops dynamically reflect breakeven or trailing-stop adjustments when those systems are active.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
57. RESEARCH DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
An optional dashboard displays current strategy information including:
• Selected Entry Model
• Daily Entries vs Maximum
• Planned Daily Risk
• EMA Bias
• VWAP Bias
• Previous Daily Close
• Current Position: Long / Short / Flat
• Entry Cutoff Time
The dashboard provides a compact view of the currently active configuration and state.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
58. PREVIOUS DAILY CLOSE WITHOUT LOOKAHEAD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The previous-close feature retrieves confirmed daily data using lookahead disabled and then references the prior confirmed daily close.
This avoids intentionally using future daily information in the previous-close filter.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
59. RESEARCH-FIRST DESIGN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORB Laboratory is intentionally modular.
Many settings are not intended to be enabled simultaneously.
The purpose is to allow individual hypotheses to be isolated.
Examples:
• Does Touch outperform Close confirmation?
• Does requiring a retest improve expectancy?
• Are failed first breaks more useful as fades?
• Does the ORB midpoint outperform an ATR stop?
• Does an EMA or VWAP filter improve results?
• Are very small or very large ORBs less effective?
• Does a breakout buffer improve robustness?
• Does performance survive different stop models?
• Does Fixed-R outperform range projection?
• How sensitive are results to spread assumptions?
• How does limiting entries affect drawdown?
• Do certain weekdays behave differently?
• Does breakeven improve or damage expectancy?
The framework is designed to answer those questions with data rather than intuition.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
IMPORTANT BACKTESTING NOTES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORB Laboratory is a research and backtesting tool.
Historical results can change significantly based on:
• Symbol
• Exchange / broker data feed
• Timeframe
• ORB session
• ORB length
• Entry model
• Breakout buffer
• Stop model
• Target model
• Position sizing
• Spread assumptions
• Commission
• Slippage
• Filters
• Test period
• Market regime
Different data feeds can produce different highs and lows and therefore different ORB boundaries, triggers, stops, targets, and trade sequences.
Results from one feed should not be assumed to reproduce another feed trade-for-trade.
The optional bid/ask modeling system is an approximation built around PulseWire's historical-chart limitations.
PulseWire may still report the chart trigger as the historical fill even when the strategy is using a corrected/intended price internally for risk or target calculations.
Users should configure PulseWire's Strategy Properties appropriately for the instrument and execution assumptions being researched, including commissions and any additional slippage assumptions.
No backtest guarantees future results.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INTENDED USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORB Laboratory is intended for:
• Strategy research
• Backtesting
• Robustness testing
• Parameter sensitivity testing
• Comparing ORB entry models
• Comparing stop and target logic
• Studying opening-range behavior
• Execution-model research
• Market and data-feed comparison
• Educational experimentation
It is not intended to provide financial advice, guaranteed signals, or guaranteed profitability.
A profitable historical configuration may fail in future market conditions.
Users should independently validate any configuration before considering live execution.
Build the range.
Define the rules.
Stress the assumptions.
Test the edge. Strategy

Indicator

Indicator

Zero Noise Opening RangePure structure. Zero noise.
The opening range, outlined. Nothing else.
What it does
Sessions: New York (09:30 ET), London (08:00 UK), Asia (09:00 Tokyo) — one, all three, or a custom open time and timezone. Each session is tracked independently.
Range length: the first 5m, 15m, 30m, or 1h of the open, or a custom length.
Extend Until: Break Confirmation (default) freezes the range when a candle of your confirmation timeframe (1m–30m) closes outside it. Closed candles only — wicks don't count, nothing repaints. Session End runs the range to the close regardless of breaks.
Every range ends at its market's close (NY 16:00 ET, London 16:30 UK, Tokyo 15:30 JST).
Broken ranges grey out (optional), so live levels stay obvious.
Works on any intraday chart up to 1h. Above the range length, the range is rebuilt from 1-minute data for exact alignment.
What it doesn't do
No signals, no alerts, no arrows. An opening range is context. The trade is yours.
Settings
Session: New York / London / Asia (Tokyo) / All 3 / Custom (default: All 3)
Opening range: 5m / 15m / 30m / 1h / custom minutes
Break confirmation candle: 1m to 30m (default 5m)
Midline, fill, grey-out, tags, days kept, watermark — all optional
Futures, stocks, and FX. A notice panel flags any invalid setting.
For informational and educational purposes only — not financial advice. Trading involves substantial risk of loss; past performance does not guarantee future results. Indicator

Strategy

Opening Range Breakout Session Strategy [JOAT]Opening Range Breakout Session Strategy
Locks the opening range of your session, then trades disciplined, capped breakouts beyond it with fully framed risk.
What it is
The first minutes of a session set the day's battle lines. The opening range — the high and low forged during that early window — is where overnight orders, gap fills and early positioning collide, and price leaving that range tends to keep going. This indicator builds the opening range objectively, trades confirmed breakouts from it, and enforces the discipline that makes the approach workable: a session filter and a hard daily trade cap. It is an original implementation of the widely-used opening-range-breakout concept.
How it works
• Opening range — during a user-defined opening window (09:30–10:00 by default, in your chosen timezone) the tool records the high and low, then locks them as the reference range and draws a clean box with labelled ORH and ORL levels.
• Session and daily reset — signals are only allowed inside a separate trade-session window, and the range clears cleanly on each new day using a real day-change test, so nothing carries over stale.
• Breakout logic — a Buy fires on a confirmed close above the range high plus a small ATR buffer; a Sell on a confirmed close below the range low minus the buffer. The buffer filters marginal pokes through the edge.
• Discipline — a hard cap of N trades per day plus a minimum-bar spacing control prevent the range edges from generating repeated signals as price oscillates around them.
Trade framing
Each signal projects a red risk box and a green reward box. The stop is either the opposite opening-range edge (structure-based, the default) or an ATR distance, and the three targets ladder out in R multiples with labelled entry, stop and take-profit prices. Extension levels at 1R and 2R from the range edges are also projected as context for where a breakout may travel.
The dashboard
An adjustable session ticket shows the current phase (pre-open, opening, session or locked), the range size, the bias relative to the range, a breakout-extension meter, the trades used against the daily cap, the active signal, and a live first-target-before-stop tally from closed bars only.
How to use it
• Set the opening window, trade session and timezone to match your market (index or futures cash open, an FX session, or a crypto day boundary).
• Wait for the range to lock, then take confirmed breakouts; use the opposite edge as your invalidation and the extension levels as context.
• Respect the daily cap — the discipline is part of the method, not an afterthought.
Settings
Opening-range and trade-session windows, timezone, ATR length, stop mode and multiplier, breakout buffer, target R multiples, maximum trades per day, plus full visual and dashboard controls.
Originality and usefulness
Opening-range breakout is a public concept; the contribution here is the complete, disciplined implementation — objective range locking, a strict session and daily-reset model, buffered confirmed-close breakouts, structure-based stops at the opposite edge, and integrated non-repainting trade framing — explained so each control's purpose is clear.
Notes and limitations
• Range-bound sessions produce whipsaws around the edges; the buffer and daily cap reduce but do not remove this.
• Breakouts fail regularly — the opposite-edge stop and R-based targets exist precisely for that reason.
• Session settings must match the instrument, or the range will be measured at the wrong time.
• The win tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
Indicator

ORB & Session Liquidity Model [JOAT]ORB and Session Liquidity Model
Builds the opening range for your chosen session, maps the liquidity around it, and signals breakouts with session-aware trade control.
What it is
The first minutes of a session set a reference range that the rest of the session repeatedly reacts to. This indicator defines that opening range, tracks the liquidity sitting above and below it, and signals confirmed breakouts — with session timing, a daily trade cap and full trade framing built in. It is an original session-driven model, not a generic breakout line.
How it works
• Opening range — during a user-defined opening window (for example the first N minutes of your session), the tool records the high and low. Once the window closes, that range is locked as the reference for the rest of the day and drawn as a box.
• Session logic — the model resets cleanly each new day using a real session-change test, so counters and levels do not carry stale values across sessions. Trading is only permitted inside the active session window you define.
• Liquidity ladder — levels around the range (its extremes and projections) are drawn and labelled as the liquidity price is likely to seek. These give context for where a breakout may run to or reverse from.
• Breakout signals — a Buy fires on a confirmed close beyond the range high plus a buffer; a Sell on a confirmed close below the range low minus the buffer. A per-day maximum-trades cap and a minimum-gap control prevent the level from generating repeated prints as price oscillates around it.
Trade levels
Each breakout draws a red risk box to the stop and a green reward box to the third target, with inner dividers and right-edge labels for entry, stop and each take-profit at your R multiples. Stops relate to the range, which is the structure the trade is based on.
The dashboard
An adjustable session-console panel shows the current session phase (pre-range, range building, or live), the locked range, the directional bias relative to it, the trades used against the daily cap, the active signal, a conviction estimate, and a live first-target-before-stop tally from closed bars only.
How to use it
• Set the opening window and session to match the market you trade (indices, futures, forex sessions, crypto day boundaries).
• Wait for the range to lock, then trade confirmed breakouts in the direction of your bias; use the liquidity ladder for targets and invalidation.
• The daily cap keeps the model disciplined — respect it rather than overriding on every wiggle.
Settings
Opening-range window, session hours, breakout buffer, maximum trades per day, liquidity options, risk multiple and target R multiples, plus visual and dashboard controls.
Originality and usefulness
Opening-range breakout is a known concept; the contribution here is the integrated liquidity mapping around the range, the strict session reset and daily trade governance, the confirmed-close breakout logic, and the full non-repainting trade framing — assembled into one session-aware model and explained so each element's role is clear.
Notes and limitations
• Breakouts can fail, and range-bound sessions produce whipsaws around the levels — the buffer and daily cap reduce but do not eliminate this.
• Session settings must match the instrument; a mismatched window will define the range at the wrong time.
• The tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
Indicator

Strength - Filtro RupturaEste indicador colorea las velas en función de la confluencia entre el momentum del precio (Williams %R) y la fuerza de la tendencia (ADX), actuando como filtro de confirmación para rupturas del rango de apertura.
¿Cómo funciona?
Combina dos indicadores clásicos con una lógica específica:
Williams %R identifica la zona en la que se encuentra el precio (sobrevendido, neutro, sobrecomprado) y la dirección del momentum en ese momento
ADX confirma que la tendencia tiene fuerza real detrás — si el ADX no está creciendo, la vela queda gris sin importar el momentum
La regla base es simple: sin fuerza no hay señal. El color gris significa "no operar".
Paleta de colores — Confirmación ALCISTA (usar con ruptura del ORB High)
🟢 Verde brillante — Williams %R por debajo de -50 y girando al alza con ADX creciente. Reversión desde zona de sobreventa con fuerza confirmada. La señal más potente al alza.
🟢 Verde medio — Williams %R entre -50 y -27, subiendo con ADX creciente. Continuación alcista en zona neutral con momentum sostenido.
🟢 Verde oscuro — Williams %R por encima de -27, subiendo con ADX creciente. Precio en zona alta con momentum extremo sostenido. Señal de continuación, operar con precaución.
Paleta de colores — Confirmación BAJISTA (usar con ruptura del ORB Low)
🔴 Rojo brillante — Williams %R por encima de -50 y girando a la baja con ADX creciente. Giro bajista desde zona neutral o alta con fuerza confirmada. La señal más potente a la baja.
🩷 Rosa/Fucsia — Williams %R entre -50 y -72, bajando con ADX creciente. Continuación bajista con presión sostenida.
🟤 Marrón oscuro — Williams %R por debajo de -72, bajando con ADX creciente. Sobreventa extrema con caída sostenida. Señal de continuación, mercado en presión vendedora fuerte.
⬜ Gris — No operar
Cuando el ADX no está creciendo, la vela se colorea en gris. Sin fuerza direccional confirmada, cualquier ruptura puede ser falsa. Este filtro es el núcleo del indicador.
Uso recomendado con ORB V2
Este indicador está diseñado para trabajar en conjunto con ORB V2 (también disponible en mi perfil). El flujo es el siguiente:
ORB V2 define el rango de apertura y marca el High y Low del período inicial
Cuando el precio rompe ese rango, Strength - Filtro Ruptura confirma o descarta la ruptura según el color de la vela en ese momento
Solo las rupturas acompañadas de velas verdes (al alza) o rojas (a la baja) tienen confirmación de fuerza real
Las rupturas sobre velas grises se ignoran — son el tipo de fakeout que este filtro busca eliminar
Juntos forman un sistema simple y visual: el ORB marca el nivel, Strength confirma si vale la pena operarlo. Indicator

ORB WindowsA clean, fully configurable Opening Range Breakout indicator with up to three simultaneous time windows. This script lets you define your own windows. Set them to whatever your session or strategy calls for.
Three configurable windows
Each window tracks its own high and low independently. Window 1 defaults to 5 minutes, Window 2 to 15 minutes, Window 3 to 60 minutes (hidden by default). Set any window to whatever range you want. Lines are visually differentiated: W1 is solid, W2 is dashed, W3 is dotted.
Break and confirm markers
Two signals per level, per window:
Small triangle — price ticked through the level (break)
Larger triangle — candle closed through the level (confirmation)
Filtering on close confirmation reduces noise from wicks and fakeouts.
Range label
When each window locks in, a label shows the high, low, and range size in both points and percentage. Useful for quickly assessing whether the ORB is tight or wide before deciding how to trade the break.
Formation window highlight
A subtle background color marks the W1 formation period so you can see exactly which candles built the range.
12 alert conditions
Four per window: break above, break below, close above, close below. Wire them up however your workflow calls for.
Settings
ORB Windows: set the duration (in minutes) for each of the three windows
Visibility: toggle each window, markers, range label, and formation highlight independently
Colors: fully customizable per window
Designed for intraday use. Works on any liquid instrument with a defined regular session. Indicator

Indicator

Big Daddy Max ORB StrategyBig Daddy Max ORB Strategy | Scam or Slam Series
This script is part of my Scam or Slam series, where I take popular trading concepts, code them into PulseWire strategies, and backtest them properly to see if the idea actually has an edge — or if it only looks good in hindsight.
This strategy is based around the classic Opening Range Breakout concept.
The script builds an opening range using the selected ORB window, then looks for two main trade types:
1. Continuation Entries
If price closes above the ORB high, the strategy can enter long.
If price closes below the ORB low, the strategy can enter short.
2. Reversal Entries
If price breaks out of the ORB but then closes back inside the range, the strategy can treat that as a failed breakout and enter in the opposite direction.
The strategy includes adjustable settings for:
• ORB session window
• Trading window
• Take profit RR
• Contract / quantity size
• Continuation entries on/off
• Reversal entries on/off
• Stop loss at ORB midpoint or opposite ORB side
• Close trades at session end
• Entry, stop loss, and take profit visuals
• Risk/reward boxes
• ORB high, low, and midpoint levels
The script now works across all chart timeframes. Lower timeframes will give a more precise ORB, while higher timeframes will naturally be less detailed because they use fewer candles to build the range.
This is designed for backtesting and educational purposes only. The goal is not to claim that the strategy is profitable out of the box, but to test the logic properly and see whether the concept is a Scam or a Slam.
As always, this is not financial advice. Do your own research, test everything yourself, and never risk money you cannot afford to lose.
Strategy

IrishGOD (ORB)Opening Range Breakout (ORB) Indicator — Professional Description
Pine Script v5 Overlay Indicator Intraday
Opening Range Breakout (ORB)
A precision intraday indicator that defines the high and low of a configurable opening range window, locks those levels once the window expires, and flags the first directional breakout of the day with a clear visual signal directly on the chart.
Overview
The Opening Range Breakout strategy is one of the most widely used frameworks in active intraday and momentum trading. The theory holds that the high and low established during the first N minutes of a session represent a market structure boundary — a zone of price discovery where institutional and retail participants alike are establishing positions. A decisive break above or below this range often signals the direction of the day's dominant trend.
This indicator automates the entire process: it watches price during the formation window, locks the range the instant the window closes, draws clean reference lines, and marks the first breakout in each direction with a non-cluttering arrow label — without requiring any manual input from the trader after initial setup.
Core logic
Phase 1 — Range formation
From the configured session open time, the indicator tracks the rolling high and low of every bar within the ORB window. No lines are drawn yet; the range is still live and expanding with each new bar.
Phase 2 — Range lock
On the first bar after the ORB window closes, the high and low are frozen. Two horizontal lines are drawn from that exact bar extending forward for the remainder of the session. The range will not change again for the rest of the day.
Phase 3 — Bullish breakout signal
If price closes above the ORB High after the window has locked, a green upward arrow is plotted below the breakout candle. This signal fires only once per day — the first confirmed close above the range.
Phase 4 — Bearish breakout signal
If price closes below the ORB Low after the window has locked, a red downward arrow is plotted above the breakout candle. Like the bullish signal, this fires once per day on first confirmed close below the range.
Configuration parameters
Parameter Default Description
Session Start Hour 9 Hour of day (24-hour format) when the session opens and ORB formation begins. Adjust for futures, forex, or international markets.
Session Start Minute 30 Minute offset within the start hour. Combined with the hour input, defines the exact session open (default: 9:30 for US equities).
ORB Duration 30 min How many minutes the range formation window remains open. Common settings are 5, 15, 30, and 60 minutes. Accepts 1–240 minutes.
Range High Line Color Teal Color of the horizontal ORB High reference line. Fully customizable via the PulseWire color picker.
Range Low Line Color Orange Color of the horizontal ORB Low reference line. Distinct from the high to allow instant visual separation at a glance.
Line Width 1 Thickness of the range lines in pixels. Range of 1–4. Useful for scaling visibility on higher-resolution monitors.
Arrow Size small Controls the rendered size of breakout arrow labels. Options: tiny, small, normal, large. Sized to avoid obscuring surrounding price action.
Extend Lines true When enabled, range lines extend 500 bars to the right — effectively to the right edge of the visible chart. Disable to limit lines to ~390 bars (standard session length).
Enable Alerts false When enabled, fires a PulseWire alert on the first bullish or bearish breakout of each session. Compatible with webhooks, email, and push notifications.
Visual features
Formation Window
Yellow background tint
A subtle highlight shades the candles within the ORB formation window so you can immediately see which bars contributed to the range definition.
Reference Lines
Clean horizontal levels
Single solid lines mark the ORB High and Low from the moment the window closes, extending forward without visual clutter. Previous day's lines are removed automatically.
Breakout Arrows
Directional label markers
Arrow labels are offset from price using ATR(14) so they never overlap the candle body or wick. Transparent backgrounds keep the chart unobstructed.
Data Window
ORB level readout
Once the range is locked, the exact ORB High and Low values appear in PulseWire's Data Window panel for precise reference at any bar.
Compatibility
The indicator is designed for intraday timeframes — it is most effective on charts from 1-minute through 30-minute bars. It will not produce signals on daily or higher timeframes, as the ORB window logic depends on intraday time-of-day calculations.
The session start time defaults to 9:30 AM ET for US equity and ETF markets. For futures markets (ES, NQ, CL), crypto, or forex, adjust the start hour and minute to match the relevant session open.
US Equities
ETFs
Equity Futures
Crypto
Forex
Commodities
Installation
Open the Pine Script Editor in PulseWire, paste the full source code, click Save, then click Add to chart. The indicator will appear immediately on the active chart. All inputs are accessible via the gear icon in the indicator title bar. Indicator

ORB Trading DashboardORB Trading Dashboard is a multi-factor intraday decision-support indicator built for fast market context.
It combines opening range behavior, trend structure, momentum, volume, and key levels into a single table with a weighted directional bias.
Features
Multi-timeframe ORB Status (5m / 15m / 30m)
Location-based ORB logic after each window completes
Bullish above ORB high
Bearish below ORB low
Inside = price within range
Time gates:
5m after 9:35 ET
15m after 9:45 ET
30m after 10:00 ET
Weighted Bias Model (max +/-21)
Converts multiple market factors into a single directional score
Bias states:
Strong Bull
Bullish
Lean Bull
Neutral
Lean Bear
Bearish
Strong Bear
EMA Trend Structure
Price vs Daily EMA 8 / 21 / 50 / 100 / 200
EMA stacking used to grade trend quality
VWAP Context with Volatility Bands
Session VWAP with SD1 / SD2 levels
Bias adjusts based on price relative to VWAP and SD1
Key Level Context
Yesterday high/low behavior
Premarket high/low behavior
Session position (top / mid / bottom of intraday range)
Higher Timeframe Directional Filter
Current week open status
Current month open status
Momentum & Participation
DMI / ADX direction and trend strength
Relative Volume (RVOL) confirmation or low-conviction penalty
Extension Awareness
ATR multiples from Daily EMA50 to identify trend health vs overextension
Practical Dashboard Metrics
LoD distance %
ATR / DTR %
RVOL
Weekly / monthly status
Optional EMA and key level plots
Settings
Display Options
Table position
Text size
Toggle rows:
ORB 5-Min
ORB 30-Min
Session High/Low
Toggle chart plots:
Daily EMA 8 / 21 / 50 / 100 / 200
Yesterday High/Low
Premarket High/Low
Alert Options
Enable 5-Min ORB alerts
Enable 15-Min ORB alerts
Enable 30-Min ORB alerts
Indicator Inputs
DMI/ADX length
ADX smoothing
How to Use
Use the bias score as a structured context layer, not as a standalone signal.
Combine it with your own entries, risk management, and session awareness.
Optional: How to Read the Table
Bias: composite directional score
ORB 5/15/30: opening range state (Bullish / Bearish / Inside)
VWAP / SD1 / SD2: mean and volatility context
ADX / DI: trend strength and direction
Key levels: yesterday, premarket, session positioning
Metrics: LoD %, ATR/DTR, ATR vs EMA50, RVOL
Disclaimer
This indicator is for educational and informational purposes only.
Always perform your own analysis and manage risk appropriately.
Indicator

Moving Range Breakout [Dynamic Box]Title: Moving Range Breakout
Description
The Moving Range Breakout is a clean, visual-first momentum indicator designed to identify and highlight price breakouts from a defined lookback period. Unlike traditional "channel" indicators that clutter the chart with historical lines, this script uses a dynamic, self-adjusting box that focuses exclusively on the most recent price action.
This indicator is perfect for traders who utilize Opening Range Breakouts (ORB), Volatility Contraction Patterns (VCP), or simple Box Trading strategies.
How It Works
The script calculates the highest high and lowest low of a user-defined number of previous bars (the "Lookback Period").
The Box: It draws a transparent geometric box encompassing only those lookback bars.
The Offset: The calculation specifically uses (the previous bar) to ensure the box boundaries are fixed while the current "live" bar is forming. This prevents the range from "moving the goalposts" mid-candle.
The Logic:
BUY Signal: Triggered when the current bar closes above the High of the box.
SELL Signal: Triggered when the current bar closes below the Low of the box.
Auto-Cleanup: To maintain a "Zero-Clutter" chart, the script is programmed to only show the most recent Buy and Sell labels. As soon as a new breakout occurs, the previous label is removed.
Key Features
Timeframe Adaptive: Works on any timeframe (1m, 5m, 1h, Daily).
Customizable Lookback: No hard limits; set it to 5 bars for scalping or 50 bars for swing trading.
Persistent Labels: Uses label.set_xy logic to ensure only one signal of each type exists on the chart at any time, keeping your workspace clean.
Unified Alerts: Includes a built-in alertcondition that allows you to monitor both Buy and Sell signals using a single PulseWire alert slot.
How to Use
Setting the Range: Use the "Lookback Period" in the settings to define your consolidation zone. (e.g., set to 20 to trade the breakout of the last 20 bars).
Confirming the Breakout: The signal is plotted on Bar Close. Entering a trade before the bar closes may result in a "fakeout" where price wicks out and returns to the box.
Setting Alerts:
Click Create Alert.
Select this script as the Condition.
Select "Any Breakout Alert".
Choose "Once Per Bar Close".
Settings
Lookback Period: Number of bars to include in the high/low calculation.
Box Fill Color: Adjust the transparency of the range highlight.
Border Color: Adjust the color of the range boundaries.
Disclaimer
Breakout trading involves risk, especially in low-volume or sideways markets ("choppy" price action). It is recommended to use this indicator in conjunction with volume analysis or higher-timeframe trend filters. Indicator

Strategy

ORB + Volume + VWAP BreakoutA disciplined intraday breakout indicator that combines three classic confirmations into a single signal: an **Opening Range Breakout**, a **volume surge**, and **VWAP trend alignment**. Designed to filter out low-quality breakouts and highlight only moves backed by participation and momentum.
## Concept
Opening Range Breakout (ORB) is one of the oldest and most robust intraday setups — the theory being that the first N minutes of the session establish the day's battleground, and a decisive break of that range signals directional commitment. On its own, however, ORB produces too many false signals. This indicator layers two institutional-grade filters on top:
- **Volume confirmation** — the breakout bar must print at least 1.5× the recent average volume, weeding out thin, low-conviction moves.
- **VWAP alignment** — price must be trading above VWAP, confirming that the average buyer of the day is in profit and bulls are in control.
Only when all three conditions align on the same bar does the indicator fire a signal.
## How It Works
1. At the start of each regular trading session, the indicator tracks the high and low of the first 30 minutes (configurable).
2. Once the opening range is locked, it monitors every subsequent bar for a close above the range high.
3. On each potential breakout, it checks that current volume exceeds 1.5× the 20-bar average (both configurable) and that price is above the session VWAP.
4. When all three conditions are met on the same bar, it plots a green triangle below the bar, highlights the background, and fires an alert.
5. The signal is de-duplicated so you get exactly **one alert per breakout leg**, not one per bar while price stays above the range.
## Visual Output
- **Blue line** — Opening Range High (active only during session)
- **Orange line** — Opening Range Low (active only during session)
- **Purple line** — Session VWAP
- **Green triangle + "BRK" label** — Breakout signal
- **Green background highlight** — Emphasizes the breakout bar
## Settings
- **Opening Range (minutes)** — Length of the opening range window. Default 30. Classic values: 15, 30, 60.
- **Regular Trading Session** — Session time string. Default `0930-1600` (US equities). Change for futures (`1800-1700`), crypto (`0000-0000`), or other markets.
- **Volume Multiplier** — How many times the average volume is required. Default 1.5. Use 2.0+ for stricter filtering.
- **Volume Average Length** — Lookback for the volume SMA. Default 20.
- **Show Opening Range / Show VWAP** — Toggle visual elements.
## Alerts
The indicator registers a `ORB Breakout` alert condition. To enable:
1. Right-click the chart → **Add Alert**
2. Set **Condition** to this indicator → **ORB Breakout**
3. Configure delivery (popup, email, webhook, etc.)
The alert message includes ticker and close price via PulseWire placeholders.
## ⚠️ Important Usage Notes
**1. Use on intraday timeframes lower than the opening range.** This indicator is built for 1m, 5m, or 15m charts with a 30-minute opening range. Running it on a timeframe equal to or higher than the OR window (e.g. 30m or 1h chart with 30-minute OR) will produce incorrect range values because the first bar of the session already spans the entire window or more.
**Recommended pairings:**
- 30-min OR → use 1m / 5m / 15m chart
- 15-min OR → use 1m / 3m / 5m chart
- 60-min OR → use 5m / 15m / 30m chart
**2. Match the session string to your instrument.** The default `0930-1600` is US stock market hours in the exchange's native time zone. If you apply this to futures, forex, or crypto, update the session input accordingly — otherwise the opening range will never register.
**3. Extended hours display does not break the indicator.** The session detection uses day-change logic rather than session-gap logic, so it works identically whether "Extended Trading Hours" is toggled on or off in chart settings.
**4. VWAP is session-anchored.** The built-in `ta.vwap()` resets each session automatically, matching how most traders read VWAP. If you need a weekly- or monthly-anchored VWAP, the script would need modification.
**5. Signals are confirmed on bar close.** Like all close-based indicators, signals can flicker intraday before the bar closes. For live trading, wait for the bar to close before acting, or use the `alert()` function with `barstate.isconfirmed` for non-repainting alerts (requires a minor code adjustment).
## Known Limitations
- **Long-only by design.** This version fires on upside breakouts with bullish VWAP confirmation. A short-side version would invert the logic (close < ORL, close < VWAP).
- **No automatic stop or target.** This is a signal indicator, not a complete strategy. Users should pair it with their own risk management (e.g. stop below opening range low, target at prior day's high, or ATR-based exits).
- **Volume filter is market-dependent.** A 1.5× multiplier works well for liquid US equities but may be too strict for low-volume names or too loose for high-volatility small caps. Tune to your universe.
- **First trading day on a new symbol.** On the very first session visible in your chart's history, the 20-bar volume average may be based on incomplete data. Subsequent days are unaffected.
- **Not intended for swing or position trading.** The opening range concept is intraday-specific and loses meaning on daily+ timeframes.
## Ideal Use Cases
- Momentum day trading on liquid US equities (SPY, QQQ, NVDA, TSLA, AAPL, etc.)
- Index futures (ES, NQ) during RTH
- Filtering gap-and-go setups for only the ones with genuine follow-through
- As a confirmation layer on top of your existing breakout watchlist
## Credits
Opening Range Breakout concept originally popularized by Toby Crabel (*Day Trading with Short Term Price Patterns and Opening Range Breakout*, 1990). Volume and VWAP confirmation filters are standard institutional trading practice.
---
**Feedback welcome.** If you find a setup where the signals are consistently wrong (or consistently great), leave a comment with the ticker and timeframe — I'll use the data to refine future versions. Indicator

Indicator

DKS 30 Minute ORB with Multi-Timeframe Bias and HTF ZonesThis script combines a 30-minute Opening Range Breakout (ORB) model with higher-timeframe supply and demand zones and a multi-timeframe directional bias dashboard to create a structured intraday trading framework.
🔹 Core Components
Opening Range Breakout (ORB):
The script defines the first 30-minute range of the selected session and highlights the high and low. These levels act as key breakout points, where price is monitored for continuation or rejection.
Higher Timeframe Supply & Demand Zones:
Only higher timeframe zones (1H, 2H, and 4H) are plotted on lower timeframes to reduce noise and focus on stronger areas of interest. These zones help identify potential reversal or continuation areas in confluence with the ORB levels.
Multi-Timeframe Bias Dashboard:
A built-in bias table displays directional sentiment across multiple timeframes (5m, 15m, 30m, 1H, 2H, 4H, Daily).
Bullish conditions are highlighted in green
Bearish conditions are highlighted in red
This allows traders to align intraday entries with higher timeframe direction.
🔹 How It Works Together
The script is designed to:
Identify breakout opportunities from the ORB range
Confirm direction using higher timeframe bias
Use supply/demand zones as targets or invalidation areas
This combination helps filter low-probability trades and improves overall trade structure.
🔹 How To Use
Mark the ORB range during your session (e.g., market open)
Wait for price to break and retest the range
Confirm direction using the bias dashboard
Use HTF zones for entries, targets, or stop placement
🔹 Notes
This script is intended as a decision-support tool and should be used alongside proper risk management. Indicator

Indicator

ORB Pro Suite v6ORB Pro Suite v6 — Multi-Session + HTF ORB Build
ORB Pro Suite v6 is an advanced Opening Range Breakout (ORB) tool designed for traders who want clarity, structure, and adaptability across NY, London, and Asia sessions — without changing the core ORB logic that works.
This update expands the original ORB Pro Suite to support overnight markets and multi-timeframe workflows, while keeping the strategy behavior consistent and familiar.
✅ Multi-Session Presets
Choose from built-in session presets:
NY AM (RTH) — original behavior (unchanged)
London
Asia
Custom
Each preset aligns the ORB window with the selected session and pairs seamlessly with session-appropriate filters.
✅ ORB Build Mode
You now have two ways to build your ORB:
1️⃣ Time Window (Classic ORB)
Uses session start/end times
Identical to previous versions
2️⃣ HTF Candle Count (Advanced)
Build the ORB from 5m / 15m / 30m / 60m candles
Works on any chart timeframe
Ideal for traders who want ORB consistency across TFs
Example:
Build a 15-minute ORB from 1× 15m candle, even while trading on a 5m chart.
✅ Session Profile Defaults
ORB Pro Suite introduces Session Profiles that automatically tune filters for different market conditions — without changing the strategy logic.
Profiles include:
NY (Default)
London (Breakout)
Asia (Slow Session)
Custom
You can toggle Profile Defaults ON or OFF at any time.
🧠 Core ORB Logic (Unchanged)
Original ORB framework:
Opening range high/low
Breakout confirmation
Optional retest logic
Golden Pocket (0.5–0.618) validation
Local + higher-timeframe trend filters
Cooldown protection
Visual risk/reward mapping
If you traded NY with earlier versions, nothing has changed.
⚙️ Recommended Starting Settings
For most users:
ORB Build Mode: Time Window
Session Profile: Auto
Strictness: Balanced
Advanced users:
Enable HTF Candle Count
Select desired ORB TF (5m–60m)
Adjust candle count to match your style
All inputs remain fully customizable.
📊 Designed For
Futures (ES, NQ, YM, RTY)
Forex pairs
Gold & major indices
Intraday price-action traders
Session-based trading workflows
⚠️ Disclaimer
This indicator is for educational and informational purposes only.
It does not constitute financial advice or trade recommendations.
Trading involves risk. Always manage risk appropriately and trade responsibly. Indicator

8:00-8:15 ORB Retest on 5m Time Frame v1.3 by Alf_AlgoORB Retest on 5m Time Frame
Breakout → Retest → Confirm → Enter
A structured session indicator designed to trade continuation after an opening range breakout using midpoint retests and confirmation.
Opening Range defines session structure
Breakout sets directional bias (with multiple detection modes)
Midpoint retest provides entry location
Momentum confirmation triggers signals
Triple ATR-based TP levels and structure-based SL manage risk
The system avoids chasing breakouts and instead waits for price acceptance and momentum confirmation.
━━━━━━━━━━━━━━━━━━━━━━━━
Timeframe
Pine Script®
Designed exclusively for the 5-minute chart.
The opening range is built using the first three 5-minute candles.
━━━━━━━━━━━━━━━━━━━━━━━━
Opening Range Levels
OR High — upper boundary (teal)
OR Low — lower boundary (red)
OR Midpoint — primary retest level (amber, dashed)
Shaded zone between High and Low for visual clarity
The midpoint acts as the primary retest level for entries.
━━━━━━━━━━━━━━━━━━━━━━━━
Breakout Direction Mode (New in v1.2)
Four modes to determine how directional bias is set after the opening range:
First Break — original behavior; whichever direction breaks out first locks the bias
Last Break — bias updates with each new breakout before the entry window opens, capturing the final sentiment
Strongest Break — the breakout with the largest candle body wins; more conviction = more significant
Directional Preference — manually select Bullish or Bearish; bias is set when the OR locks regardless of price action
For Last Break and Strongest Break modes, triangle markers appear on the chart each time the bias flips, so you can visually track the tug-of-war between bulls and bears before the entry window.
━━━━━━━━━━━━━━━━━━━━━━━━
Bias Logic
Close above OR High → Bullish Bias
Close below OR Low → Bearish Bias
Depending on the selected Breakout Direction Mode, the bias may lock on the first break, update with subsequent breaks, follow the strongest candle body, or be manually chosen.
━━━━━━━━━━━━━━━━━━━━━━━━
Entry Logic
Wait for midpoint retest
Require confirmation
Signal triggers within the active session window
Three confirmation modes are available:
Retest Close Reclaim
Break Retest Candle
Hybrid (default)
━━━━━━━━━━━━━━━━━━━━━━━━
Risk Management — Triple TP System (New in v1.2)
Three take-profit levels are automatically calculated using ATR, all shown on the chart from the moment a signal fires:
TP1 — 2× ATR (default) — solid line
TP2 — 3× ATR (default) — dashed line
TP3 — 5× ATR (default) — dotted line
SL — structure-based, remains fixed throughout the trade
Each TP and SL level gets a label when hit (TP1 ✓, TP2 ✓, TP3 ✓, SL ✗), so you can see exactly where targets were reached or where the stop was triggered. All ATR multipliers are fully adjustable in the settings.
Alert conditions are available for each individual TP hit and SL hit.
━━━━━━━━━━━━━━━━━━━━━━━━
Chart Elements
Opening Range High / Low / Mid with shaded zone
Breakout markers (triangles)
Retest markers (diamonds)
Buy / Sell signal labels
TP1 / TP2 / TP3 and SL levels with hit labels
On-chart dashboard with full state tracking
━━━━━━━━━━━━━━━━━━━━━━━━
Dashboard
The on-chart dashboard displays real-time state:
Session preset
Breakout Direction Mode
First break direction
Current bias
Retest status
Signal status
Confirmation mode
Individual TP1 / TP2 / TP3 and SL hit status
TP ATR multiplier values
━━━━━━━━━━━━━━━━━━━━━━━━
Typical Workflow
Apply on a 5-minute chart
Select your session and breakout direction mode
Allow opening range to form
Observe breakout(s) and bias assignment
Wait for midpoint retest
Enter after confirmation
Monitor TP1 → TP2 → TP3 progression
━━━━━━━━━━━━━━━━━━━━━━━━
v1.2 Release Notes
Added Breakout Direction Mode with four options: First Break, Last Break, Strongest Break, Directional Preference
Added triple take-profit system (TP1, TP2, TP3) with independent ATR multipliers
TP and SL hit labels appear on chart when each level is reached
Added alert conditions for each TP hit and SL hit
Styled OR lines with updated color palette (teal / red / amber)
Added shaded zone between OR High and Low
Updated dashboard with Breakout Direction Mode, individual TP status, and ATR multiplier display
v1.1 Release Notes
Added ORB session selection (New York, London, Asia)
Replaced breakout text labels with directional triangle icons
Replaced retest text labels with diamond icons
Added on-chart dashboard
Dashboard now shows directional state instead of checkmarks
Added Buy / Sell signal display in dashboard
Added color-coded dashboard values (green bullish, red bearish)
Updated Buy/Sell signal label colors
Added TP / SL outcome tracking in dashboard
━━━━━━━━━━━━━━━━━━━━━━━━
Feedback
This script is shared publicly to help traders study structured opening range continuation setups.
Feedback and suggestions are welcome
Ideas for improvements or additional features are appreciated
Indicator

Opening Range BoxOpening Range Box
Opening Range Box highlights the high and low of a user-defined opening session and visualizes the range directly on the chart. The script tracks price during the selected session window and dynamically builds a range using the highest high and lowest low that occur within that period. As the session progresses, the range updates in real time so traders can see the developing structure of the opening market activity.
Once the session begins, the indicator starts calculating the opening range and draws a box around the price action between the session high and low. At the same time, horizontal lines are plotted at the high and low levels of the range. These levels represent important reference points that many intraday traders use to identify potential breakout, breakdown, or support and resistance zones.
After the opening session ends, the final range is locked in. If enabled, the high and low levels can automatically extend to the right side of the chart so they remain visible for the rest of the trading session. This allows traders to easily monitor how price interacts with the opening range throughout the day.
An optional midpoint line can also be displayed. This dashed line represents the 50% level of the opening range and can be used as an additional reference level for balance, mean reversion, or intraday bias.
All visual elements can be customized. Users can control the session time, enable or disable the range box, show or hide the midpoint, extend the range levels across the chart, and adjust colors and line width to match their chart layout.
The default session is set to 09:30–10:00 to match the first thirty minutes of the U.S. equities market open, but it can be changed to any time window to suit different markets or trading strategies. The indicator is designed for intraday charts and is commonly used for opening range breakout strategies and early-session support and resistance analysis. Indicator
