Skip to content

0.5.0

Choose a tag to compare

@chauduyphanvu chauduyphanvu released this 18 Nov 03:31
· 83 commits to main since this release

From backtest to trading: what to watch at the next close, a forward test of frozen rules, your brokerage account against your strategies, a count of the tries behind a result, and two more sources of data. Results of existing strategies do not change.

  • Trigger prices. A "Next close" column under Positions says at what close of the next bar each ticker's rules give an order: "Buys if it closes above 512.30 (+1.2%), at the following open", with the stop and target of a ticker held. The orders window and the saved orders note gain "Watch at the next close", and the status bar's tooltip names the nearest ones.
  • Forward tests. "Start a forward test" freezes the rules, the settings they ran with and the day, in a note of its own with a forward block. It measures only the bars after that day, against the benchmark and against earlier stretches of the same length, says when the rules or the start were edited, and keeps a log of the bars that gave orders.
  • Accounts. An account block holds what an account owns, its cash and the strategies it follows with their shares, and gives the orders that bring it to what they hold together, netted across strategies, in whole shares if you like. "How to split" suggests weights (equal, inverse volatility, minimum variance, maximum diversification), worked out each month from earlier months only, also under a compare block with weights. Given a file of your trades from Schwab, Fidelity or Interactive Brokers, or any CSV whose columns you name, it compares your fills with the strategies' trades: slippage, fees, late and skipped trades, and what not following the rules cost.
  • Was it luck? Each block counts its tries, the runs and slider values and sweep variants it was shown, and the deflated Sharpe ratio says how likely the best of them is to have real skill. A sweep gains the probability of backtest overfitting. A Versions section lists each version of a block's text that ran, with its figures, the lines that changed, and a button to restore it.
  • Regimes and crises. A section that, once you load SPY, ^VIX and ^TNX (or BTCUSDT), splits a run by the market's trend, volatility and rates, and shows how it did through each crash it covers, from 2000 to 2025.
  • FRED and Tiingo. fred:T10Y2Y reads an economic series as each value was first published, as a rule's input or as the cash rate (cash rate: fred:DGS3MO). tiingo:SPY or data: tiingo reads Tiingo's prices, and "When Yahoo fails, use Tiingo" stands in for Yahoo. Both need a free API key, kept in Obsidian's secret storage.
  • Faster sweeps: a 2,000-variant sweep took 4.9 s in Obsidian, against 9.3 to 10.5 s on 0.4.2, with the same results.