More screenshots

    Works with the AI Agents you already use

    QuantLab — CSV Backtesting & Trade Analysis

    by Yashweer Potelu

    1

    Backtest and compare SMA crossover, RSI, and momentum strategies on your daily OHLC CSV. Get Markdown and JSON reports covering performance, fees, losses, open positions, and linked trade evidence.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    QuantLab — CSV Backtesting & Trade Analysis

    QuantLab — CSV Backtesting & Trade Analysis

    Example session with this skill installed

    Run QuantLab on the included synthetic-daily.csv example and compare all three strategies.

    Metadata

    • Instrument: Synthetic example
    • Quote units: TEST
    • Frequency: daily
    • Price basis: adjusted_ohlc

    Settings

    • Initial capital: 1,000 TEST per strategy
    • Transaction cost: 1% per side
    • Annual risk-free rate: 0%
    • SMA crossover: short window 1, long window 2
    • RSI: period 2, lower threshold 30, upper threshold 70
    • Momentum: lookback 1, entry threshold 5%, exit threshold 0%

    Use all five observations and save report.md and report.json in a new output directory. Explain the comparison, open-position losses, fees, and available trade evidence.

    This is a synthetic demonstration, not actual market performance.

    • Read your context and instructions
    • Compiled the quantlab

    Verified local execution using the included five-row synthetic dataset. Generated report.md and report.json. The complete Markdown report follows. This demonstrates local execution; Agensi-hosted delivery has not yet been verified.

    QuantLab report — Synthetic example

    Educational backtesting • Request order retained • No strategy recommendation

    Quote units: TEST · Declared basis: adjusted_ohlc · 2024-01-01 to 2024-01-05 · 5 daily observations.

    Comparison: ql-comparison-v1-d35b50d5e6360d062fc72b9105602b2ec2e0602ef2e2284c76094aff6bdd8fae

    Source SHA-256: 4e2ef4b7de550403e027395ffb76bb20f6079108e181b26f64d7ac9a836b4719
    Selected-data SHA-256: 1485bc0f147a9a366ff9ef6bed29fbd586e649ed7cd1804c2612601e371bddf0

    Source: user CSV · Original rows: 5 · Historical cutoff: 2026-11-30 (strictly earlier sessions only). Source bytes are not re-authenticated by reporting.

    Starting capital: 1,000.00; cost per side: 1.00%; annual risk-free rate: 0.00% (Sharpe only).

    Next available Open execution; fractional full-capital sizing; one long position; zero slippage; cash earns no interest. Open holdings remain marked at final Close without an exit fee.

    Comparison

    StrategyFinal valueReturn %vs benchmark (pp)Max drawdown %Volatility %SharpeWin rate %Profit factor
    Moving Average Crossover1,000.000.0020.79-0.000.00N/A (zero or negligible volatility)N/A (no closed trades)N/A (no closed trades)
    RSI Strategy609.29-39.07-18.2839.07277.38-7.10N/A (no closed trades)N/A (no closed trades)
    Momentum Strategy1,158.4215.8436.6321.74373.243.34100.00∞ (positive wins no losses)

    Common buy-and-hold: final value 792.08; return -20.79%. It buys at the first selected Open with the same entry fee and stays invested during warm-up. Return differences are percentage points, not alpha.

    Values are rounded here only. Structured results retain calculation precision. CAGR is not provided.

    <a id="qr-46bb1b6e97a4f3ebcbac3e6e14c3378e1b21a475c3689f90ceac575e5af96d8d"></a>
    

    Moving Average Crossover

    Run: ql-run-v1-ae79e7b32f7f9a03add97b235b27168e2e833f7ad9710366331bbdbca4dd35ee

    Outcome: breakeven · 0 executed orders · 0 closed trades · Open position: no.

    AttributionAmount
    Closed gross price P&L0.00
    Closed entry + exit fees0.00
    Realized net P&L0.00
    Open gross mark-to-market P&L0.00
    Open entry fee0.00
    Unrealized net P&L0.00
    Total paid fees0.00
    Net portfolio P&L0.00

    Indicators available: 2024-01-02; first eligible decision: 2024-01-03; earliest fill opportunity: 2024-01-04. These are eligibility dates, not first-trade dates. No common-start trimming.

    Closed losses shown: 0 of 0; omitted: 0. Total realized closed-trade losses: 0.00.

    <a id="qr-ca46fffddf6557366a5bb37bcd598f9e5af1ff0f02127d0e90b3f7af1e7db4c0"></a>
    

    No executed trades

    No orders executed. Strategy capital remained in cash; closed-trade statistics are undefined.

    Drawdown evidence

    No drawdown was recorded. Peak, trough and recovery references are not applicable.

    Run warnings

    • DAILY_SESSIONS_UNVERIFIED: Daily frequency was declared, not inferred. Session completeness and consistent price adjustment are the caller's responsibility; annualization uses 252 bars.
    • NO_CLOSED_TRADES: There are no completed round trips; trade statistics are undefined.
    <a id="qr-d72e86a828da36942c08819d874c7098d321a8867062cde863e238ec8a7d134b"></a>
    

    RSI Strategy

    Run: ql-run-v1-29b59ed8ebaa2321d7478895f02b055b4f8b96eec3632196126e50499bdfbb64

    Outcome: loss · 1 executed orders · 0 closed trades · Open position: yes.

    AttributionAmount
    Closed gross price P&L0.00
    Closed entry + exit fees0.00
    Realized net P&L0.00
    Open gross mark-to-market P&L-380.81
    Open entry fee9.90
    Unrealized net P&L-390.71
    Total paid fees9.90
    Net portfolio P&L-390.71

    Indicators available: 2024-01-03; first eligible decision: 2024-01-03; earliest fill opportunity: 2024-01-04. These are eligibility dates, not first-trade dates. No common-start trimming.

    Closed losses shown: 0 of 0; omitted: 0. Total realized closed-trade losses: 0.00.

    <a id="qr-73cf2c5cfeda5a70c7af2fdfa419c79b759a0098b3d46a0ef5d176a29165aff7"></a>
    

    No closed trades

    Orders executed but no round trip closed. The open mark affects portfolio P&L, not closed-trade statistics.

    <a id="qr-a69142dda5b6f21ffb1d91635d88bcd69ae5a572f41dc3c6d624c53ea139a00f"></a>
    

    Open position loss

    The unclosed position contributes marked P&L after its entry fee. No exit or exit fee is modeled.

    Position: ql-run-v1-29b59ed8ebaa2321d7478895f02b055b4f8b96eec3632196126e50499bdfbb64/position/1. Final mark 2024-01-05 at 80.00; unrealized P&L

    -390.71.

    BUY decision and fill

    <a id="qr-a06c8c306ccfc3d88f87f90775362b96fdd2d23bdfc657353d2ced69935afbad"></a>
    

    Maximum drawdown

    The largest observed close-to-peak portfolio decline is documented separately from closed-trade losses.

    Drawdown evidence

    Maximum decline

    39.07%. Peak: 2024-01-04 at 1,000.00; trough: 2024-01-05 at 609.29; recovery: unrecovered by the final observation.

    <a id="qr-fe6a0a3b437f7b6ef1f2e013c2e0270a2fe33e649962b3d02dfd3aa8dc94dfd5"></a>
    

    BUY evidence — order 1

    Order: ql-run-v1-29b59ed8ebaa2321d7478895f02b055b4f8b96eec3632196126e50499bdfbb64/order/1

    Decision-time conditions: RSI was below the buy threshold.

    ConditionLeft valueOperatorRight valueSatisfied
    Signal-day RSI vs threshold23.08<30.00yes

    Signal close: 2024-01-04 · selected row 4 · original CSV record 4 · physical lines 5–5.

    Next-open fill: 2024-01-05 · selected row 5 · original CSV record 5 · physical lines 6–6.

    Fill 130.00; quantity 7.62; fee 9.90. Later gains/losses are separate retrospective outcomes, not information used for this decision.

    Run warnings

    • DAILY_SESSIONS_UNVERIFIED: Daily frequency was declared, not inferred. Session completeness and consistent price adjustment are the caller's responsibility; annualization uses 252 bars.
    • NO_CLOSED_TRADES: There are no completed round trips; trade statistics are undefined.
    • OPEN_POSITION: The remaining position is marked at the final Close; no exit fee or forced liquidation is modeled.
    • FINAL_SIGNAL_UNEXECUTED: The final row's signal has no later Open and cannot execute.
    <a id="qr-2b9ce8e384e188512f52bfee725fc56d433ab17c899092f34a00bb46946f943c"></a>
    

    Momentum Strategy

    Run: ql-run-v1-1432e0d8bb83a3668117694f691ec1f55360f0ab1e364f4c9929c7c700056d3f

    Outcome: gain · 2 executed orders · 1 closed trades · Open position: no.

    AttributionAmount
    Closed gross price P&L180.02
    Closed entry + exit fees21.60
    Realized net P&L158.42
    Open gross mark-to-market P&L0.00
    Open entry fee0.00
    Unrealized net P&L0.00
    Total paid fees21.60
    Net portfolio P&L158.42

    Indicators available: 2024-01-02; first eligible decision: 2024-01-02; earliest fill opportunity: 2024-01-03. These are eligibility dates, not first-trade dates. No common-start trimming.

    Closed losses shown: 0 of 0; omitted: 0. Total realized closed-trade losses: 0.00.

    <a id="qr-8340edf363920b75ea3aaf412053aa8cb46e3390e87f9fe7ce0a52565a75cfb7"></a>
    

    No closed losses

    No closed trade exceeded the loss tolerance. This does not imply no portfolio losses or drawdowns.

    <a id="qr-552635745dfc868b1f21985f3eeb8ddbb47331dbeeb025ae180d4df544299ef7"></a>
    

    Maximum drawdown

    The largest observed close-to-peak portfolio decline is documented separately from closed-trade losses.

    Drawdown evidence

    Maximum decline: 21.74%. Peak: 2024-01-03 at 1,035.10; trough: 2024-01-04 at 810.08; recovery: 2024-01-05.

    Run warnings

    • DAILY_SESSIONS_UNVERIFIED: Daily frequency was declared, not inferred. Session completeness and consistent price adjustment are the caller's responsibility; annualization uses 252 bars.
    • FINAL_SIGNAL_UNEXECUTED: The final row's signal has no later Open and cannot execute.

    Dataset warnings and limitations

    • DAILY_SESSIONS_UNVERIFIED: Daily frequency and a consistent price basis were declared, not verified. Cadence checks do not prove market-session completeness; annualization remains 252 bars.
    • CADENCE_SHORT_SAMPLE: Fewer than five selected intervals are insufficient for the sparse-cadence rejection heuristic.
    • Educational backtesting, not financial advice. In-sample results do not establish future profitability or robustness.
    • Instrument, quote units and price basis are user declarations. Session completeness and corporate-action adjustments are not authenticated.
    • Signals execute at the next available Open; one full-capital fractional long position, no slippage or liquidity model, and fees on entries/exits.
    • Warm-up stays inside the selected period. The buy-and-hold benchmark is invested from the first Open, including strategy warm-up.
    • Open positions are marked at the final Close without a fabricated exit or exit fee. No closed losses does not imply no portfolio loss or drawdown.
    • Annualization remains 252 periods; cash earns no interest and the risk-free rate affects Sharpe only. Same-cutoff-date sessions are excluded by ingestion policy.
    • Snapshot checks detect inconsistencies; they do not authenticate source bytes or prove that coordinated edits to results never occurred.
    • CAGR, fee-sensitivity reruns, CLI/artifact delivery and standalone Agensi distribution are not provided.

    Complete order/trade/equity records remain available from the source comparison. This report deliberately includes only displayed loss evidence and any open-position evidence.

    the included five-row synthetic dataset. Generated report.md

    Connects securely to your tools. The creator never sees your data.

    About this skill

    QuantLab runs historical strategy backtests on daily OHLC CSV data you provide. Compare up to three supported strategies using consistent capital and transaction-cost assumptions, then inspect the results in downloadable Markdown and JSON reports.

    Supported strategies

    • Simple moving-average crossover
    • Relative Strength Index (RSI)
    • Momentum

    What you receive

    • Performance comparisons against a common buy-and-hold benchmark
    • Return, drawdown, volatility, Sharpe ratio, and trade statistics, with explicit explanations when a metric is undefined
    • Realized and unrealized P&L, transaction fees, and open-position details
    • Analysis of up to five largest closed losses per strategy
    • Linked decision and execution evidence for displayed losses and open positions
    • CSV provenance, validation diagnostics, assumptions, and warnings

    What you provide A daily CSV with Date, Open, High, Low, and Close columns; Volume is optional. Declare the instrument, quote units, daily frequency, and whether prices are raw or adjusted. Choose your strategies and optionally configure their parameters, starting capital, transaction costs, and date range.

    How it runs Your agent executes the packaged Python runner and returns report.md and report.json. It requires Python 3.12, NumPy 2.3.5, pandas 2.2.3, command execution, and file access. No market-data API key, broker connection, or paid Agensi tool is required.

    Scope Historical educational analysis only. Signals execute at the next available Open. The model uses one full-capital fractional long position per strategy, with fees on entries and exits. It does not provide live data, live trading, strategy optimization, or CAGR. Historical results do not establish future profitability.

    Daily OHLC CSV only; maximum 25,000 rows and 10 MiB. Requires Python 3.12, NumPy 2.3.5, and pandas 2.2.3. Sessions dated today or later in UTC are excluded. Uses 252-period annualization, next-open execution, and one full-capital fractional long position. No slippage, liquidity model, or cash interest. Open positions remain marked at the final Close. Price adjustments and session completeness are not authenticated. No CAGR, optimization, live data, or live trading. Educational analysis only. Local workflow verified; Agensi delivery and approval remain unverified.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Software
    Python 3.12NumPy 2.3.5pandas 2.2.3

    Supply your own daily OHLC CSV and declare instrument, quote units, and price basis. No broker account, market-data API key, or paid Agensi tool is required. Dependencies must be available in the executing agent’s environment.

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    Executes a temporary Python runner, reads the user-selected CSV, and writes report.md and report.json into a new user-selected output directory. Removes the temporary runner afterward while retaining reports. Does not overwrite existing output directories or require network calls for analysis.

    Listed5 days ago

    What's inside

    Creator

    Yashweer Potelu

    Yashweer Potelu

    Frequently Asked Questions

    No. Supply your own daily OHLC CSV. Yahoo Finance and other market-data services are not required.

    SMA crossover, RSI, and momentum. You can compare one to three distinct strategies with consistent shared settings.

    A readable Markdown report and a structured JSON report. File delivery and retention depend on your host agent.

    No. It performs historical educational analysis and does not connect to a broker or execute trades.

    New in Trading & Investing

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.