Strategy Guide

The Strategy category is the core of SBP. It documents what a strategy is, the editor that builds one, the four indicator slots and the strategy features that shape it, and the pages that report, test and improve its result.

The page comes in two parts. What a strategy is explains the parts every strategy is made of and points at the guide page of each part. The pages of the group maps the whole category: what each page does and when to open it.

What a strategy is

A strategy in SBP is a set of trading rules. It is not a market and it is not a backtest: it says at which price or time a position opens, which conditions allow that entry, at which price or time it closes, and how the position is sized and protected. Put on one line, a strategy is where to enter + when to allow it + where to exit + how to manage the position.

Every strategy is made of five parts, and each of them has its own guide page:

PartHoldsGuide
Entry pointExactly one indicator: the price or the time a position opens atEntry Point
Entry rules0 to n indicators that allow or deny an entry and choose its directionEntry Rules
Exit pointExactly one indicator: the price or the time a position closes atExit Point
Exit rules0 to n indicators that allow or deny an indicator exitExit Rules
Strategy featuresThe trade size, the entry timing, the protection, the position limits and the money managementStrategy Features

A new strategy starts from the simplest version of that shape: 0.01 lots, Bar Open as the entry point, Bar Close as the exit point, no rules and no features beyond the mandatory Entry Amount.

The four slots

The four indicator slots are what the strategy trades on. Two of them set a price, two of them decide whether that price may be used:

  • Entry Point and Exit Point are each a single mandatory indicator. The entry point places the pending order level; the exit point closes the position by a signal. The exit point may also be No Indicator Exit, which leaves only the features to close a position.
  • Entry Rules and Exit Rules are optional ordered lists. Their rules never set a price: they allow or deny a signal, and with more than one rule they all have to agree (AND logic).

The direction comes from the rules, not from a separate setting. An entry point that puts the long and the short order at the same price level cannot decide the direction on its own; a directional rule, or Long Only / Short Only, does. When both directions stay possible on the same level, the bar is ambiguous and no order is placed on it.

A strategy stores one rule list and one set of parameters, and the engine trades both directions from them. The short side of a rule is the mirrored wording and the mirrored level of the same stored line — the Strategy Overview page shows that mirror line by line.

Strategy features

Strategy features are the settings around the signals: Entry Amount (always enabled — it is the base size of every entry), entry days and hours, stop loss, take profit, break-even, the session and Friday closes, the maximum position duration, the position and volume limits, the entry delays, spread protection, the direction filters, the four "on opposite signal" actions, Martingale and Grid Averaging Down. Each of them has its own guide page in the features index.

The features are what turn a signal into a trade the account can survive: the limits only take effect when something builds exposure, and the recovery features are meant to be paired with them. A feature that does not apply is listed as not enabled, so the enabled list describes what the strategy actually does.

Indicators

Every rule and every point is one indicator out of the Indicators index. The index carries the matrix of which indicator may fill which slot, the logic rules each one offers, and the signal timing they share: rules are evaluated on the closed bar, and a signal is valid only after the indicator's warm-up.

What a strategy is not

  • Not a market. The server, the symbol and the period are chosen beside the strategy, in the Strategy Editor's toolbar, and one strategy can be tested on many markets — that is exactly what Strategy Multi Market does.
  • Not a result. The statistics, the trades and the curves belong to a backtest of the strategy over some data with some account and Data Horizon settings. Change the data or the account and the same strategy answers differently.
  • Not a stored copy. A Collection record, a Portfolio entry and an exported Expert Advisor each keep their own copy. Editing the strategy in the Editor changes none of them.

Identity: the magic number

Every strategy has a magic number, derived from its rules and features only. It ignores the time of the last backtest and pins the traded volume, so two copies that differ only in lot size or in age are the same strategy; changing a rule, an indicator parameter or a feature setting makes a different one. The Collection replaces a record with the same magic number instead of adding a second one, the Portfolio keys its entries by it, and it becomes the Magic_Number input of an exported Expert Advisor.

That is why the money management is not part of the identity of a strategy, and why re-fitting a strategy does not create a new one.

How a result is produced

The backtester runs the strategy over the loaded bars of one market with the account settings, the symbol settings and the Data Horizon in effect, and produces the trades, the balance and equity curves and the statistics. That is what every report page shows, and what the Collection stores next to a record.

Two details decide how much of a result can be trusted:

  • Ambiguous bars are the bars where the backtester cannot know what happened — typically two directions that could fill at the same price. They are skipped and counted, and the count lowers Backtest quality. See Ambiguous Bars.
  • The fit boundary is the last data time a strategy was tuned against. Everything after it is out of sample, and the out-of-sample figures are the honest answer to "would it have worked forward?".

The pages of the group

Every page of the category in one table, then the same pages grouped by the job they do.

Quick reference

PagePurpose
Strategy EditorBuild the strategy and read its backtest as you change it
Entry PointSet the price or the time a position opens at
Entry RulesFilter entries and choose their direction
Exit PointSet the price or the time a position closes at
Exit RulesFilter the indicator exit
Ambiguous BarsUnderstand the bars the backtester cannot resolve
Strategy FeaturesIndex of the 24 features, grouped by role
IndicatorsIndex of the indicators, their slots and their logic rules
Strategy OptimizerSearch variations of the current strategy and keep the best
Strategy Walk ForwardOptimize over moving windows and test each on the next unseen stretch
Strategy Monte CarloStress the result with random data, parameter and execution changes
Strategy Multi MarketTest one strategy across servers, symbols and periods
Strategy OverviewRead what the strategy is and what it did on one page
Strategy Backtest StatsRead the balance chart and the full statistics
Strategy Backtest HistoryRead the indicator chart and the trades list

The group's pages fall into four jobs: build the rules, look up a catalog entry, report the result, and test the strategy beyond one backtest.

Building a strategy

Strategy Editor — the page where a strategy exists. The market selector, the four slots, the strategy features, the indicator chart and the live backtest on one screen, plus the Add menu (to the Collection, to the Portfolio), the Expert downloads and the app-wide undo history.

Open it when you want to change a strategy at all. Every other Strategy page reads the strategy the Editor holds.

Entry Point — the indicator whose level becomes the pending order price: a time (Bar Open), a line (Moving Average) or a pair of levels that also decides the direction (Bollinger Bands, Donchian Channel, Envelopes, Fractal).

Entry Rules — the ordered list that allows or denies an entry per direction. Read it together with the entry point: the rules are ANDed with the entry point's own signal.

Exit Point and Exit Rules — the same two roles on the way out. A strategy may exit by signal, by a feature (stop loss, take profit, duration, session close) or by both.

Ambiguous Bars — the reference for the bars the backtester skips and the ones Backtest quality counts. Open it when a bar count looks too low or a quality score looks wrong.

The catalogs

Strategy Features — the index of the 24 features with a one-line purpose each, grouped as entry sizing, position protection, position limits, entry timing, exit timing, market conditions, trade direction, position management and loss recovery. Start here, then open the feature's own page for its fields.

Indicators — the index of every indicator with the slots it may fill, the logic rules it offers and the shared slot and signal semantics. Every indicator also has its own page with its parameters and thresholds.

Reporting the result

Strategy Overview — the "what is this strategy and what did it do" page: the description of the rules for both directions, the performance figures, the long/short split, the outcome and exit-reason donuts, the weekday and hour bars, the holding-time cloud and the monthly table. Read-only.

Strategy Backtest Stats — the account's story in the balance chart (balance, equity, drawdown, deposit load) and the numbers behind it in the statistics tables.

Strategy Backtest History — the indicator chart with every executed deal marked, and the trades list. Open it when you want to see where the trades happened rather than how much they made.

All three are read-only reports of the current strategy and market. They follow the Editor, so they reload when the strategy or the market changes, and they have no controls of their own.

Testing and improving

Strategy Optimizer — searches parameter ranges of the current strategy and shows the best candidate that improves the chosen Search best and passes the validation rules. Nothing replaces the strategy until you press Accept.

Strategy Walk Forward — the same engine over moving windows: optimize the in-sample part, trade the out-of-sample part, then roll forward. A stronger check against overfitting than one optimization.

Strategy Monte Carlo — repeats the backtest with random changes to the data, the parameters, the start date and the execution, then judges every copy against one criteria list.

Strategy Multi Market — the same strategy across every combination of server, symbol and period in its lists, each result judged against the same criteria. It answers whether the strategy needs exactly the market it was built on.

  • Generator — the automatic search that writes candidates into a Collection. Its quality depends on the features and indicators this group documents.
  • Collection — where tested strategies are kept, compared and pruned.
  • Portfolio — where strategies of different markets are tested together on one account.
  • Data Horizon — limits the data every backtest in this group runs on.
  • Settings and Symbol Settings — the account and the spread, commission and swap every run pays.