Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 56
  • 618 stars
  • AGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-test

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install strategy-ab-test in Claude Code

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

A

No 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 →

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.

strategy-ab-test Install

Add to stack

Loading.