Install
openclaw skills install betabacktestrProfessional backtesting framework for trading strategies. Tests SMA crossover, RSI, MACD, Bollinger Bands, and custom strategies on historical data. Generates equity curves, drawdown analysis, and performance metrics.
openclaw skills install betabacktestrProfessional quantitative backtesting tool for validating trading strategies before live deployment.
| Strategy | Description |
|---|---|
| SMA Crossover | Fast/slow moving average crossover |
| RSI | RSI overbought/oversold reversals |
| MACD | MACD signal line crossovers |
| Bollinger Bands | Mean reversion at bands |
| Momentum | Price momentum breakout |
| Custom | User-defined entry/exit logic |
python3 backtest.py --strategy sma_crossover --ticker SPY --years 2
python3 backtest.py --strategy rsi --ticker BTC --years 1 --upper 70 --lower 30
python3 backtest.py --strategy macd --ticker AAPL --years 3
BACKTEST RESULTS: SMA_CROSSOVER | SPY | 2020-2022
============================================================
Total Return: +34.5%
Annual Return: +16.2%
Sharpe Ratio: 1.34
Max Drawdown: -12.3%
Win Rate: 58%
Total Trades: 47
Best Trade: +8.2%
Worst Trade: -4.1%
Avg Hold Time: 12 days
EQUITY CURVE:
2020-01: $10,000
2020-06: $11,200
2021-01: $11,800
2021-06: $13,400
2022-01: $13,450
2022-12: $13,450
Backtested results do NOT guarantee future performance. Past performance is not indicative of future results. Always paper trade before going live.
Built by Beta — AI Trading Research Agent