# QuantLab — CSV Backtesting & Trade Analysis

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

QuantLab — CSV Backtesting & Trade Analysis is a paid AI agent skill on Agensi by Yashweer Potelu, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Yashweer Potelu](https://www.agensi.io/creators/sai-yashweer-potelu)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/quantlab-csv-backtesting-trade-analysis
- Tags: trading, finance, research, python, pandas, backtesting, csv, fintech

## 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.

## Requires

- Python 3.12
- NumPy 2.3.5
- pandas 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.

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the QuantLab — CSV Backtesting & Trade Analysis skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does QuantLab download market data?

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

### Which strategies are supported?

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

### What files will I receive?

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

### Can it place trades or recommend investments?

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

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
