Pure Trailing Volatility Rank

Back to leaderboard · 2015-01-01 to 2025-06-01 · v3_top100_monthly

Overall top-100 hits
29.52
average across horizons
Predicted top-100 avg actual rank
237.72
lower is better
Rank IC
0.0179
picks the better of two stocks 50.6% of the time
IC reliability
1.55
t-stat; IC positive 50.4% of months
not adjusted for overlapping windows

Horizon Breakdown

top 100 only
Horizon Average Top-100 Hits Predicted Top-100 Avg Actual Rank Rank IC
3m 29.83 236.73 0.0233
6m 29.29 239.20 0.0160
12m 29.43 237.23 0.0144

Run Note

test summary
Pure Trailing Volatility Rank: 29.52 avg hits@100 (3m 29.83, 6m 29.29, 12m 29.43); avg actual rank 237.72; IC +0.0179 (t 1.55).

Run Details

strategy_test_results #69
id
69
strategy_id
strategy_000059
strategy_title
Pure Trailing Volatility Rank
strategy_hash
ed249e3263a4c228f2157667df7241a1d3f3ca0932e295f4992221679169dd62
evaluator_version
v3_top100_monthly
start_date
2015-01-01
end_date
2025-06-01
created_at
2026-07-25 09:35:07
updated_at
2026-07-25 13:16:28

Sample Top-100 Lists

2020-03-31 / 6m / 32 hits

Predicted top 100

AAL, AFL, AIG, ALGN, ALK, AMAT, AMP, APTV, AVGO, AXP, BA, BKR, C, CCL, CFG, CNP, COF, COP, CVX, DAL, DRI, DVN, DXC, EMR, EOG, ETN, ETSY, EXPE, FANG, FCX, FITB, FMC, GPS, HAL, HAS, HCA, HIG, HUM, HWM, INTC, IVZ, KEY, KLAC, KMI, KMX, L, LEG, LEN, LKQ, LNC, LRCX, LYB, LYV, MCHP, MET, MGM, MHK, MOS, MPC, MS, NCLH, NOV, NVDA, O, OKE, OXY, PAYC, PFG, PH, PHM, PRU, PSX, PVH, RCL, RF, SLB, SPG, STT, SWK, SYF, SYY, TDG, TFC, TPR, TSLA, TXT, UAA, UAL, UHS, ULTA, UNM, URI, VLO, VTR, WDC, WELL, WHR, WMB, WY, WYNN

Actual top 100

AAP, AAPL, ABMD, ADBE, ADSK, ALB, ALGN, AMD, AMP, AMZN, APD, APH, APTV, ATVI, AVGO, BBY, BWA, CARR, CDNS, CE, CHRW, CMG, CMI, CPRT, CRM, CTAS, CTLT, CTSH, DD, DE, DHI, DHR, DRI, DXCM, EBAY, EMN, ETSY, EXPE, FCX, FDX, GLW, GPS, HAL, HD, IDXX, IPGP, JCI, KMX, LEG, LEN, LH, LOW, MAS, MCHP, MGM, MOS, NCLH, NKE, NOW, NSC, NVDA, NWS, NWSA, ORLY, PAYC, PH, PHM, PNR, POOL, PVH, PWR, PYPL, QCOM, QRVO, RCL, ROK, ROL, SHW, SIVB, SNPS, SWK, SWKS, SYF, TDG, TEL, TER, TGT, TMO, TSCO, TSLA, TT, UPS, URI, VAR, VIAC, VTR, WHR, WMB, WST, WY

Matched tickers

ALGN, AMP, APTV, AVGO, DRI, ETSY, EXPE, FCX, GPS, HAL, KMX, LEG, LEN, MCHP, MGM, MOS, NCLH, NVDA, PAYC, PH, PHM, PVH, RCL, SWK, SYF, TDG, TSLA, URI, VTR, WHR, WMB, WY

Strategy Script

ed249e3263
"""Generated V3 stock-ranking strategy."""
from __future__ import annotations

import numpy as np
import pandas as pd


STRATEGY_ID = "strategy_000059"
STRATEGY_TITLE = "Pure Trailing Volatility Rank"
DESCRIPTION = """
Trailing 63-day volatility alone, with no other factor and no fitted weight,
should already beat the whole existing leaderboard, because top-100-of-450 is
a right-tail membership question and dispersion drives tail membership.
"""
FACTORS_USED = [
    "vol_63d"
]
PARAMETERS = {
    "vol_63d": 1.0
}
COMPLEXITY = 1
PARENT_STRATEGY_ID = None
GENERATION = 59
RANDOM_SEED = 20260700
CREATED_AT = "2026-07-25T00:00:00+00:00"


def _date_group(df):
    if "trade_date" in df.columns:
        return df["trade_date"]
    return pd.Series(0, index=df.index)


def _rank_pct(df, series):
    """Date-local rank percentile centred on zero; missing values stay neutral."""
    clean = pd.Series(series, index=df.index).replace([np.inf, -np.inf], np.nan)
    ranked = clean.groupby(_date_group(df)).rank(pct=True)
    return ranked.fillna(0.5) - 0.5


def _rank_col(df, column):
    if column not in df.columns:
        return pd.Series(0.0, index=df.index)
    return _rank_pct(df, df[column])


def _zscore_col(df, column):
    if column not in df.columns:
        return pd.Series(0.0, index=df.index)
    clean = df[column].replace([np.inf, -np.inf], np.nan)
    grouped = clean.groupby(_date_group(df))
    mean = grouped.transform("mean")
    std = grouped.transform("std").replace(0, np.nan)
    return ((clean - mean) / std).fillna(0.0)


def _top_half(series):
    """Emphasise only the upper half of a centred rank, leaving the rest flat."""
    return series.clip(lower=0.0) * 2.0 - 0.25


def _turnover(df):
    market_cap = df["market_cap"].replace(0, np.nan) if "market_cap" in df.columns else np.nan
    return _rank_pct(df, df["dollar_volume_21d"] / market_cap)


def _range_252(df):
    return _rank_pct(df, df["from_low_252d"] - df["from_high_252d"])


def _terms(df):
    return {
        "vol_63d": _rank_col(df, "vol_63d"),
    }




def calculate_score(df):
    terms = _terms(df)
    score = pd.Series(0.0, index=df.index)
    for name, weight in PARAMETERS.items():
        if weight:
            score = score + weight * terms[name]
    return score.replace([np.inf, -np.inf], np.nan).fillna(0.0)