Bentrix Docs
HomePricingDashboard

Strategies in the application

Write a strategy in the laboratory's Strategies panel, run it on a replay, read its tester report — then load it onto a paper or real workbench.

01Written in the laboratory, run anywhere

A strategy is a file of rules that Bentrix runs for you. You write and test it in the laboratory, where you can replay years in seconds and go back as often as you like. When it is ready, you load it onto a paper workbench — a forward test on the live market with no money — or onto a real account.

A rule can read a model's forecast as one of its operands (forecast:<model>.close), read by arrival like everything else: putting a forecast to work.

Every save is a new version: version 1, 2, 3… A saved version never changes, and every run records the version it ran, so any result can always be traced back to its exact rules.

02The Strategies panel

Open it from the Strategies button on the application's bar, or from a workbench's control row.

  • In the laboratory: + for a new strategy, Edit to open the editor, Run… to run one on the selected workbench, and your batches.
  • In the Real area: your saved strategies and Run… to load one onto the selected paper or real workbench. Strategies are written in the laboratory only.

03The Run sheet

Pace

Where
The Run sheet
What it does
How fast a laboratory run moves through history.
Choices
Machine (as fast as the computer can), Replay (at the replay's speed)
Default
Machine in the laboratory; the market's own pace on paper and real

Armed

Where
The workbench's automation switch
What it does
Whether a run's orders are sent. Unarmed, each intent is written to the trace and none is sent.
Default
unarmed
When to change it
Run unarmed first and read the trace.

Positions on stop

Where
The Run sheet
What it does
What happens to a run's open positions when it stops.
Choices
Leave them, Close them
Default
Leave them

At machine speed, a year of one-minute candles runs in about twenty seconds.

What a strategy is made of, how to write one, batches and walk-forward tests, and strategies in Python are explained in the Strategies section.

In this part

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed