/tradecraft:hedgequantx-prop-tradingfrom tradecraft
CLI tool for automated futures trading across 37+ prop firms via ProjectX, Rithmic, and Tradovate APIs. Supports single-account strategy or copy trading with AES-256-GCM local encryption.
Ships in tradecraft. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
USE FOR:
CLI tool for automated futures trading across 37+ proprietary trading firms.
npm i -g hedgequantxnpm i -g hedgequantx
hqx # or: hedgequantx
TopStep · TickTickTrader · TradeDay · Goat Futures · + 15 more
Apex Trader Funding · MES Capital · Bulenox · + 13 more
Apex · TakeProfitTrader · MyFundedFutures
Single account → runs proprietary HQX systematic strategy
Lead account → executes primary trades
↓ mirrors to
Follower accounts (multiple) → same trades replicated
| Feature | Detail |
|---|---|
| Multi-account | Manage multiple prop accounts simultaneously |
| Real-time monitoring | Live balance, P&L, positions, orders |
| Market hours validation | Auto-validates trading hours per instrument |
| Session encryption | AES-256-GCM, machine-bound keys |
| Local execution | Direct API, no server middleman |
| Credential security | Never stored in plaintext, 0600 file permissions |
# 1. Install and launch
npm i -g hedgequantx && hqx
# 2. Connect to TopStep (via ProjectX API)
# 3. Select "One Account Mode" → HQX strategy
# 4. Monitor P&L in real-time dashboard
# 5. Meet daily/max drawdown limits automatically
A comprehensive statistics study guide covering all foundational concepts relevant to trading, quant research, and data science.
Variable types:
Distribution shapes:
Scatter plots & correlation:
Misleading graphs — red flags:
Sampling methods:
| Method | Description |
|---|---|
| Simple random | Every member equally likely |
| Systematic | Every Nth member |
| Stratified | Proportional subgroups |
| Cluster | Random groups (not individuals) |
| Convenience | Easiest to reach (biased) |
Sources of bias:
Measures of central tendency:
Mean = Σx / n
Median = middle value (or avg of two middle)
Mode = most frequent value
Measures of spread:
Range = max − min
Variance = Σ(x − x̄)² / (n−1) [sample]
Std Dev = √Variance
IQR = Q3 − Q1 [robust to outliers]
Choosing the right measure:
Symmetric distribution → use mean + std dev
Skewed / outliers → use median + IQR
Z-score (standardization):
z = (x − μ) / σ
Interpretation:
z = +1.5 → value is 1.5 standard deviations ABOVE mean
z = −2.0 → value is 2.0 standard deviations BELOW mean
Properties:
Empirical Rule (68-95-99.7):
μ ± 1σ → 68.27% of data
μ ± 2σ → 95.45% of data
μ ± 3σ → 99.73% of data
Using z-tables / standard normal:
from scipy import stats
# P(X < 75) where μ=70, σ=5
z = (75 - 70) / 5 # z = 1.0
p = stats.norm.cdf(z) # p ≈ 0.8413 → 84.13%
# P(65 < X < 75)
p = stats.norm.cdf(1.0) - stats.norm.cdf(-1.0) # ≈ 68.27%
# Find value at 90th percentile
x = stats.norm.ppf(0.90, loc=70, scale=5) # x ≈ 76.4
Confidence intervals:
CI = x̄ ± z* · (σ / √n)
Common z* values:
90% CI → z* = 1.645
95% CI → z* = 1.960
99% CI → z* = 2.576
Fundamental rules:
P(A) = favourable outcomes / total outcomes [theoretical]
P(A) = successes / trials [experimental]
0 ≤ P(A) ≤ 1
P(A) + P(A') = 1 [complement rule]
Addition rule:
P(A ∪ B) = P(A) + P(B) − P(A ∩ B) [general]
P(A ∪ B) = P(A) + P(B) [mutually exclusive]
Multiplication rule:
P(A ∩ B) = P(A) · P(B|A) [general / dependent]
P(A ∩ B) = P(A) · P(B) [independent events]
Conditional probability:
P(B|A) = P(A ∩ B) / P(A)
"Probability of B GIVEN A has occurred"
Set notation:
A ∪ B → A OR B (union)
A ∩ B → A AND B (intersection)
A' → NOT A (complement)
Fundamental counting principle:
m choices for event 1 × n choices for event 2 = m × n total
Permutations (ORDER matters):
nPr = n! / (n−r)!
All arrangements of n items: n!
Arrangements with repeats: n! / (a! · b! · ...)
Combinations (ORDER doesn't matter):
nCr = n! / (r! · (n−r)!) also written C(n,r) or (n choose r)
Key identity: nCr = nC(n−r)
from math import factorial, comb, perm
# Permutations: arrange 3 from 5
perm(5, 3) # = 60
# Combinations: choose 3 from 5
comb(5, 3) # = 10
Discrete probability distribution requirements:
1. 0 ≤ P(x) ≤ 1 for all x
2. ΣP(x) = 1
Expected value and variance:
E(X) = μ = Σ[x · P(x)]
Var(X) = σ² = Σ[(x−μ)² · P(x)]
Conditions: fixed n trials, constant p, independent, binary outcome
P(X = k) = C(n,k) · pᵏ · (1−p)^(n−k)
μ = np
σ² = np(1−p)
σ = √(np(1−p))
from scipy.stats import binom
# 10 flips, p=0.5, P(exactly 6 heads)
binom.pmf(6, n=10, p=0.5) # ≈ 0.2051
# P(X ≤ 6)
binom.cdf(6, n=10, p=0.5) # ≈ 0.8281
Conditions: repeated trials until FIRST success
P(X = k) = (1−p)^(k−1) · p [k = trial of first success]
μ = 1/p
σ² = (1−p) / p²
Conditions: sampling WITHOUT replacement from finite population
Population N, K successes in population, draw n items:
P(X = k) = C(K,k) · C(N−K, n−k) / C(N,n)
μ = nK/N
σ² = nK(N−K)(N−n) / [N²(N−1)]
Least squares regression line:
ŷ = a + bx
b = r · (Sy / Sx) [slope]
a = ȳ − b·x̄ [intercept]
where r = correlation coefficient (−1 ≤ r ≤ 1)
Correlation coefficient r:
|r| = 1.0 perfect linear relationship
|r| > 0.8 strong
0.5 < |r| < 0.8 moderate
|r| < 0.5 weak
r = 0 no linear relationship
Coefficient of determination r²:
r² = proportion of variance in y explained by x
r² = 0.81 → x explains 81% of variation in y
import numpy as np
from scipy import stats
slope, intercept, r, p_value, std_err = stats.linregress(x, y)
print(f"r = {r:.3f}, r² = {r**2:.3f}")
print(f"ŷ = {intercept:.2f} + {slope:.2f}x")
| Statistics Topic | Trading Use Case |
|---|---|
| Normal distribution | Return distribution, VaR, z-score signals |
| Confidence intervals | Entry zones, expected price ranges |
| Correlation (r) | Pair trading, hedge ratios, sector correlation |
| Regression | Price prediction, beta calculation, factor models |
| Binomial dist. | Win rate modeling, position sizing (Kelly) |
| Conditional probability | Bayesian signal updating |
| Hypergeometric | Sampling from finite order book |
| Z-score | Mean reversion entries (Bollinger Bands logic) |
| Standard deviation | Volatility measurement, ATR normalization |
| Combinations nCr | Portfolio combinations, basket construction |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
prop-trading, futures, copy-trading, topstep, apex, rithmic, projectx, tradovate
npx claudepluginhub mahmoud20138/tradecraft --plugin tradecraft169 skills in this plugin
/agent-developmentThis skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins./agentic-storageAgentic storage architecture — persistent memory for AI agents using MCP, immutable versioning, sandboxing, and intent validation. Covers the stateless problem in LLM agents, RAG limitations (read-only), MCP protocol (JSON-RPC, resources, tools), storage safety layers, and agent file system design. Source: IBM Technology (Martin Keen), March 2026. Use this skill for "agentic storage", "agent memory", "persistent agent state", "MCP storage", "agent file system", "agent hard drive", "stateless agent problem", "agent work product", "immutable versioning", "agent sandboxing", "intent validation", "agent safety layers", "agent context window limits", "storage for AI agents", "agent persistence", "autonomous agent storage", "agent audit trail". Works with mcp-integration, trading-brain, agents, trade-psychology-coach.
Other plugins' skills for the same job