Test a strategy against random entries

Your rule traded on the chart, with its trade stats, its E-ratio against random entries, a noise test, and a verdict.

Trial or ProAbout 3 minutesStudio

Studio with the Strategy test panel open on the right
Bitcoin daily in Studio, with the Strategy test panel open from the strip on the right edge.

Before you start

  • The Strategy test comes with the free fourteen-day trial or Pro: sign in to Studio with Google to start the trial.
  • Open the market you want to test, on any interval. To test years of your own intraday bars, upload your own price file first.

Steps

  1. 1Click the Strategy test icon, a rising line, in the strip on the right edge of Studio.
  2. 2Click words you can use, above the rule box, to see what a rule can be made of: trend, crosses, breakouts, swings, calendar and the Moon. Click clear rule, then click terms to build one; each is joined on with and. every word at the bottom lists all of them.
  3. 3Or type the rule in Enter when this rule fires, or click an example such as EMA crosses VWAP: crosses(ema(9), vwap(ny), up) and ema(8). Press Enter (or use) to take it.
  4. 4In on, choose the bars: this chart, the chart's market at 1h, 15m or 5m (recent weeks only), or a file you uploaded.
  5. 5Choose Long or Short and the hold in bars. Choose the hold before you run: picking the best hold off the curve afterwards is a different, unadjusted claim.
  6. 6Set cost, your commission and slippage per round trip in points (on MES, 0.75 is about $3.75). Optionally set a split date to see the trades before and after it.
  7. 7Press run. Each trade enters at the next bar's open after the rule fires and leaves on the close of its last bar, one trade at a time.

⌥ is Alt on Windows and Linux.

Reading it

The first line is the verdict. Edge means the average trade beat at least 95% of random entries: the same signals moved to other stretches of the same history, 500 times, keeping each entry's time of day on intraday bars. No edge means random entries did as well often enough to be luck. Under 30 trades it says underpowered.

Noise runs: the rule is run again 100 times on prices with a little noise added, and traded on the real prices. A rule that only worked on this history's exact wiggles stays profitable in well under half of them.

E-ratio is the average move in your favour over the average move against you, each scaled by the ATR when the signal fired. Above 1, price has tended to go your way; the grey band behind it is what random entries got.

The words most strategies need: ema(20) (close above the 20-bar EMA), vwap(ny) (close above the session VWAP, which starts again at the 09:30 New York open), crosses(a, b, up) (line a crossing above line b; a line is close, ema(n), sma(n), vwap(ny) or a number), and opening(ny, 30) (the opening range broken). Join them with and, or and not.

A good verdict isn't a reason to trade. Check it with a realistic cost, year by year, under noise, after a split date, and across settings with the settings grid.

What it looks like

The words you can use list, after two clicks
Words you can use: two clicks, crosses(close, ema(20), up) then above(200), build the rule in the box. Change the numbers to taste.
A Strategy test result: verdict, stat tiles, E-ratio, equity and year-by-year table
Close crosses EMA 20, long, held 10 bars, on Bitcoin daily: it made money and still reads no edge, because 35% of random placements did as well in a market that rose.
The E-ratio curve over the random entries' band
The E-ratio for holds of 1 to 30 bars (green), over what random entries got (grey, 5th to 95th percentile). An edge climbs out of the band.
Year-by-year table of trades and points
Year by year: is the money spread out, or from one or two years?
Try it in Studio Comes with the free trial or Pro.