PAPER ONLY · OPEN SOURCE · RUNS ON YOUR OWN COMPUTER

A trading back end you can read, run and check.

The Lévy Quant Trading System runs on your own computer against a moomoo paper account. It captures 5-minute bars, produces signals, applies limits you set yourself, sends orders, and reconciles every one of them with the broker.

Status. Paper trading only. Live trading is not implemented. Through this system, one limit order has been placed, read back and cancelled on a real paper account so far, on a day the market was closed. Fills, sells, stops and everything else have only been tested offline against a fake broker. Behaviour during market hours has not been checked at all.

Try the order desk Source on GitHub

DEMO · SYNTHETIC PRICES · NO BROKER

Write an order. See exactly what the system would do with it.

This runs the system's own order checks and stop logic inside your browser. The prices are made up for the demo. What you type stays in this tab: no order, account or broker is involved. The Python runtime that runs the code is downloaded from a public CDN (about 10 MB) when you reach this section.

The order logic loads when you reach the demo.

1 · Your ticket

Your limits (the system has no defaults for these)

2 · What the desk says

The answer appears here once the order logic has loaded.

HOW IT WORKS

Six rules the code follows

Three ways to run

Alert only records what it would have done. Confirm before send shows the exact order and waits for you. Fully automatic sends on its own. The strategy engine underneath is the same.

Your limits, not defaults

Shares per order, USD per buy order and the number of working orders come from a file you write. Without it, order tickets are refused.

Journal first

Every order the watch loop sends is written to a local ledger before the broker is called. Nothing is sent twice, and an order with an unknown outcome blocks further sending until it is reconciled.

Only its own positions

It sells at most the number of shares it bought itself and never touches orders it did not create. Shares of one symbol are interchangeable, so do not trade by hand a symbol the program also trades.

Stops are synthetic

The paper account takes limit and market orders only. Stops and trailing stops are watched by this program, so they protect nothing while it or its quotes are not running, while it is paused, or outside regular trading hours, and they end with the trading day. It says so on the ticket.

Nothing live

You sign in to the broker's own tool with trading permissions unticked and no account selected. The program stops if the sign-in carries either.

EVIDENCE, KEPT APART

What is verified, and what is not

Accepted on a real paper accountRead-only reconciliation of the account. One 1-share limit buy accepted, read back and cancelled. Real 5-minute bars read for a past session.
Offline tests onlyFills and sells, order tickets, stops and trailing stops, limits, the close-of-day job, restart and recovery. Fake broker, fake quotes.
Not verified anywhere yetBehaviour during market hours, and a full trading day in any mode.

Passing offline tests does not mean the real service behaves the same way. This page's demo is offline logic too: it shows the rules, not a trading record. There is no performance to report yet.

RUN IT YOURSELF

The order engine is never hosted. It runs where your account is: on your machine.

The code, tests and documentation are public under the MIT license. Your account, ledger, market data and credentials stay on your computer.

Set-up guide Validation record Lévy Quant home