Skip to main content
Strategy Builder, BTCUSDT 4H: Builder

Strategy builder and backtesterBacktest it.
Then try
to break it.

Write entry and exit rules, run them over the bars on your chart with commission and slippage, then check the result on bars it was never tuned on. Pro plan, $30 a month.

01 Build

One idea.
No code.

TradersWeek Strategy Builder is a backtester inside the charting terminal. You set entry and exit conditions on price and indicators, group them with ALL and ANY, and give the trade a stop, a target and a risk per trade. It tests on the bars loaded on your chart, and it never places a real order. It is part of Pro, $30 a month.

  • From a preset40 to start from: Golden Cross, MACD Momentum, Keltner Squeeze Breakout, London Open Breakout, Divergence Hunter and 35 more. A preset loads as your own copy.
  • From listsPick a value, a comparison and an indicator. Groups nest inside groups, so no code is needed.
  • Around the newsSkip the bars around FOMC, CPI, NFP, GDP, ECB, and BoJ releases, or trade only near them.
  • From a sentenceOn Premium, type the idea and an AI model drafts the rules for you to check.
Builder tab with the ATR Channel Breakout conditions

The idea on this page: ATR Channel Breakout. Buy when the close breaks above the upper Bollinger band while ATR has risen for 3 bars, exit on a close below SMA 20. Shorts mirror it.

02 Test

+31.9% in two years.
After costs.

BTCUSDT on the 4-hour chart, July 2022 to June 2024. 90 trades, profit factor 1.36, deepest drawdown 17.9%.

Holding the coin made 214% over the same bars. The report draws both curves on one chart, so that is the first thing you see.

Backtest overview: net P&L +31.91%, max drawdown −17.92%, equity curve against buy and hold
Fills
At the close of the signal bar
Costs
0.1% commission and 0.05% slippage, each side
Size
2% of the balance at risk, stop 2.5 ATR away
Start
$10,000
03 Break

Then it met bars
it hadn't seen.

Walk-forward cuts the history into four windows. In each, a genetic optimizer re-tunes the stop, the targets and the ATR period on the first 60%, then trades the next 40% untouched.

Tuned, three windows of four made money. Untouched, one did. Together the unseen bars lost 3.00%, and the verdict is Overfitted. Efficiency is the untouched Sharpe over the tuned one, and the verdict takes its median across windows with at least 5 trades on each side: from 0.7 it says Robust, from 0.4 Acceptable.

Walk-forward windows W1 to W4, in-sample against out-of-sample, verdict OverfittedWalk-forward, recorded in the terminal
Stress

Same 90 trades.
A thousand orders.

The 17.9% drawdown happened because the losses came in that order. Monte Carlo shuffles the same trades 1,000 times: the middle run draws down 13.4%, and one run in twenty goes past 21.9%.

The result stays at +31.9% in every run, only the path changes. Also 5,000 or 10,000 runs.

Monte Carlo: max drawdown 5th percentile 8.88%, median 13.44%, 95th percentile 21.89%
04 Decide

Overfitted
is a result.

The backtest and walk-forward took under a second, and none of it cost money. From here the idea can change, go on paper, leave for TradingView, or be dropped.

What the test
assumes.

One run stops at 1,000 trades. With the default windows, walk-forward needs 2,100 bars on the chart from 15-minute to 4-hour, 2,050 on daily and weekly, 2,200 on 1 and 5 minutes: scroll left and older bars load.

SettingDefaultYours to change
Entry and exitMarket ordersClose of the signal barLimit or stop entry with an ATR offset
Stop and targetChecked on the bar's open, high and lowStop 1.5 ATR, target 2 ATR. Both hit in one bar counts as the stop, unless the bar opens past the targetSecond target, trailing stop, breakeven
CostsSet by the market you testEach side: crypto 0.1% commission and 0.05% slippage, forex 0.002% and 0.005%, metals and energies 0.005% and 0.01%, stocks and indices 0.01% and 0.02%Both
Size2% of the balance at risk per trade. The position is capped at 10× the balance on crypto, 30× on forex, 20× on metals and energies, 5× on stocks and indices, so a tight stop risks lessThe percent, not the cap
HistoryCrypto from Binance, forex and metals through a MetaTrader bridgeThe bars loaded on the chartScroll left for more

Strategy questions

Do I need to code?
No. Conditions are picked from lists and grouped with ALL and ANY. On Premium you can also describe the idea in a sentence.
Does a good backtest mean an edge?
Not by itself. The idea on this page made +31.9% on history and lost on the bars walk-forward held back. Run both before trusting a number.
Where does it run?
In your browser. The optimizer and Monte Carlo work in the background, so the chart stays usable.
Can I export to TradingView?
Yes, as Pine Script v5. Rules on calendar events and scanner signals stay behind, and the file says which.
Which plan do I need?
Pro, $30 a month, with a sign-in. Describing a strategy in a sentence is on Premium.

Lose on history.
Not on the account.

40 presets, walk-forward, Monte Carlo. Pro, $30 a month.

Open Strategy BuilderNext: Auto-trading