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.
PAPER ONLY · OPEN SOURCE · RUNS ON YOUR OWN COMPUTER
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.
DEMO · SYNTHETIC PRICES · NO BROKER
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.
The answer appears here once the order logic has loaded.
A stop does not rest at the broker. The program looks at a quote about every 5 seconds and decides. Pick what the market does:
| Time | Quote | Stop level | Decision |
|---|
HOW IT WORKS
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.
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.
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.
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.
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.
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
| Accepted on a real paper account | Read-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 only | Fills and sells, order tickets, stops and trailing stops, limits, the close-of-day job, restart and recovery. Fake broker, fake quotes. |
| Not verified anywhere yet | Behaviour 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 code, tests and documentation are public under the MIT license. Your account, ledger, market data and credentials stay on your computer.