quant-mathematician

quant-mathematician is a skill for Claude Code, Codex from DaviddTech/ai-trading-agent. It costs 0 tokens per session (1,523 once invoked), scanned A, original, MIT.

A research workflow for creating entirely new mathematical trading strategies and testing them with Pine Script, a language used to describe TradingView strategies.

In plain words
What is it for?
It helps create new strategies, run backtests, compare results across assets and time periods, and investigate whether an apparent advantage is genuine.
Why use it?
It keeps research focused on original ideas and checks whether a trading pattern survives testing instead of relying on copied or previously used strategies.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/daviddtech/ai-trading-agent/quant-mathematician
Any agent
npx skills add DaviddTech/ai-trading-agent --skill quant-mathematician
Clone the repo
git clone --depth 1 https://github.com/DaviddTech/ai-trading-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quant-mathematician

README.md
[![agentmods](https://agentmods.dev/badge/skills/daviddtech/ai-trading-agent/quant-mathematician.svg)](https://agentmods.dev/skills/daviddtech/ai-trading-agent/quant-mathematician)
Your own site
<a href="https://agentmods.dev/skills/daviddtech/ai-trading-agent/quant-mathematician"><img src="https://agentmods.dev/badge/skills/daviddtech/ai-trading-agent/quant-mathematician.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,523 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01523
Opus 5 $0.00000 $0.00762
Sonnet 5 $0.00000 $0.00305
Haiku 4.5 $0.00000 $0.00152

Measured 4d ago against content hash 6a0c0a5f897f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

quant-mathematician scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/quant-mathematician/SKILL.md · 260 lines

How it starts

The opening of the file, as written. The whole thing — 260 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Quant Mathematician New Strategy Prompt

You are a world-class applied mathematician, statistical researcher, and quantitative strategy architect.

You are not a normal trading developer.

You think like a research mathematician working on a serious quant desk inspired by the Jim Simons and Renaissance Technologies style of research: search for persistent statistical anomalies, test them brutally, remove fragile assumptions, and only keep what survives evidence.

Critical rule

You must build brand new strategies from first principles.

You are not allowed to:

  • Use old strategies from the website
  • Optimise existing strategies
  • Fork existing strategies
  • Copy existing Pine Script strategies
  • Modify previous Strategy Factory strategies
  • Search the strategy database for ideas
  • Use existing backtests as templates
  • Repackage common retail indicator strategies

This is greenfield research.

The only acceptable use of Trader Dev is to:

  • Submit newly created Pine Script strategies
  • Backtest newly created strategies
  • Retrieve results
  • Compare performance across symbols and timeframes
  • Diagnose whether the new idea has a real edge

You are building original mathematical trading systems, not improving old ones.

Core mission

Create new trading strategies from mathematical hypotheses, code them in Pine Script, and backtest them using Trader Dev.

Environment:

  • Language: Pine Script
  • Backtesting system: Trader Dev MCP
  • Market universe: crypto pairs, especially random symbols from the top 100 Bybit listings
  • Timeframes: primarily 1h, but also test nearby timeframes such as 15m, 30m, 2h, and 4h
  • Goal: discover new robust strategy logic, not pretty curve-fitted backtests

Important:

Do not behave like a retail trader. Do not start with RSI, MACD, Bollinger Bands, Stochastic, or basic moving average crossovers. Do not create indicator soup. Do not use old strategies as inspiration.

Think from first principles.

You should search for market behavior that can be expressed mathematically, such as:

Read the full file on GitHub · 260 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 260 lines · 0 tokens per session scan A 6a0c0a5f897f

Subscribe to this mod's changes

quant-mathematician is a skill published in the GitHub repository DaviddTech/ai-trading-agent (53 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,523 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

varrd-research

The core VARRD research tool — talk to a state-of-the-art quant AI to research, chart, test, optimize, and trade any market idea. Use when the user wants to test a trading hypothesis, find edges, or validate a strategy with real market data.

varrdinc/varrd · 60 tokens

backtest-interpretation

Interpret backtest output from the historicalpriceanalyzer tool — four built-in strategies (SMA crossover, RSI reversal, breakout, mean reversion) over Indian stocks, with Sharpe, max drawdown, win rate, and avg trade. Use when the user asks about "backtest", "how would strategy X have performed", "test this on…

Sundeepg98/kite-mcp-server · 103 tokens

tax-harvest

Walk an Indian retail trader through tax-loss harvesting on their Zerodha equity holdings — identify STCG/LTCG positions with losses, estimate tax savings under Indian capital-gains rules, and plan the sell-and-rebuy sequence while avoiding wash-sale equivalents. Use when the user asks about "tax harvesting", "tax…

Sundeepg98/kite-mcp-server · 109 tokens

sector-rotation

Analyze sector exposure in an Indian equity portfolio — which sectors the user is overweight/underweight vs NIFTY benchmarks, how yesterday's FII/DII flows align with current holdings, and what the concentration numbers actually say. Use when the user asks about "sector exposure", "sector rotation", "am I too…

Sundeepg98/kite-mcp-server · 100 tokens

trade-check

Run a pre-flight check before placing an equity order on Zerodha Kite — current price, margin required, portfolio concentration impact, existing exposure, and stop-loss suggestion. Use when the user says "should I buy X", "pre-trade check on Y", "can I afford Z quantity of ABC", "check before I place order", or asks…

Sundeepg98/kite-mcp-server · 84 tokens

eod-review

End-of-day trading review for an Indian retail trader on Zerodha Kite — day P&L, positions still open, orders placed today, alert activity, MIS square-off warnings, and action items for tomorrow. Use when the user says "EOD review", "end of day summary", "how did today go", "close the books", "wrap up trading day", or…

Sundeepg98/kite-mcp-server · 87 tokens