strategy-ab-test
Skill by FerroxLabs
Runs a head-to-head comparison of two strategy configurations on a live TradingView chart and reports a data-backed winner. Built for traders who ask which strategy or settings perform better.
Install strategy-ab-test
Built from the published package, never by AI.
git clone --depth 1 https://github.com/FerroxLabs/wayland /tmp/wayland && mkdir -p ~/.claude/skills && cp -r /tmp/wayland/src/process/resources/skills/strategy-ab-test ~/.claude/skills/strategy-ab-testRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/FerroxLabs/wayland /tmp/wayland && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/wayland/src/process/resources/skills/strategy-ab-test ~/.gemini/antigravity-cli/skills/strategy-ab-testAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The strategy-ab-test skill compares two strategy configurations head-to-head on the same symbol and timeframe of a live TradingView chart. It starts with a precondition gate: it checks that TradingView is reachable, that the strategy exposes settable inputs, and that a strategy sweep runs on the chart. If a gate fails, it stops early and explains why.
When the gates pass, it sweeps two settings of one strategy or two different strategies. It then compares net profit, Sharpe, max drawdown, profit factor and trade count side by side. The winner is chosen by Sharpe unless the user names another metric. It is aimed at traders who ask which strategy or settings win, and it restores the chart from a snapshot afterwards.
Written from the project's SKILL.md and checked against it.
What it can do
- tv_health_checkConfirms that CDP is attached and the market-data connection is live.
- chart_get_stateReads the symbol, timeframe, studies and input list on the chart.
- data_get_strategy_resultsReturns the strategy report for a study and gives the baseline row.
- strategy_sweepRuns a grid of input values and returns metrics for each combination.
- tv_chart_healthRead-only check that finds panes whose data session fails to load.
- tv_repair_chartRemoves unregistered studies from a broken pane, after the user agrees.
- state_snapshotSaves the chart state so both arms run on the same baseline.
- state_restoreReturns the chart to the saved snapshot and reports any skipped studies.
- indicator_add_from_searchAdds a saved or community script to the chart without opening the Pine editor.
- capture_screenshotCaptures the chart so the user has a visual of the winning arm.
What you need
- TradingView with CDP attached
- A live market-data connection in TradingView
- A strategy script on the chart that exposes a backtest report
Try asking
- Which of these two EMA lengths wins on my BTCUSD daily chart?
- A/B test these two saved strategies on the current chart.
- Which settings win for my strategy on this timeframe?
Good to know
- Strategies with hard-coded or protected inputs expose nothing to compare.
- Sweeps can fail with a chart_loading error and stop after three attempts.
- Each sweep combination has a cooldown, so grids are kept small.
- The skill does not use Pine editor tools, so it cannot edit strategy code.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/process/resources/skills/strategy-ab-test/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to strategy-ab-test
All alternatives →Lists live launchpad token feeds and AI-detected hot topics for meme tokens on BSC, Solana and Base. Covers new, finalizing and just-migrated tokens on launchpads such as Pump.fun and Four.meme.
The okx-market skill lets an AI assistant retrieve cryptocurrency market data from the OKX V5 REST API. It is aimed at users who want spot, derivatives and index data in Python without an account.
Calculates key SaaS health metrics such as ARR, churn, LTV and CAC from raw business numbers, then gives prioritized advice. Built for founders and finance leads who share revenue or customer figures.
Fetches U.S. SEC EDGAR data for research. It resolves a ticker to its CIK, lists recent filings with primary-document URLs, and pulls XBRL financial series. Built for analysts who need free, U.S.-only filing data.
Provides free, no-auth access to Eastmoney market data for A-shares, Hong Kong stocks and US stocks. It covers fund flows, dragon-tiger lists, financial statements and stock screening.
Reads and manages a user's QuickBooks business through Intuit's official MCP server. It answers finance questions from reports, invoices, customers, products and benchmarks, and completes approved actions.
Compare with meme-rush, okx-market or saas-metrics-coach
strategy-ab-test: common questions
What happens if the strategy has no settable inputs?
The skill says so directly and offers to compare against a different saved strategy or run the strategy-report skill instead.
Does this skill edit my Pine Script?
No. The skill forbids Pine editor tools, because saving the editor buffer could overwrite a user's saved script.
How is the winner picked?
By Sharpe ratio by default, with ties broken by lower max drawdown. The user can name a different metric instead.
How do I install strategy-ab-test?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is strategy-ab-test free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is strategy-ab-test safe to use?
It scores 56 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to strategy-ab-test?
Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.
