Algorithm Assistant
Describe a strategy in plain words and get an algorithm written, built and loaded on your own computer: what the Assistant does, what it needs, what leaves your computer and what it cannot promise.
You have a trading rule in your head and you do not write Rust. The Algorithm Assistant turns a description in plain words into a working algorithm. You write what the strategy should do, read back what the Assistant understood, and it writes the code into a folder you choose, builds it and tests it. From there it is an algorithm like any other: you add it to Neurotrader and run it in a simulation.
For the steps in the app, see Algorithm Assistant use.
Path from a sentence to an algorithm
A description can be as short as this:
Whenever bitcoin drops below its average over 90 days, buy gold with half the money in the account.
From that sentence the Assistant works out what you did not spell out:
- The instruments and their roles. Bitcoin is read and never traded. Gold is traded.
- The indicator. "Its average over 90 days" is a moving average with a window of 90 days.
- The parameters. The window and the half become parameters with those values as defaults, so you can tune the algorithm later without having it written again.
- The refusals. The algorithm refuses a simulation that does not give it an instrument for each role, with a message you can read.
- The open questions. Does it buy once, or every time the condition holds? Does it ever sell? The Assistant does not guess silently. Each open point becomes a question with a suggested answer.
Three steps, not a chat
The Assistant is a fixed sequence, not a conversation:
- Describe. One box, plain words, any language.
- Confirm. The Assistant shows a readback: one or two sentences stating exactly what the algorithm will do, with its rules, amount, instruments, parameters, indicators and open questions. You answer the questions and confirm.
- Write. The code is written into your project folder, built and tested until both pass.
The readback matters more than the description. The code is written from the readback, not from your original words. If a rule in it is not what you meant, go back and say it differently before anything is written.
Descriptions that are not algorithms
Not every text describes something that can be built. The Assistant says so instead of inventing a strategy:
| The Assistant answers | Case |
|---|---|
| This is not about trading | The text has nothing to do with trading |
| There is nothing to build here yet | It is a question or a request for commentary about markets |
| This does not describe a rule yet | It asks for an algorithm but states no condition and no action. "Make me money" is a goal, not a rule. |
| This needs data Neurotrader does not have | The idea depends wholly on data the engine does not carry |
| This cannot be built | It describes market manipulation |
A vague rule is still a rule. "Buy when it dips" is accepted, and what it leaves open becomes questions. A description that can be built except for one part is accepted too, with that part listed as unsupported.
The Assistant builds what you specify. It does not choose a strategy for you, and it gives no investment advice.
Instruments at the simulation
A written algorithm names no instrument. It knows roles: one instrument it
reads, one it trades. You choose the actual instruments, such as BTCUSDT,
when you add the algorithm to a simulation, exactly as for any other
algorithm. The same algorithm can therefore run on any pair that fills its
roles.
Code in your folder
The result is an ordinary plugin project in a folder you chose. It is yours:
- Open it in your editor, read it and change it.
- Build it again after your own changes.
- Keep it, copy it or delete it. Removing a project from the Assistant's list deletes no file.
The project is written in Rust against the Neurotrader SDK. Everything in Plugin authoring applies to it.
Changes to an existing algorithm
When you want the next thing (sell at five percent instead of three, add a stop), you describe the change in words and go through the same three steps again: describe, confirm the new readback, write.
The Assistant has no memory of earlier conversations. What it knows about
your algorithm is what is in the project folder when the change starts,
including anything you edited by hand. The record it needs is a folder named
assistant inside the project, which holds the confirmed readback, your
description and the changes asked for since. If you delete that folder, the
algorithm still works. You only lose the ability to change it through the
Assistant.
Build Agent
The writing, building and testing happen on your computer, done by a small program called the Build Agent. It is installed with Neurotrader's engine. The app starts it the first time you open the Assistant page, and it keeps running after you close the app, with an icon in the system tray, until you quit it there or sign out of your computer.
The Build Agent runs as you, so it can write to your folder and use your tools. It:
- creates the project in the folder you chose, from the public plugin skeleton;
- writes and edits the project's files as the Assistant directs;
- builds the project and runs its tests;
- uploads the built library to the engine when you choose Add to Neurotrader.
It never moves, hides or deletes a project folder. It notifies you when a write or a build has finished or failed, so you can leave the page while it works.
Toolchain
Building an algorithm needs developer tools on your computer:
| Tool | Purpose |
|---|---|
Rust (cargo, rustc) | Compiles the algorithm |
| C++ build tools | Link the compiled library. On Windows these are Microsoft's C++ Build Tools. |
You do not need to be a developer to get them. The Build Agent checks what is installed, and on Windows it installs what is missing when you ask it to:
| Component | Download | Space on disk | Installed for |
|---|---|---|---|
| Microsoft C++ Build Tools | About 2.1 GB | About 6.5 GB | The whole computer. Windows asks for permission once. |
| Rust | About 130 MB | About 0.8 GB | Your user account only |
Nothing is installed that you did not start, and a tool that already works is never updated, replaced or removed. On other systems, and for anything the Build Agent cannot install, the setup guide in the app says how to install the tools yourself.
The real test of a toolchain is a trial build of an empty algorithm. The Build Agent runs one when you ask for a check and at the end of a setup.
Data sent from your computer
The language model that reads your description and writes the code runs in the Assistant's own service, operated by Sigmastone, which passes the work to a model provider. This is what is sent there and what is not.
| Sent to the Assistant's service | Not sent |
|---|---|
| Your description, and your answers to the open questions | Your broker keys or any stored credential |
| The readback and its details, when you confirm | Your simulations, runs and results |
| The contents of files in the project folder that the model asks to read while it writes or changes the algorithm | Any file outside the project folder |
| The output of the project's builds and tests | Your market data |
| Your sign-in token, to check your plan and your credit |
Three limits protect your computer while the code is being written:
- The model works only inside the project folder. A request to read or write anything outside it is refused.
- The model cannot run commands. It can ask for a build and for the tests, and nothing else. Text it writes is never executed as a command.
- The model cannot change what a build runs. It cannot write the
project's
Cargo.toml, a build script or the.cargofolder. If the algorithm needs a new dependency, the summary says so and you add it yourself.
Nothing about your algorithm is kept by the service between one change and the next. The record of a project is in its own folder, on your disk.
The page that shows the writing in progress lists which files were touched and whether each build and test passed. It does not show the code. The code is in your folder.
Checks on a written algorithm
When the Assistant finishes, four things can be said about the algorithm, and only three of them have been checked:
| Check | Content | Not shown |
|---|---|---|
| You confirmed the readback | The readback says what you meant | That the code matches the readback |
| It builds | The code is valid for this version of the SDK | Anything about its behaviour |
| Its own tests pass | The cases the tests cover | The cases they do not |
| It trades as you intend | Not checked. A simulation shows that. |
Assistant mistakes
It is an AI model. It can misread a description, and it can write code that does something other than what you meant. Read what it writes, run it in a simulation and look at every order it places before you rely on it. What an algorithm trades is your responsibility. Do not run it in Real Trade until you have checked it: real money is at risk there, and a mistake in the code can lose it.
An algorithm written by the Assistant, like any algorithm of your own, has to be confirmed before it can trade real funds. See Algorithm confirmation.
A written algorithm is native code that runs inside the engine, exactly like a plugin you wrote by hand. It is not sandboxed.
Plans and credit
The Assistant is part of the Basic and Pro plans, each with its own credit for every period. The evaluation includes a one-time credit.
You see your credit as one bar in the Assistant's toolbar: the percentage used in this period and the day it resets. It is never shown as an amount of money or a count of words.
- Every attempt uses a little of the credit: reading a description, updating a readback after you change an answer, and above all writing the code.
- A description that turns out not to be an algorithm uses credit like any other attempt.
- A change costs about what a first version costs. It does not grow with the number of earlier changes.
- When the credit is used up, nothing new can be started until it resets. A write in progress stops, and the files stay as they were at that moment.
Building a project, opening it and adding it to Neurotrader use no credit.
Deliberate limits
- No chat. There is no free conversation with the model. Every request is read as a description of an algorithm or of a change to one. That keeps the result checkable: you always confirm a readback before code is written.
- Rust only. The Assistant writes native plugins, which run in every operation mode without a separate program to keep alive.
- English answers. You can describe in any language. The readback, the questions and the messages are in English.
- No strategy suggestions. A goal without a rule is refused, because choosing a strategy for you would be advice.
Related
- Algorithm Assistant use: the steps in the app
- Algorithms
- Plugin authoring: what the written project contains
- Plans and quotas
- Real trading safety