Basis: methodology
The exact rules, how they're tested, and every assumption behind the numbers. Rules as of November 7, 2026.
Read this first
Basis is a research project. Every trade is placed in an Alpaca paper account at live prices. No real money is used, nothing here is advice, and none of the results show that Basis is profitable.
Results on the desks come from three different kinds of evidence, and they aren't equally trustworthy. Each one is labelled wherever it appears:
| Kind of evidence | What it is | How much to trust it |
|---|---|---|
| Backtest | The rules replayed on the last 30 trading days of real 1-minute prices. Re-run daily. | Least. These are the same recent days the rules were tuned on, so the result flatters them. |
| Walk-forward test | Settings are picked using only earlier months, then scored on the next month they never saw. Stocks: 12 months, trained on the 3 before each. Options: 6 months of real option prices, trained on the 2 before each. Re-run weekly. | More. It's the closest thing to how the rules would have done going forward. |
| Paper trading | What the engine actually did, live, in the paper account, shown trade by trade on the desk. | Most honest about execution, but a short record so far, and paper fills are kinder than real ones. |
The dated results table is in the case study. The latest numbers are on the stock desk and crypto desk.
Stock rules
Two-timeframe trend on the S&P 500, Nasdaq-100 and Dow funds (SPY, QQQ, DIA). The engine and the backtest call the same function, so the test checks exactly the rule that trades.
- Signal. On completed 1-minute bars, "up" means price above its 9-bar average, the 9 above the 21, the 21 rising over the last 5 bars, and price above the day's VWAP. On the last completed 5-minute bar, the 9 must be above the 21 and price above VWAP. A buy fires on the bar where both line up; a short is the mirror image.
- Exits. Stop at 1.5× and target at 3× the 5-minute ATR(14). It also exits early when the 9/21 averages cross back on both charts, flips on a fresh opposite signal, and is flat 4 minutes before the close.
- Size. $1,000 of risk per trade, capped at $100,000 of stock, with at most 3 positions open across all funds.
- Limits. Entries from 9:45 am to 3:50 pm ET, 3 trades per fund per day, 20 minutes between entries. Trading stops for the day at a $1,500 loss. Once the day is up $1,000 or more, giving back half of the day's best ends it.
- Opening-range breakout. The 9:30–9:45 range sets the levels; a 5-minute close outside it before 2:30 pm is a trade, with the stop at the middle of the range and the target at twice the risk. One per fund per day, stock only.
Options rules
- When. A trend signal, or three green (or red) 5-minute candles in a row, buys an at-the-money call (or put). Breakout signals don't buy options any more (see the change log). No entries after 3:00 pm ET or after a 3% move on the day.
- Which contract. S&P 500 signals use one SPX contract if it costs up to $2,000, otherwise XSP. Dow signals try DJX, then DIA. Nasdaq signals use QQQ options. Same-day expiry before noon, the next expiry after. Contracts with a bid-ask spread wider than 15% are skipped.
- Size and exits. Up to $1,000 per trade, 6 a day, one open per fund. Exit at −50% or +100% of the price paid, when the fund hits the signal's stop or target, when the trend flips, or by 3:45 pm. The most a trade can lose is what was paid.
Crypto rules
A separate paper account, long only. Runs every 5 minutes.
- Trend (BTC, ETH)Hold the coin while its daily close is above the 50-day average and sell on a close below it, with a 15% safety stop. $2,000 per coin. Chosen after testing three styles on two years of data: settings picked on year one, judged on year two.
- Short-term experiment (SOL, DOGE)Buys $10,000 when the 5-minute chart turns up, and sells at +8%, −4% or after 24 hours. This rule lost money in testing. It runs as a labelled experiment, kept apart from the trend holdings, to measure how fees affect short trades.
Costs and fills
Every backtest and walk-forward result is after these costs. Where an assumption is generous, it says so.
| Item | Assumption in the tests | Known gap |
|---|---|---|
| Stock entries | Fill at the next minute's open after the signal bar | Close to reality for SPY, QQQ and DIA, which trade heavily |
| Stock stops and targets | Fill exactly at the stop or target price. If both are touched in the same minute, the stop counts. | Generous. A fast move can fill a stop worse than its price, and the test doesn't charge for that. |
| Stock costs | $0.02 a share per round trip | The broker charges no commission; this stands in for spread and fees |
| Option fills | Real 1-minute prices of the exact contract, plus 2% of the price (at least $0.01 a share) for crossing the spread, each way | Wide-spread contracts can cost more than 2%. The replay uses SPY and DIA options as a stand-in for SPX, XSP and DJX, whose price history is incomplete. |
| Option fees | $0.03 per contract each way | Regulatory fees only; the broker charges no commission |
| Crypto | 0.25% of the trade each way | Matches the broker's taker fee |
| Paper trading | The broker's paper engine decides fills | Generous. Paper fills ignore queue position and market impact, so live money would do somewhat worse. |
Avoiding fooling myself
- One rule, two usesThe engine and the backtests share the same signal code, so a test can't quietly test a different rule than the one trading.
- Unseen monthsThe walk-forward test only picks settings from months before the one being scored. When it disagrees with the 30-day backtest, the walk-forward wins. That's why the options result is reported as a loss even though the last 30 days looked profitable.
- Losers stay on the pageRules that failed (blue-chip stocks, breakout options, every short-term crypto version) are written down with their numbers, not deleted.
- No hand-picked windowsBacktests always use the latest 30 completed trading days, and walk-forward tests always use the full 12 or 6 months.
Change log
Every change to the rules is dated, with the evidence behind it. The 30-day backtest is re-run automatically when the rules change.
| Date | Change | Why |
|---|---|---|
| Nov 5, 2026 | Removed blue-chip stocks (AAPL, MSFT, NVDA, AMZN, META, TSLA, GOOGL) | Every trade on them lost; they stay off until there's evidence for them |
| Nov 6, 2026 | Added the Dow (DIA) | A third broad index fund |
| Nov 6, 2026 | Turned options back on for trend and candle-streak signals; turned them off for breakouts | In the replay with real contracts, breakout options lost $3,385 over 30 days (37 trades, 24% won), while trend and streak options made money |
| Nov 6, 2026 | Latest option entry moved from 1:30 pm to 3:00 pm ET | To catch afternoon signals, still closing everything by 3:45 pm |
| Nov 6, 2026 | Turned off the "sit out losing symbols" filter | With only SPY and QQQ it benched QQQ, the best live performer |
| Nov 6, 2026 | Crypto: chose the 50-day trend rule | Held up on a year it wasn't tuned on; every short-term rule lost to fees |
| Nov 7, 2026 | Crypto experiment: +8% / −4% / 24 hours instead of +2% / −1.5% / 4 hours, at $10,000 a trade | In the same 60-day test it lost about a third as much. It still loses money. |
Disclaimer
Basis is a learning and research project by Arun Sella. All trading is simulated in paper accounts. Past and simulated results don't predict future results, and nothing on this site is a recommendation to buy or sell anything.