ARA API
Checking OpenAPI API reference

End-of-day screening, next-session plans and backtests for IDX stocks

ARA works on data that arrives after the market closes. Each evening it syncs prices, broker summaries and IHSG, runs the screeners, and builds the orders for the next session. Every rule can be replayed over history with the backtest.

A trading day

Times are WIB. Nothing depends on intraday data.

  • 16:30Sync. Every 15 minutes: IHSG, daily prices and broker summaries newer than what is stored.
  • ≤ 19:00Wait for data. Ready when IHSG has the day's bar, 500+ stocks have prices and broker summaries are in (it stops waiting for summaries at 19:00).
  • readyPlan. Past plans are scored, then the next-session plan is built and sent to Telegram.
  • 20:00Holiday check. No IHSG bar by now means there was no session.
  • 23:00–05:00Stockbit maintenance. No data requests; a startup in this window only syncs the stock and broker lists.
  • 08:45Pre-opening. Place the plan's orders; stops and targets were fixed the evening before.

Smart Money screener

Stocks that brokers and foreign investors are accumulating while the trend is up. Every rule is evaluated as of the screening date.

FilterRule
Liquidity≥ Rp1B traded that day and a 20-day median ≥ Rp5B
TrendClose above a rising 20-day average
AccumulationBrokers net buying (Acc) on the latest session
Foreign flow5-day net foreign buying ≥ 6.5% of 5-day traded value
Not extendedNo more than 16% above the 20-day average

Score (0–100, 25 points per factor)

FactorFull pointsFewer points
5-day foreign flow / value≥ 16%≥ 6.5%: 80% · ≥ 0: 40%
Broker Acc days, last 55 of 5Proportional
Distance above MA20≤ 8%≤ 16%: 70% · more: 20%
Position in 60-day range50–85%Top or lower-middle: 60% · bottom quarter: 20%

Score ≥ 75 is BUY, ≥ 60 HOLD, below that AVOID. The score ranks candidates; it is not a probability.

How the rules were chosen

Liquid IDX stocks, Jan–Apr 2026, bought at the next open, compared with the liquid market over the following 10 sessions.

Previous rules+1.6%55% of picks beat the market
Current rules+4.6%66% beat the market
Score ≥ 75+4.4%score 60–75: +1.1%

One 3½-month period; plan scoring and the backtest track whether it holds.

Trading skills

Ported from tradermonty/claude-trading-skills (MIT) and adjusted for IDX, using stored daily prices with IHSG as the benchmark.

SkillWhat it findsEndpoint
VCPUptrending stocks tightening into a pivot (Minervini), with a breakout plan/skills/vcp
Momentum BurstDay-1 breakouts from a tight base on rising volume (Stockbee)/skills/momentum-burst
Exhaustion HammerHammers after a 6–35% pullback in a stock with prior momentum/skills/exhaustion-hammer
Market stateIHSG follow-through day, distribution days and the market gate/skills/market-state
BreadthShare of liquid stocks above their 200-day average, scored 0–100/skills/breadth
Position sizerRisk-based size in lots, with fees and ARB warnings/skills/position-size

Next-session plan

All screeners combined into orders that can be placed before the open. A stock picked by more than one screener ranks higher.

SetupEntry
VCPBuy only above the pivot; maximum price pivot + 2%
Momentum BurstLimit at the close + 1%
Exhaustion HammerLimit at the close
Smart MoneyLimit at the close

Stops round down and targets round up to IDX ticks (targets ≥ 1.5R); maximum prices are capped at the next session's ARA. Risk per trade is 0.5% × the market gate (allowed 1, neutral 0.5, restrictive 0), with total open risk ≤ 6%. Every order is later replayed on the following sessions, so /plan/performance shows how each setup actually did.

Backtest

Replays a strategy day by day, for one stock or the whole market. Each session's screen sees only data up to that close; signals become the same orders as the plan (next-session fill, stop, target, time exit), net of fees, one position per stock at a time. For a single stock with no trades it reports which rule failed.

StrategyRangeTradesWin rateAvg Rvs IHSG / trade
Smart MoneyJan–Apr 202624941%−0.06+1.36%
Momentum BurstJan–Oct 20261,95327%−0.33−0.39%
Exhaustion HammerJan–Oct 202668029%−0.38−0.16%
VCPJan–Oct 20260–––

IHSG fell about 42% over Jan–Oct 2026. Run your own with /backtest/run.

IDX rules

Applied wherever prices, sizes or orders are produced.

RuleValue
Lot100 shares
Tick sizeRp1 (<200) · 2 (<500) · 5 (<2,000) · 10 (<5,000) · 25
ARA35% (≤ Rp200) · 25% (≤ Rp5,000) · 20% above
ARB7% for all bands (BEI, 19 Oct – 31 Dec 2026); set with IDX_ARB_PCT
Fees0.15% buy · 0.25% sell, included in risk
Short sellingNot used; long only

Data

From Stockbit after the close. On startup and each evening only data newer than what is stored is fetched; older gaps are filled on request.

DataEach evening and on startupWith ?mode=repair
Stocks, brokersCodes missing from the database–
IHSGFrom the newest stored dayAny missing day since 2016
Daily pricesEach stock from its last priceMarket-wide missing days; stocks with no prices
Broker summariesEach stock after its last summaryEvery gap from where the table is complete

During Stockbit's nightly maintenance (about 23:00–05:00 WIB) it answers with empty data, so no requests are made then, and a run stops if empty answers persist.

Endpoints

Responses are JSON {"status": "success", "data": …}. Parameters and schemas are in the API reference.

Plan and backtest

GET/api/v1/plan/latestNext-session orders, market view and watchlistOpen
GET/api/v1/plan/performanceHow planned orders played out, by setupOpen
GET/api/v1/plan/historyRecent plans with outcomesOpen
POST/api/v1/plan/buildBuild the plan now from the latest data
GET/api/v1/backtest/runReplay a strategy: strategy, from, to, symbol, max_holdOpen

Screeners and skills

GET/api/v1/screener/recommendationsSmart Money candidates ranked by scoreOpen
GET/api/v2/screener/recommendationsSmart Money re-ranked with RSI, MACD, MA and OBVOpen
GET/api/v1/skills/vcpVCP screen with breakout plansOpen
GET/api/v1/skills/momentum-burstDay-1 breakoutsOpen
GET/api/v1/skills/exhaustion-hammerPullback hammersOpen
GET/api/v1/skills/market-stateIHSG follow-through, distribution days, market gateOpen
GET/api/v1/skills/breadthBreadth score and historyOpen
POST/api/v1/skills/position-sizeLots for an account size, entry and stop
GET/api/v1/stocks/{symbol}/analysisSmart Money measures for one stockOpen

Market data

GET/api/v1/market-data/pricesDaily prices for a stock and rangeOpen
GET/api/v1/market-data/summaryBroker summaries and net transactionsOpen
GET/api/v1/market-data/index-prices/{symbol}IHSG daily pricesOpen
GET/api/v1/market-data/stocksStock listOpen
GET/api/v1/market-data/brokersBroker listOpen
GET/api/v1/market-data/catch-up/statusProgress of the data syncOpen
POST/api/v1/market-data/catch-upSync new data now; ?mode=repair also fills older gaps
POST/api/v1/market-data/sync-indexSync IHSG

Orders and admin

POST/api/v1/ordersPlace an order through the configured brokers
POST/api/v1/trade/auto-bracketBracket orders for top Smart Money picks
GET/api/v1/admin/telegram-usersTelegram subscribers
GET/api/v1/healthAPI and broker statusOpen