← All guides

Teaching example, from idea to paper bot

Updated: 2026-11-14

Let’s walk the whole cycle on a simple idea: buy UP on BTC 15-minute contracts when spot is in a short uptrend. At the end you’ll see how the same loop looks for a crypto or stock strategy.

The numbers in this example are illustrative teaching values: realistic, but not a promise of returns. Yours will differ, and most first ideas get rejected by the backtester. That’s normal: every idea killed on history in a minute is money you didn’t lose on the exchange.

Build the strategy

Open the Strategy layout (Strategies · Constructor · Results), create an Up/Down strategy and fill in the cards:

Card Setting Why
Market BTC, 15m Most data, fastest statistics
Position size Fixed $ = 50, Max positions = 1 $50 of $1,000 = 5% per trade; well above the 5-share exchange minimum
Entry conditions (UP only, ALL) MACD histogram (12/26/9) > 0 and EMA distance % (20) > 0 Histogram above 0 = upward momentum; price above EMA-20 = uptrend confirmed
Exit conditions Take-profit price_up = 0.75, Stop-loss price_up = 0.30 TP and SL are absolute contract prices, not percentages
Entry time window 10–60% Skip the chaotic start and the hopeless end of each contract
Market context filters Max spread = 10% A wide spread eats the edge
Circuit breakers Max drawdown = 20% The safety fuse

Name it “Trend filter BTC 15m”. In the run line pick the last 14 days and press Save and run. The strategy card now has version v1 and its first run.

First run: a profit proves nothing yet

Result: +$74 (+7.4%), 96 trades, win rate 58.3%, profit factor 1.42, drawdown 6.8%. It’s tempting to build a bot right away. Look at the significance strip first:

  • Edge / trade: +0.9 ± 1.2 pp — the interval crosses zero.
  • Trades needed (t=2): ~380 of 96 actual.
  • PSR 84% — below the 90% bar.

Translation: encouraging, but 96 trades can’t separate skill from luck. Profit over a short window is always deceptive.

The right move: don’t tune parameters, lengthen the window. In the run line change only the dates to 60 days and run again. Run settings aren’t a version, so this is still v1.

Second run: enough statistics

+$233 (+23.3%), 421 trades, profit factor 1.36, drawdown 9.4%, edge +1.0 ± 0.55 pp (the interval is fully positive), more trades than needed (~380), PSR 93%.

Note what happened: the edge barely changed, the confidence in it did. The metrics cooled a little (PF 1.42 → 1.36), which is typical over longer windows.

Validation: Monte Carlo — profitable 96%, fragility 8%, robust. Order shuffle — percentile 62, normal. p = 0.02, SIGNIFICANT. DSR 91%. A control run on a different 60-day window keeps the edge positive. The evaluation ladder is passed.

Monte Carlo robustness: a histogram of 1,000 resampled outcomes, almost all above zero What “robust” looks like: almost all 1,000 resampled histories end in profit, fragility 0%. Demo data.

Polish with Analytics

Calibration by entry price shows the structure of the edge:

  • 0.30–0.50 — +2.4 pp above breakeven. This is where the edge lives.
  • 0.50–0.70 — indistinguishable from zero.
  • 0.70–0.85 — −1.9 pp below breakeven. Expensive entries lose.

One targeted change: add the entry condition price_up < 0.70. Saving makes v2. The third run gives +26.2%, PF 1.51, drawdown 7.1%. In Compare, the parameters block highlights exactly one changed row.

Approve and go to paper

Open the strategy card. The Readiness summary for v2 is green, so press Approve v2 for a bot, then Create bot from v2. The bot gets a frozen copy of the approved version and remembers the approval run, so later edits to the strategy don’t change it. It starts on paper: the backtest proved the past, paper checks the present. Going live is a separate step that always needs your confirmation.

The same loop for crypto or stocks

Say the idea is an RSI pullback on ETHUSDT, 1h bars, crypto perpetual.

  1. Build it in the Constructor with the Crypto market, set real fees and slippage, run 2 years.
  2. Read Results against buy & hold: a strategy that loses to just holding isn’t paying for its rules yet.
  3. In Validation run Train / test (for example 70/30). “Profitable on train, losing on test” means it’s fitted to history.
  4. Use Edit and re-run: change one parameter in the Strategy window and compare before / after.
  5. Run the strategy check with your profile. Can go to paper → create the bot, run it on paper for at least 14 days, and check Bot vs backtest.

What the example taught. Build → first profit, statistically unproven → lengthen the window instead of twisting knobs → pass significance and validation → find where the edge lives → one targeted fix → approve → paper. The order is the same for any idea and any market. Most cycles honestly end with “no edge, drop the idea”, and that’s a win too.

Related