Neurotrader documentation
Test a trading idea on real market data before you put money behind it.
You have an idea about how to trade, and you want to know whether it works before you risk money on it. Neurotrader lets you write that idea down as a set of rules, run the rules against years of real market prices, and see exactly what they would have done: every order, every fill, and how your balance moved along the way.
Neurotrader is a desktop application with a trading engine that runs on your own computer. It works with crypto and stock markets, and it is built for strategies that trade over minutes, hours or days, not milliseconds.
Capabilities
A trading strategy in Neurotrader is called an algorithm: a set of rules that looks at the market and decides when to buy and when to sell. "Buy when the price rises above its 50-day average" is an algorithm. So is "buy a fixed amount every month and never sell".
Neurotrader runs an algorithm the way a real market would, one step at a time, and records everything it does. With it you can:
- Backtest an algorithm. Replay historical prices and see how the algorithm would have performed, including the fees it would have paid.
- Compare algorithms. Run several algorithms over the same prices, each with its own separate account, and put the results side by side. You can also run one algorithm over several instruments, for example the same strategy on Bitcoin, Ether and Solana.
- Watch an algorithm on today's market. Feed the algorithm live prices as they happen, while it trades a simulated account, so no money is at risk.
- Trade with your broker. Rehearse on your broker's practice account, then let the algorithm trade your real account.
- Inspect every decision. See the orders the algorithm placed, which ones filled and at what price, and how the account's value changed after each step.
Some features, such as comparing several algorithms in one simulation, depend on your plan.
Workflow
Every task in Neurotrader follows the same four steps:
- Choose the market data. Pick one or more instruments, such as
BTCUSDTor a stock, a date range and a candle interval. A candle is one summary of the market over a fixed period, such as one hour or one day: its opening, highest, lowest and closing price, and the volume traded. - Choose an algorithm. Pick one of the built-in algorithms or one you wrote yourself, and set its parameters.
- Fund an account and run it. Give the simulated account a starting balance and choose the currency every result is measured in. Then start the simulation. Each time you start it, Neurotrader records a separate run.
- Read the results. See the return, the peak value and the maximum drawdown (the largest fall from a peak), the balance chart, and the full record of orders.
The setup you create in steps 1 to 3 is called a simulation. You can change it and run it again as many times as you like, and every run stays in its history.
Operation modes
The same algorithm can run in four operation modes, without any change to its rules. What changes is where the prices come from and where the orders go.
| Mode | Prices | Orders go to | Money at risk |
|---|---|---|---|
| Simulation | Historical | A simulated account | No |
| Live Simulation | Live | A simulated account | No |
| Live Paper Trade | Live | Your broker's practice account | No |
| Real Trade | Live | Your broker account | Yes |
Simulation and Live Simulation use the same simulated account, so a strategy's live results compare directly with its backtests. To learn when to use each mode and what to expect from it, see Operation modes.
Algorithms
Neurotrader comes with a set of built-in algorithms. Some are yardsticks, such as Buy and Hold, Dollar-Cost Averaging and Cash (which never trades), so that you can tell whether a strategy does better than doing nothing clever. Others follow well-known indicator rules, such as SMA Crossover, RSI Threshold and Donchian Breakout.
If you write code, you can add your own algorithms in two ways:
- As a plugin. Write the algorithm in Rust against the Neurotrader SDK and load it into the engine.
- As a remote algorithm. Run your own program, in any language, and let Neurotrader call it over HTTP or WebSocket on every step.
Either way, your algorithm receives the same information and runs the same way as a built-in one.
Market data
You do not need to find or clean price data yourself. Neurotrader downloads the historical data a simulation needs from its own data service the first time you use it, and keeps a copy on your computer for the next run. The Repository page in the app shows what you have downloaded and what is available.
Honest results
A backtest is only useful if it cannot cheat. Neurotrader is built around a few rules:
- No look-ahead. An algorithm sees each candle only after it has closed, and an order it places can only fill on a later candle. It can never trade on a price it has not seen yet.
- Realistic orders and fees. The simulated account supports market, limit, stop-market and stop-limit orders, take-profit and stop-loss pairs, and maker and taker fees.
- Stated assumptions. Where candle data cannot say what happened first inside a candle, Neurotrader follows a fixed, documented rule instead of choosing the outcome that flatters the algorithm.
- One currency for every figure. Each simulation reports its results in one currency you choose when you create it, called the primary quote asset, so returns are never mixed across currencies. See Primary quote asset.
App and API
You can use Neurotrader through the desktop app, or drive the engine directly through its HTTP API. The app has no special access: everything it does, it does through the same API. A script, a notebook or your own dashboard can create simulations, start runs and read results in the same way, once it signs in with your Neurotrader account.
To get started, see First simulation in the app or First simulation with the API.
Limits
- It does not give trading advice. It shows you what a set of rules would have done. Past results do not promise future ones.
- It does not hold your money. Neurotrader is not a broker or an exchange. Your money stays with your broker, and your broker keys stay on your computer.
- It is not built for high-frequency trading. It works with candles of one second and longer, not with individual trades or the order book.
Starting points
Getting started
Install the app or obtain an API token, and take the shortest path to a first result.
Concepts
Simulations, runs, the primary quote asset, fees, data sources, algorithms, the four modes, and results.
How-to guides
One task per page, with the surface it uses in the title.
Tutorials
Longer walkthroughs: a first backtest, comparing two algorithms, a first plugin.
Integrations
Venues and data providers: what each supports and how to connect.
Reference
The HTTP API, the plugin SDK, the plan limits, and the glossary.
Developer guide
Plugin authoring, the determinism rules, and the architecture a plugin author needs.