ORB Explorer: Scan the Entire Market

While the ORB AFL is designed for charting a single instrument, the ORB Explorer is purpose-built for AmiBroker's Explorer module โ€” the built-in stock screener that can scan hundreds of symbols simultaneously.

Use this AFL to run a live scan at 9:30โ€“10:00 AM each morning and instantly see which NSE stocks have broken out of their opening 15-minute range, filtered by a dual EMA trend confirmation (EMA-9 vs EMA-26).

โœ…
This AFL was originally developed by DTM Financial Solutions (dailytrademantra.com). We host it here free for the AmiBroker community with full attribution.

Key Features

๐Ÿ“‹

Explorer-First Design

Adds Filter, AddColumn, and BarColor support for the AmiBroker Explorer window. Run a scan and get a table of all breakout candidates instantly.

๐Ÿ“‰

Dual EMA Filter

EMA-9 and EMA-26 act as trend confirmation. Only breakouts in the direction of the short-term trend are surfaced โ€” reducing false signals in choppy opens.

๐ŸŽจ

Color-Coded Candles

Bullish candles shown in green, bearish in red. Wick colors also differentiate direction for instant visual clarity on the chart.

๐Ÿ•

NSE Time-Calibrated

Market start 9:15 AM, breakout time 9:30 AM, end of day 3:30 PM โ€” all hardcoded to NSE session with 15-minute candle logic.

How to Use in AmiBroker Explorer

Install the AFL

Download and copy ORB_EXPLORER.afl to your AmiBroker Formulas folder.

Open Automatic Analysis

In AmiBroker: go to Analysis โ†’ New Analysis. In the Formula field, load ORB_EXPLORER.afl.

Set Your Watchlist

In the "Apply to" dropdown, select your NSE watchlist (e.g., Nifty 500 or F&O stocks). Set the date range to "Today" and the timeframe to 15 minutes.

Run Explorer

Click the Explorer tab and then Scan. Results appear in the table below showing ORB-H level, ORB-L level, EMA values, and breakout status.

Filter Breakouts

Sort the results by the Buy_Entry column to see which stocks have broken out above the opening range. Use EMA column to confirm trend direction.

Technical Specifications

Timeframe
15 Minutes
ORB Window
9:15โ€“9:30 AM
EMA Fast
9
EMA Slow
26
Bar Interval
900 seconds
Explorer Ready
Yes
Color Candles
Yes (G/R)
Auto EOD
3:30 PM
ORB_EXPLORER.afl โ€” Range & EMA Logic
// 15-minute ORB Range Calculation Num_Bars = 900 / Interval(1); // bars in 15 min window F_15Min_H = Ref(HHV(High, Num_Bars), -(No_Of_Bar+1)); F_15Min_L = Ref(LLV(Low, Num_Bars), -(No_Of_Bar+1)); Buy_Entry = F_15Min_H; // breakout above = long Short_Entry = F_15Min_L; // breakdown below = short // Dual EMA trend filter Plot(EMA(C, SlowEMALength), "EMA-26", colorBlue); Plot(EMA(C, FastEMALength), "EMA-9", colorWhite);
โš ๏ธ
For accurate real-time scanning, you need live intraday data. The ORB Explorer only shows meaningful results after 9:30 AM when the opening range is complete. Use with AmiFeeder or Amidata for live NSE data.