Settings

The Settings page configures the virtual trading account the backtester trades with, the look and feel of the application, and the Backtest stats table rows.

The page is organized in two columns:

  • Account settings — the currency, starting balance, leverage, and stop out level of the virtual account.
  • User interface — the font size and the data loading notifications.

A second row hosts the Custom AI Provider and Backtest stats sections. The AI section is documented in its own guide: Custom AI Provider Key.

Account settings

Account settings describe the virtual account. Backtest results — balance, profit, margin, and stop outs — are calculated with these values, so set them to match the broker account you want to simulate.

Account currency

The currency of the virtual account: AUD, CHF, EUR, GBP, JPY, NZD, or USD (default). Backtest results are calculated and reported in that currency.

Initial account

The starting balance of the virtual account. Values from 100 to 1,000,000 in steps of 100 (default 10,000). Every backtest starts from this balance.

Leverage

The leverage of the virtual account: 1/10, 1/20, 1/30, 1/50, 1/100 (default), 1/200, or 1/300.

Leverage determines the margin required to open a position. With 1/100 leverage, opening a position requires 1% of its notional value as margin; higher leverage reduces the required margin.

Stop out level

The margin level, in percent of the required margin, at which the backtester force-closes the open position: 10%, 20%, 30%, 50% (default), or 100%.

50% matches the MetaTrader 5 tester default.

User interface

Font size

The default font size for the application layout and content: 14px (Smaller), 15px (Small), 16px (Normal, default), 17px (Large), or 18px (Larger).

The font size applies immediately when you change it. You may prefer it over your browser's zoom feature.

The same setting can be changed app-wide with the Ctrl+Alt+= and Ctrl+Alt+- keyboard shortcuts. The selector stays in sync.

Show data loading progress

On by default. Shows a pop-up with the percent progress of data loading in the lower-left corner of the application.

Show data loaded message

On by default. Shows a pop-up in the lower-right corner when data finishes loading.

Backtest stats

The five selects — Backtest stats rows 1 to 5 — pick the metrics the Backtest stats tables show:

  • The Strategy Editor table shows all five rows.
  • The Collection page cards show all five rows.
  • The Collection side panel shows the first three; when the collection sorting criterion is not among them, the panel inserts it as a highlighted first row.

Every backtest statistic is available: Net profit, Profit factor, Max drawdown %, Sharpe ratio, R-squared, and more. Duplicate picks are allowed — the same metric can fill several rows. When the collection sorting criterion is one of the five configured metrics, its row is highlighted on the Collection page; otherwise it is inserted as the first table row.

The defaults are Net profit, Count of trades, Profit factor, Max drawdown %, and R-squared.

When changes apply

  • Font size changes apply immediately.
  • The other controls are read when you leave the Settings page. Account settings affect the backtests you run after that; the notification toggles affect the next data loads; the Backtest stats rows apply the next time the tables render (page open or a new backtest).
  • Settings are stored locally when the application closes, so they survive the next session.

Settings file

The toolbar's Download and Upload buttons move the whole configuration as one JSON file (sbp-settings), so a setup can be backed up or carried to another browser.

Download saves SBP settings <YYYY-MM-DD>.json with the settings the page shows, so an edit made before the click is included. The file carries every settings group — the account, the user interface, both markets (the Editor's and the Generator's), the data horizon, the data import sorting, the MQL export options and the Sai thinking level — and nothing else: no strategies, collections, imported data or background jobs.

Upload reads such a file and replaces every settings group with the file's values. It is a replacement, not a merge, so a setting the file does not carry returns to its default. The page refreshes immediately and the font size is applied. A value the page cannot show keeps the current value — an unknown currency, a leverage that is not in the list, a font size outside 14–18px, a date outside 1990–2050 — and the confirmation says how many values were kept.

A file that is not an sbp-settings document, or one written by another version of the application, is refused with a message and nothing changes.

The settings file is not the collection or portfolio export: those carry strategies and live on their own pages.

Reset all settings

Use Reset all settings in the toolbar to restore every application setting to its default value.

The reset covers all settings groups, including the ones edited on other pages: the data horizon, the default market selection, the data import preferences, the MQL export options, and the Sai thinking level. The page view refreshes immediately and the font size is re-applied.

The reset does not touch server-side data:

  • Imported data files and symbol settings stay unchanged.
  • The Custom AI Provider key stored on the Sai service stays unchanged.

Custom AI Provider

The Custom AI Provider section on this page lets you add and manage a personal AI provider API key and model. The workflow, storage, and troubleshooting are documented in the dedicated guide: Custom AI Provider Key.

Troubleshooting

  • A backtest still uses old account values: account settings are read when you leave the Settings page. Navigate away and run the backtest again.
  • The font size changed unexpectedly: the Ctrl+Alt+= and Ctrl+Alt+- shortcuts change it app-wide. Set it back in the User interface section.
  • Data loading notifications disappeared: re-enable Show data loading progress and Show data loaded message, then leave the page.
  • Reset did not clear the AI provider key: the key lives on the Sai service, not in local settings. Remove it in the Custom AI Provider section.