Operation modes
Run an algorithm on past prices, on today's market with a simulated account, on your broker's practice account, or with real money.
Every time you run an algorithm in Neurotrader, you choose an operation mode. The mode decides two things: where the prices come from, and where the orders go. There are four modes, from a backtest on past prices to trading with real money, and the same algorithm runs in all of them without any change.
Mode choice
| Mode | Use | Prices | Orders go to | Money at risk |
|---|---|---|---|---|
| Simulation | Test an idea on past prices | Historical | A simulated account | No |
| Live Simulation | Watch an idea on today's market | Live | A simulated account | No |
| Live Paper Trade | Rehearse with your broker | Live | Your broker's practice account | No |
| Real Trade | Trade with real money | Live | Your broker account | Yes |
Most people use the modes in this order. Start in Simulation to find out whether an idea would have worked. Move to Live Simulation to see whether it keeps working on prices it has never seen. Try it in Live Paper Trade to see how your broker handles its orders. Then, when the results give you a reason to, trade it in Real Trade.
Simulation
Use Simulation to test an algorithm on past prices. This is often called a backtest. You choose a date range, and Neurotrader replays it one candle at a time, as fast as your computer allows, while the algorithm trades a simulated account.
To run a simulation in the app:
- Open the Simulations page and create a simulation.
- Choose the instruments, the date range and the candle interval.
- Choose one or more algorithms and set their parameters.
- Give the account a starting balance and choose the currency results are measured in.
- Start the simulation.
While the simulation runs, a progress bar shows how far through the date range it has got. You can pause it and resume it later from the same point. If you stop or reset a paused simulation instead, Neurotrader discards that run rather than keeping half a result.
When the run finishes, you see its return, its peak value, its maximum drawdown, a chart of the account's value, and every order the algorithm placed. The run is added to the simulation's history, so you can change a setting, run it again, and compare the two.
Live Simulation
Use Live Simulation to watch an algorithm trade today's market without risking money. The algorithm receives live prices as the market moves, and Neurotrader fills its orders on a simulated account, exactly as it does in Simulation. Because the account works the same way in both modes, you can put a live result next to a backtest and compare them directly.
To start one, open the Live Mode page and create a live simulation. You choose instruments, an interval, algorithms and a starting balance as you do for a simulation, but no date range: a live simulation starts now.
A live simulation feels different from a backtest:
- It moves at the market's pace. The algorithm acts each time a candle closes. With hourly candles, that is once an hour. With daily candles, once a day.
- It is ready from the first step. Neurotrader fills the algorithm's indicators with recent history before the first live candle, so an algorithm that needs a 200-day average can act straight away instead of waiting 200 days.
- It runs until you stop it. There is no end date, so instead of a progress bar you see how long it has been running and how many steps it has taken.
- You watch it as it happens. The chart, the indicators and the orders update with every step.
- You stop it, but you do not pause it. A paused live run would come back to a market that had moved on without it. See Stopping a live run.
Neurotrader keeps a record of every candle a live simulation received, so you can look back later at exactly what the algorithm saw.
Live Paper Trade
Use Live Paper Trade to rehearse with your broker before you trade with real money. The algorithm's orders go to your broker's practice account, sometimes called a paper or demo account. The broker accepts, rejects and fills them as it would real orders, but with practice money.
Neurotrader trades on Binance, and the practice account is Binance's Demo environment, shown in the app as Demo Mode: the rules and limits of the real exchange, with practice funds. You create and start these runs on the Real Mode page, with Demo Mode as the environment.
Before you start, store a Binance Demo Mode key under Credentials in Settings. See Venue account connection and Demo runs.
What to expect:
- Your broker decides what happens to each order. It may round a price to its own tick size, reject an order that breaks one of its rules, or fill only part of an order.
- The results can differ from Live Simulation. Those differences are the reason to use this mode: they show you where your broker and the simulation disagree, while the money is still pretend.
- One algorithm trades the account. A broker account has one balance, so it runs one algorithm. To run several strategies on one account, combine them into an algorithm group. See Running several algorithms.
Real Trade
Use Real Trade to trade with real money. The algorithm's orders go to your real Binance account, in the production environment, and the fills, the fees and the balance are real. Money you trade this way can be lost, and nothing in Neurotrader limits what an algorithm does once it is running.
Before you start:
- Store a Binance production key under Credentials in Settings. The private key is kept in your computer's key store and never leaves your computer.
- Run the same algorithm in the earlier modes first, and make sure you understand its results.
Two safety rules apply to Real Trade in the production environment and to nothing else: a built-in algorithm cannot trade real funds, and an algorithm you wrote or built cannot trade them until you have confirmed it. See Real trading safety.
Like Live Paper Trade, Real Trade runs one algorithm per account. Your orders, your account details and your live market data go directly between your computer and your broker. They never pass through Neurotrader's servers.
Stop of a live run
When you stop a run in Live Simulation, Live Paper Trade or Real Trade, the algorithm may still hold positions and have orders waiting. Neurotrader asks what to do with them:
- Close: Neurotrader cancels the algorithm's open orders, closes the position the run itself built, and waits until the broker confirms before the run ends. What the account held before the run started is not sold.
- Leave: the run ends, and the positions and open orders stay as they are.
Neurotrader does not choose for you, because either one can be the right answer. In Live Simulation the choice costs nothing, which makes it a good place to practise it.
Several algorithms
In Simulation and Live Simulation, one simulation can run several algorithms side by side, each with its own separate account, so you can see which one does best. You can also run one algorithm over several instruments, each with its own account, to see where it works best. Comparing several algorithms in one simulation depends on your plan.
In Live Paper Trade and Real Trade, one algorithm trades the account. To let several strategies share that account, combine them into an algorithm group: one algorithm that holds several others and trades on their behalf. A group counts as one algorithm, so it runs in every mode.
Choice between Live Simulation and Live Paper Trade
Both modes trade live prices without real money, and they answer different questions. Use both.
- Live Simulation tells you whether the strategy still works on new prices. Its results compare directly with your backtests.
- Live Paper Trade tells you whether your broker treats the strategy's orders the way the simulation assumed. Its results show where the two disagree.
Related
- Neurotrader documentation: what Neurotrader does
- Simulations: simulations and runs
- Primary quote asset: the currency every result is measured in
- Real trading safety: the two rules for real funds
- Live simulations
- Demo runs
- Real funds runs
- Binance: what is supported at the venue
- Glossary