What’s New

Write the strategy code yourself

A third way to build a strategy: skip the form and the chat and write the code directly, in a new editor that opens on a ready-to-run template and checks your work before you save. Public strategies now show their code to signed-in users, so you can read one and fork it into a strategy of your own.

Until today there were two ways to build a strategy: fill in the form builder, or describe what you want to the AI assistant. Both of them end up writing the same thing — a small program that the platform runs. From today you can write that program yourself.

A third way to start: Code. On the New strategy page, beside the assistant and the builder, there is now Write the strategy code yourself. It opens an editor on a complete, commented, ready-to-run strategy — a put credit spread with a profit target and a stop — that you can save exactly as it is, or take apart and rebuild. Nothing about the result is second-class: a strategy you write by hand is backtested across every trading session, sits in your list beside the others, and can be handed to a bot like any other.

Validate tells you what is wrong, in words. The rules a strategy has to satisfy have always been enforced when you save — one trade per session, defined risk only, limit orders only, a declared entry window. Now there is a button that runs those same checks on demand and shows you the first thing it found, so you fix it in the editor rather than discovering it on save. Your code is also run against a real trading session before it can be saved: if it crashes there, you see the error it raised. A green check is a promise — the same code will not be turned away by the save.

Public strategies now show their code. This applies to every public strategy, including ones shared long before today. Open one while signed in and there is a new Code section: read it, copy it, or press Open in editor to fork it into a strategy of your own — yours to change, with its own results, leaving the original untouched. Anonymous visitors see the strategy and its results as before, but never the code. Nothing about your private strategies changes: their code is yours alone, as it always was.

There is a new reference page for all of it — writing strategy code — covering the callbacks, the entry-window declaration, everything a strategy can read and do, and the same template the editor gives you.

If the form and the chat already do what you need, nothing changes for you. This is for the times when what you want to express doesn't fit in a form, and you would rather write it than describe it.