Skip to main content
Session suite indicatorv1.00

AIMS Opening Range

Boxes the first minutes after the exchange opens and marks the first break of that range. A tally scores the breakout rule over the chart's history in R, before costs.

Opening Range breakout levels, trade brackets, and tally panel — TradingView
AIMS Opening Range on TradingView showing session breakout box, trade levels, and performance blotter
Type
Indicator
Category
Session timing
Platforms
TradingView, MT5
Language
Pine v6, MQL5
Repaints
No — closed bar
Opening rangeBreakoutsSession timingIndices

What Opening Range does

The opening range breakout is one of the oldest intraday rules. Opening Range draws the range in the exchange's own time zone, marks the first break, and scores the rule on your chart so you can see whether it holds up on your market.

The range in exchange time

Boxes the first 5, 15, 30 or 60 minutes after the open, in Berlin, London, New York, Tokyo or Sydney time, with daylight saving handled.

The first break

Stop orders sit beyond the range high and low. The first one filled is the trade, with its stop at the other side of the range, flat at the close.

The tally

Days traded, win rate and average R before costs, over the chart's history. Days where both levels are hit in one bar are marked and not scored.

How to trade Opening Range

  1. Set the exchange and session

    Pick the exchange time zone and its open and close (defaults: Europe/Berlin, 9:00 to 17:30). On MT5, also set "Server time = New York time + hours" to your broker's offset.

  2. Use a chart no longer than the range

    A 15-minute range needs a chart of 15 minutes or less. On longer charts MT5 shows a note instead of the range.

  3. Wait for the range to close, then the first break

    Once the range is complete, the first bar to trade through the high (plus any entry offset) marks a BUY break; through the low, a SELL break. Only the first break of the day counts.

  4. Check the tally before you act

    The tally scores the rule in R: a full stop is -1R. If the average R is near zero or negative on your market, the breakout has no edge there.

Prompts, not trade instructions. A SETUP READY prompt tells you to review the structure on a closed candle. It is never a command to enter blindly.

Setups and chart grammar

Opening Range draws one box, two entry levels and three kinds of marker.

SetupContextWhat the indicator seesGoal
Range boxOpen to open plus the range minutesBox over the range, then dashed entry levels above and below it to the closeFix the levels for the day
BUY breakFirst bar through the high plus offsetMarker below the bar, in the long colourLong, stop at the range low, flat at the close
SELL breakFirst bar through the low minus offsetMarker above the bar, in the short colourShort, stop at the range high, flat at the close
BUY

First break above the opening range high.

SELL

First break below the opening range low.

BOTH IN ONE BAR

Both levels hit in the same bar. Not scored.

Settings

InputTypeDefaultWhat it does
Exchange Time ZoneStringEurope/BerlinEurope/Berlin, Europe/London, America/New_York, Asia/Tokyo or Australia/Sydney.
OpenInteger9 : 0Session open, hour and minute, in exchange time.
CloseInteger17 : 30Session close, hour and minute, in exchange time. Open trades are closed here.
Range (minutes)Integer155, 15, 30 or 60 minutes after the open.
Entry Offset (price units)Float0.0How far beyond the range the stop orders sit, e.g. 1 on GER40.
Show TallyBooleantrueShows the tally table.
Range ColorColor#2962ffColour of the range box.
Long ColorColor#26a69aColour of BUY breaks.
Short ColorColor#ef5350Colour of SELL breaks.

Use it in your EA

On MetaTrader you can read the levels and setup state from an Expert Advisor with iCustom().

// MQL5 — check the last closed bar for an opening range break
int    h = iCustom(_Symbol, _Period, "iTradeAIMS\\AIMSOpeningRange", "YOUR-SERIAL-KEY");
double up[], dn[];
CopyBuffer(h, 0, 1, 1, up);   // != EMPTY_VALUE: BUY break on that bar
CopyBuffer(h, 1, 1, 1, dn);   // != EMPTY_VALUE: SELL break on that bar
BufferNameValue
0Long breakBar low on the BUY break bar; EMPTY_VALUE elsewhere
1Short breakBar high on the SELL break bar; EMPTY_VALUE elsewhere
2Both levels in one barBar high when both levels are hit in one bar; EMPTY_VALUE elsewhere

Frequently asked questions

Check your own market with the tally. In our testing on GER40 from 2016 to 2026, none of the range lengths beat random entries. The indicator shows the rule honestly; it does not promise an edge.

All indicators →

Score the open before you trade it.

AIMS Opening Range is available on TradingView and MT5 for iTradeAIMS members.