strategy-backtest

Solid

Compare strategies on an IDX symbol, backtest the survivor walk-forward, and hand the result to TradingView as Pine Script. Use when the user asks whether a strategy works, to test an idea, or for a Pine script.

Testing & QA 35 stars 12 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
52
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Strategy backtest ## The sequence 1. **`strategy_compare symbol=…`** — nine built-in strategies over the same bars, ranked. This is the cheap first pass: it tells you whether anything on this symbol has an edge worth testing properly, and the bars are fetched once for all of them. 2. **`backtest symbol=… strategy=…`** on the one or two that stood out. Set **`walk_forward=true`** and give it `folds`. An in-sample result on two years of daily bars is a description of the past, and presenting one as a strategy is the single most misleading thing this server can be used to do. - Set `commission_buy_pct` and `commission_sell_pct` to the user's real fees. IDX defaults are roughly 0.15% buy and 0.25% sell, and the difference between gross and net is where most paper edges live. - `stop_loss_pct`, `take_profit_pct` and `max_hold_bars` change the answer more than the entry rule usually does. 3. **`pine_script symbol=… kind=strategy`** to hand it to TradingView, with the entry and exit conditions carried across. `workflow_run name=strategy_check` and `name=pine_handoff` package steps 1–2 and 3. ## What to report, and what not to - **`warnings` and `inconclusive` are the result**, not a footnote. Read them out. If the backtest says the sample was too small, that is the answer to the user's question. - **ARA/ARB-locked bars break fills.** A limit-up day has no liquidity at the printed price. The backtester flags these; a strategy whose re...

Details

Author
INo-xious
Repository
INo-xious/stockbit-mcp
Created
1 months ago
Last Updated
3 days ago
Language
TypeScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

backtest-review

Review a trading strategy or backtest for look-ahead bias, overfitting, and statistical validity. Use when the user shares backtest code, equity curves, Sharpe ratios, or asks whether a trading signal is real.

0 Updated 2 weeks ago
saksham10arora-dotcom
Testing & QA Listed

backtest-validation

Validate whether a backtest result is trustworthy before drawing any conclusion from it. Trigger for "回测这个策略", "这个策略过拟合吗", "夏普这么高可信吗", "加上手续费还赚钱吗", "样本外表现", "validate this backtest", "is this strategy overfit", or whenever the user (1) presents or produces backtest results and wants a judgement, (2) asks whether an edge is real, (3) compares strategy variants and picks the best one, or (4) is about to deploy/paper-trade a strategy based on historical performance. Fire even when the user only asks for the metrics ("just show me the Sharpe") — the metrics are not a conclusion until the gauntlet passes. Pair with point-in-time-research: that skill guards the data going in; this one guards the claim coming out. Do NOT trigger for pure data fetching or for live trading questions with no historical simulation involved.

2 Updated 6 days ago
artherahq
Testing & QA Solid

backtest-expert

Expert guidance for systematic backtesting of trading strategies on Indian markets (NSE/BSE). Use when developing strategies, testing robustness, avoiding overfitting, or validating trading ideas.

72 Updated 2 weeks ago
ajeeshworkspace