---
title: "IHSG Desk"
url: "https://ridwaanhall.com/projects/ihsg-desk"
markdown: "https://ridwaanhall.com/projects/ihsg-desk.md"
summary: "Algorithmic paper trading for the Indonesia Stock Exchange on Cloudflare Workers: nightly scans, simulated fills and walk-forward backtests."
---

# IHSG Desk

> Algorithmic paper trading for the Indonesia Stock Exchange on Cloudflare Workers: nightly scans, simulated fills and walk-forward backtests.

- Category: fintech
- Status: Completed
- Started: April 23, 2026
- Built with: Next.js, TypeScript, Cloudflare Workers, Drizzle ORM, Vitest

## About

### The problem

A trading strategy is only worth trusting once it has run on the same rules every day, with real fees, tick sizes and settlement. Backtests that ignore those are easy to fool yourself with.

### The approach

IHSG Desk follows on from IHSG AlgoTrader and rebuilds it on Next.js 16 for Cloudflare Workers, with a D1 database and Cloudflare Access for sign-in. After each trading day it scans LQ45 and IDX80 stocks and queues orders for the next open. A paper broker then simulates fills, stops, targets, IDX fees and T+2 settlement on demo accounts.

- Trend Swing, Mean Reversion and Breakout strategies, with editable parameters per account.
- An order ticket that checks ticks, the ARB/ARA band, settled cash, slots, liquidity and sector caps as you type.
- Bar-by-bar backtests with walk-forward validation, run in the browser and saved for comparison.
- Owner, trader and viewer roles, with cron jobs, run history and logs.

### The result

A private desk that measures strategies honestly on delayed data. It is a simulation, not investment advice.

## Features

- **Nightly Scanner**: Every LQ45 and IDX80 stock scored by the chosen strategy.
- **Paper Broker**: Fills, stops, targets, fees and T+2 settlement on demo accounts.
- **Backtest Lab**: Walk-forward backtests run in the browser.
- **IDX Rules**: Ticks, ARB/ARA bands, holidays and risk limits enforced.

## Tags

algorithmic-trading, ihsg, Idx, backtesting, cloudflare-workers, nextjs, trading

## Elsewhere

- This page for people: https://ridwaanhall.com/projects/ihsg-desk
- Index of every page as Markdown: [llms.txt](https://ridwaanhall.com/llms.txt)
