Real trading safety
What is at risk when an algorithm trades real funds, the two rules Neurotrader applies before it lets one, and what stays your responsibility.
Before you let an algorithm trade your own money, you want to know what can go wrong, what Neurotrader checks for you, and what it leaves to you. This page covers all three. It applies to Real Trade runs in the production environment of a venue (the exchange or broker that holds your account), where the orders, the fills, the fees and the balance are real.
Real money, real losses
An algorithm that trades real funds can lose them, quickly and without asking you. Nothing on this page, and nothing in Neurotrader, limits how much a running algorithm can lose. Neurotrader does not give financial advice. Trade only money you can afford to lose.
Risk with real funds
In a simulation, a bad algorithm costs nothing. With real funds, the same algorithm spends your balance. These are the risks to keep in mind:
- The algorithm decides, not you. Once a run starts, the algorithm places and cancels orders on its own, at every step, until you stop it.
- The past does not repeat. A good result in a simulation shows what a set of rules would have done on past prices. It does not say what they will do next.
- The venue behaves like a venue. It can reject an order, fill only part of it, fill it at a worse price than the simulation assumed, charge fees in an asset you did not expect, or go into maintenance.
- Your computer is part of the system. The algorithm runs on your computer. If the computer sleeps, loses its connection or shuts down, the algorithm stops deciding, while the orders it already placed stay at the venue.
- The whole account is in reach. The algorithm trades the account your credential belongs to. Neurotrader sets no budget and no cap on it.
Neurotrader applies two rules before it lets an algorithm trade real funds. They exist to protect you from losing real money, and for nothing else.
Built-in algorithms
Rule one: a built-in algorithm does not trade real funds.
The built-in algorithms are yardsticks and textbook rules: Buy and Hold, Cash, Random, DCA, Constant Mix, Equal Weight, SMA Crossover, SMA Long Short, RSI Threshold, Momentum, MACD Crossover, Bollinger Reversion, Donchian Breakout and ATR Trailing Stop. They are there so you have something to measure your own algorithm against, and so you can learn how the app works with rules everyone knows. They are not strategies to put money behind. Nobody tuned them for a market, and some of them, such as Random, are designed to have no edge at all.
For that reason Neurotrader refuses every built-in algorithm with real funds. An algorithm group that holds a built-in algorithm is refused too, whatever else is in the group: a group trades one account, so one built-in child would be trading your money.
The built-in algorithms remain available everywhere else. See Built-in algorithms for the full list.
Confirmation
Rule two: an algorithm of your own trades real funds only after you have confirmed it.
An algorithm of your own is one you brought to Neurotrader: a plugin you wrote, an algorithm the Algorithm Assistant built for you, or a remote algorithm that runs your own program. Neurotrader cannot judge whether it is any good. What it can do is make sure you looked before you put money behind it. An algorithm is confirmed when all three of these are true:
- You ran it in a simulation over a considerable amount of market data, and the run finished.
- You opened the results of that run.
- You confirmed the algorithm yourself, from those results.
The confirmation is your statement: "I have seen what this algorithm does and I accept that it will trade my money." Neurotrader never confirms an algorithm for you, and no result, however good, confirms one automatically.
A confirmation belongs to the build of the algorithm you tested. If you rebuild a plugin, the new build is a different program from the one whose results you saw, so it needs a new confirmation. Run the new build in a simulation, look at the results, and confirm again.
Limits of a confirmation
Confirming an algorithm does not mean it is profitable or safe. It means you have seen it run on past prices. It can still lose money.
The steps are in Algorithm confirmation.
Scope of the rules
Both rules apply in one place only: a Real Trade run in the venue's production environment, where orders use real funds.
They do not apply anywhere else:
| Place | Rule one | Rule two |
|---|---|---|
| Simulation | Does not apply | Does not apply |
| Live Simulation | Does not apply | Does not apply |
| Demo run at the venue | Does not apply | Does not apply |
| Real Trade in the production environment | Applies | Applies |
So you can run SMA Crossover in a simulation, compare your plugin with Buy and Hold on live prices, and rehearse an unconfirmed algorithm in a Demo run with demo funds. Nothing is taken away from the modes where no real money is involved. See Operation modes for the modes themselves.
Refusals
When a rule is not met, Neurotrader refuses, and says which rule and which algorithm. A refusal can appear at three moments:
- When you create or change a real-funds runner. A runner that names a built-in algorithm, or an algorithm of your own that is not confirmed, is refused with the reason.
- In the runner's check. Before a run, Neurotrader checks that the setup can run at all. The two rules are part of that check.
- At start. The rules are checked again at the moment you start the run. An algorithm you rebuilt after you set up the runner is refused here, even though the same runner started before.
In the app, built-in algorithms are not offered at all when you set up a runner for real funds, and the reason is shown beside them. A refusal is never an order: nothing is sent to the venue until every check has passed.
Through the API, the same refusals come back as errors. See Errors.
Per-run confirmation
Confirming an algorithm is something you do once per build. Starting a run is something Neurotrader asks you about every time.
Before every start of a run at a venue, the app shows a dialog that states where the orders go, in which environment, with which algorithms, on which instruments and with which credential. For the production environment it says plainly that the run uses real money. Nothing is remembered from the last time, and there is no setting that switches the dialog off. Its purpose is that someone who picked the wrong runner notices before it trades.
The dialog limits nothing. Once you confirm, what the algorithm does is up to the algorithm.
Limits of Neurotrader's role
Know what Neurotrader does not do, so that you do not rely on it for these:
- It gives no advice. Neurotrader does not recommend algorithms, instruments, amounts or moments to trade, and nothing in the app or in this documentation is financial advice.
- It does not hold your funds. Your money stays in your account at the venue. Neurotrader cannot deposit or withdraw, and it refuses an API key that is allowed to withdraw.
- It does not hold your keys on its servers. Your API keys are stored in your computer's secure key store. Orders, account details and live prices travel directly between your computer and the venue. See Venue account connection.
- It does not cap losses. There is no budget, no daily limit and no automatic stop when an account falls. If you want one, it has to be part of your algorithm, or you have to stop the run yourself.
- It does not promise profit. A confirmation, a simulation result and a Demo run all describe the past or a rehearsal. None of them is a promise.
- It does not trade on its own. Neurotrader takes no trading decision. It does not close a position because the market moved, and it does not resume a run that ended.
End of a run
A run with real funds does not end by itself. You stop it, and when you do, the algorithm may still have orders waiting at the venue and may hold what it bought. Neurotrader asks what to do with them, and has no default, because either answer can be the right one and the wrong one costs money:
- Close: Neurotrader cancels every order the run still has working, then sells what the run's own fills bought, and waits for the venue to confirm each step. What you held before the run started is left alone.
- Leave: the run ends. Every working order stays at the venue, and every position stays as it is. From then on they are yours to manage at the venue.
After the stop, the run's record states what was cancelled, what was traded to close, what was left standing and anything that failed. If something failed, the account is not in the state you asked for, and you check it at the venue.
If a run ends without a stop, for example because the computer lost power, nothing was closed and nothing was cancelled. Neurotrader shows what it last knew, does not reattach to those orders, and leaves the runner in an error state until you have dealt with it. See Real-funds runs for what to check.
Related
- Algorithm confirmation: confirm an algorithm of your own
- Real-funds runs: start, watch and stop a run with real funds
- Demo runs: rehearse at the venue with demo funds
- Venue account connection: API keys and where they are kept
- Operation modes: the four ways to run an algorithm
- Built-in algorithms
Margin and leverage
Borrowing on a simulated account: the margin terms you set, loans and interest, the margin level, margin calls, liquidation and the account journal.
Plans and quotas
What a plan governs, what happens when you reach a limit, how a plan change takes effect, and how long Neurotrader works offline.