stratester.com

Documentation

Building blocks

A stratester bot is made of rules, and rules are made of blocks: 33 conditions and 4 actions. Each page below explains exactly how the simulation engine evaluates the block, its settings, how traders use it and the mistakes to avoid.

How rules work

A rule reads WHEN conditions THEN action. Conditions combine with and (all true), or (any true) or xor (exactly one true), and not inverts a single condition.

On every candle close the engine checks the rules from top to bottom. A rule that fires trades at that close, or places a limit or stop order that waits for its price, and the portfolio is updated before the next rule is checked. Conditions only see candles that have already closed.

Price, indicator and pattern conditions can also read bigger candles than the run uses, by ending with a timeframe such as on 4h. Every fill pays the fee and slippage set on the bot.

Two rules
when rsi(14) < 30 and cooldown 24
then buy 50%

when pnl up 6% or pnl down 3%
then sell 100%

Price

Conditions on the price itself: moves, levels, breakouts and candle shapes.

Indicators

Classic technical indicators, computed with the formulas traders know.

Patterns

Candlestick patterns and price-action structures such as fair value gaps and sweeps.

Timing

When a rule may fire: hours, weekdays, cooldowns between trades and a cap on buys per day or week.

Portfolio

Conditions on the bot's own position and balance: take profit, stop loss, trailing stops, time stops and drawdown.

Actions

What a rule does when its conditions are met: buy or sell, by percentage or dollar amount, at market or with a limit or stop order.

Simulated results are hypothetical. They include only the fee and slippage you set on the bot, not every real-world cost or market condition, and past performance does not guarantee future results. Nothing here is financial advice.