hedgequantx-prop-trading — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited hedgequantx-prop-trading (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
USE FOR:
tags: [prop-trading, futures, copy-trading, TopStep, Apex, Rithmic, ProjectX, Tradovate, CLI, multi-account] kind: tool category: execution-algo-trading
CLI tool for automated futures trading across 37+ proprietary trading firms.
npm i -g hedgequantxnpm i -g hedgequantx
hqx # or: hedgequantxTopStep · TickTickTrader · TradeDay · Goat Futures · + 15 more
Apex Trader Funding · MES Capital · Bulenox · + 13 more
Apex · TakeProfitTrader · MyFundedFutures
Single account → runs proprietary HQX systematic strategyLead 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 automaticallyA 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 valueMeasures 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 + IQRZ-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 meanProperties:
Empirical Rule (68-95-99.7):
μ ± 1σ → 68.27% of data
μ ± 2σ → 95.45% of data
μ ± 3σ → 99.73% of dataUsing 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.4Confidence intervals:
CI = x̄ ± z* · (σ / √n)
Common z* values:
90% CI → z* = 1.645
95% CI → z* = 1.960
99% CI → z* = 2.576Fundamental 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 totalPermutations (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) # = 10Discrete probability distribution requirements:
1. 0 ≤ P(x) ≤ 1 for all x
2. ΣP(x) = 1Expected value and variance:
E(X) = μ = Σ[x · P(x)]
Var(X) = σ² = Σ[(x−μ)² · P(x)]#### Binomial Distribution B(n, p)
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#### Geometric Distribution
Conditions: repeated trials until FIRST success
P(X = k) = (1−p)^(k−1) · p [k = trial of first success]
μ = 1/p
σ² = (1−p) / p²#### Hypergeometric Distribution
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 relationshipCoefficient of determination r²:
r² = proportion of variance in y explained by x
r² = 0.81 → x explains 81% of variation in yimport 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 |
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.