IDX Order Flow: Order Book Depth and the Broker Footprint on Every Trade
Order Flow on MesinSaham.id shows what is happening behind the price: how thick the buy and sell queues are in the order book, and who (through broker codes) is buying and selling in every trade. Every number is calculated with formulas from that data, not by AI. This feature is for the Lifetime plan only.
What is Order Flow?
A stock price is only the end result of the tug of war between buyers and sellers. Order Flow opens up the part that a price chart does not show, and answers three questions:
- How deep and balanced are the queues? The order book shows the buy (bid) and sell (offer) queues at 10 price levels. From it we calculate imbalance, spread and depth.
- How expensive is it to buy or sell a large amount? The price impact estimate shows how far the price moves if you sweep IDR 100 million or IDR 1 billion.
- Who is buying and selling, and who is aggressive? Every trade is recorded with the buyer and seller broker codes, which gives net buy/sell per broker, foreign versus local net, and order flow imbalance (OFI).
Two data sources and their schedule
| Data | Coverage | Schedule | Contents |
|---|---|---|---|
| Daily order book | About 880 tradeable stocks (indices, ETFs and warrants excluded) | Every trading day at 15:00 WIB, finished in about 17 minutes | 10 bid and offer levels: price, shares, queue count; that day’s price and traded value; the ARA/ARB limits |
| Tick-by-tick trades with broker codes | The 150 most liquid stocks (ranked by 90-day average traded value) | Every trading day at 17:00 WIB, once broker codes are revealed | Every trade: time, action (initiating side), price, lots, board, buyer and seller brokers with their types, order numbers |
Broker codes are only revealed by the exchange after the market closes. That is why ticks are recorded at 17:00 WIB rather than while the market is running. History starts on 9 November 2026 and grows every day. Past days cannot be fetched retroactively from the source, so a missed day cannot be filled in later. The data is stored on a separate recorder computer, not on the web server, and is read when you open the menu.
The Order Flow menu in the app
The Order Flow menu appears in the app for Lifetime users. It contains four views.
1. Order book
The 10-level bid and offer ladder of one stock with volume bars, plus summary cards: imbalance at levels 1, 5 and 10, spread, microprice, price impact, depth within ±1%, and the ARA/ARB limits. Below it is a screener that filters all stocks, for example “liquid stocks with the highest L5 imbalance and a spread under 60 bps”. Pick the sweep date and slot as needed.
2. Broker (ticks)
For one stock and one day: traded value, foreign and local net, number of brokers, the share of the top five buyers, and tables of the largest net buyers and net sellers by broker code with their type (foreign, local or government) and average price. Click a broker code to see its history in that stock. The broker screener shows the stocks with the largest net buy or net sell from foreign brokers, local brokers or one specific broker code across all recorded stocks.
3. Order flow
Order flow per 5, 15, 30 or 60-minute interval: open, high, low, close, traded value, OFI (red-green bars) and foreign net. Useful for seeing at what time buying or selling pressure occurred.
4. Large trades
A list of trades above a value threshold (IDR 1, 5, 10 or 50 billion), largest first, with time, price, lots, and who the buyer and seller were.
Terms and formulas
| Term | Formula | How to read it |
|---|---|---|
| Imbalance (OBI) | (bid volume − offer volume) / (bid volume + offer volume), over 1, 3, 5 or 10 levels | Ranges from −1 to +1. Positive means the bid side is thicker. A single snapshot does not necessarily indicate direction. |
| Spread | Best offer minus best bid, in ticks and in bps (spread / mid × 10,000) | Smaller means cheaper to get in and out. IDX ticks: 1 (below IDR 200), 2 (200–499), 5 (500–1,999), 10 (2,000–4,999), 25 (IDR 5,000 and above). |
| Microprice | (offer × best-bid shares + bid × best-offer shares) / (best-bid shares + best-offer shares) | A volume-weighted mid. A positive difference to the mid (bps) means it leans toward the offer. |
| Depth ±1% | Bid shares up to 1% below the mid, and offer shares up to 1% above the mid | How much can be absorbed without moving the price far. ±0.5% and ±2% are also available. |
| Wall | The level with the most shares on the bid or the offer (out of 10 levels) | Its price and size, plus its distance from the mid. |
| Price impact | The average price if you sweep IDR 100 million or IDR 1 billion through 10 levels, versus the mid (bps) | Larger means more expensive. “Not enough” means 10 levels cannot absorb that size. |
| OFI | Value of buyer-initiated trades (action “buy”) minus seller-initiated trades (action “sell”), per interval | Positive means buyers were more aggressive. Its percentage is relative to that interval’s traded value. |
| Foreign / local net | Buy value of foreign (or local) brokers minus their sell value | Broker type follows the data source’s classification: foreign, local or government. |
| Value (rupiah) | Lots × 100 × price | One lot = 100 shares. |
An example of reading the data (BBCA, 9 November 2026)
On that day BBCA recorded 43,118 trades worth about IDR 1,493 billion. Foreign brokers recorded a net buy of IDR 520.7 billion and local brokers a net sell of IDR 371.6 billion. The largest net buying came from KZ (foreign, IDR 463.5 billion), TP (foreign, IDR 254.8 billion) and AK (foreign, IDR 203.9 billion). The largest net selling came from CC (government, IDR 148.5 billion), BK (foreign, IDR 122 billion) and XL (local, IDR 121.3 billion). The top five buyers held 81.7% of the buy value, meaning the buying was concentrated in a few brokers.
Yet BBCA’s daily OFI was negative by roughly IDR 59 billion: trades initiated by sellers were slightly larger than those initiated by buyers. That combination suggests foreign brokers were accumulating a large amount while the sell side more often initiated trades. This example only shows how to read the data; it is not a buy or sell signal.
Through MCP for AI agents
Order Flow is also available as seven read-only MCP tools, so Claude, Codex, Gemini or any other agent can query it directly: get_orderbook, scan_orderbook, get_broker_flow_tick, scan_broker_flow_tick, get_order_flow_intraday, get_large_trades and get_tick_coverage. Example questions: “Which foreign broker net bought the most yesterday?” or “Compare the order book imbalance of BBCA and BBRI.” The full parameters are on the MCP · AI Agent Access page.
Limits you should know about
- The order book is a point-in-time snapshot (10 levels), not individual order flow. Queues that appear and vanish before the sweep are not visible, and order-by-order data is not available.
- Ticks cover only 150 liquid stocks, while the order book covers about 880 tradeable stocks.
- History starts on 9 November 2026 and cannot be backfilled.
- The data comes from a third-party source on a daily schedule. If the recorder or the source has a problem on a given day, that day may be empty or incomplete.
- Every metric is calculated from order book and trade data. No AI judges or predicts prices.
Frequently asked questions
What is the difference between the order book and tick data?
The order book is a snapshot of the buy and sell queues at one moment (10 price levels). Tick data is a record of every trade that has happened, with the buyer and seller broker codes. The order book answers “how deep are the queues”, tick data answers “who traded and who was aggressive”.
Why is the order book swept at 15:00 and ticks recorded at 17:00?
The order book is only meaningful while trading is running, so it is swept at 15:00 WIB just before the close. The broker codes on each trade are only revealed after the market closes, so tick-by-tick trades are recorded at 17:00 WIB.
Why are ticks limited to 150 stocks?
Every stock has to be fetched trade by trade in large volumes. The 150 most liquid stocks (by 90-day average traded value) cover the largest share of traded value and can be recorded in full every night.
Is there AI behind the numbers?
No. Imbalance, spread, microprice, price impact, OFI and broker net are all calculated with formulas from order book and trade data.
Can I see dates before 9 November 2026?
No. The data source does not provide past days of tick history, so recording can only start from when the recorder began running and grows every day.
Who can use Order Flow, and is it available through MCP?
Active Lifetime plan users, through the Order Flow menu in the app or through the seven read-only MCP tools.