CTA Trend Following

Lean Hogs — Concentration, Ensemble & The Twelve Sections

Kaufman's robust-region method on Lean Hogs (HE=F), then the same twelve sections as the market card — all of it on data ending 2015-12-31.

As of 2015-12-31 — the last ten years are withheld. Every number on this tab is computed on bars up to and including 2015-12-31, and nothing after that date is read by any calculation here. The cut happens on the raw price frame before any indicator touches it, so no parameter on this tab was chosen with knowledge of what came next. This market's window is 2000-12-15 → 2015-12-31 (3,780 daily bars). The withheld data still exists and has not been touched — it is the out-of-sample test for whatever comes out of this work, and it is only worth having once the strategies are fixed.
Funded entries
SMA 45, SMA 48, SMA 60
Direction
System A — Long Only
Plateau
SMA 45–45 (1/25 tested)
Efficiency ratio (20d)
0.298
Narrow plateau — treat with caution. The good region covers only 1 of 25 tested periods (4%), below the 20% bar this tab uses to call a region broad. The entries are necessarily close together, so they will move together — the mean pairwise correlation between them is 0.80. This market is excluded from the funded book on the index page.

K1. Where The Results Concentrate

Kaufman's method: rather than take the best of the 50 base cells, or their median, find the contiguous stretch of SMA periods that all work. The plateau is the region holding at or above 70% of the smoothed peak. Its width is the honest measure of how much room for error this market gives you.

Sortino By SMA Period — Where The Results Concentrate

Bars are each tested period on its own. The line averages each period with the tested period either side (3-point neighbourhood), which is what the selection reads. The shaded band is the plateau; the outlined bars are the funded entries.

Plateau
SMA 45–45
Width
1 of 25 tested (4%)
Periods in profit
24% of 25
Best / median / worst
0.46 / -0.15 / -0.46

Why this direction

SystemPlateau meanCoveragePeriods in profit
System A — Long Only0.2124%24%
System B — Long & Short0.0864%8%

The direction is chosen on the plateau, not on the best cell. A direction that covers at least 20% of the grid wins over one that scores higher across three adjacent periods, because that narrow high score is exactly the fluke this method exists to avoid.

Speed preference vs efficiency ratio

Speed bandMean sortino
short(SMA 30–54)-0.095
medium(SMA 55–80)-0.067
long(SMA 81–120)-0.255

Efficiency ratio over this window: 10d 0.409, 20d 0.298, 60d 0.172. A high ER means price travels in straighter lines, which should favour faster SMAs; a low ER means the path is noisy and a slower SMA should do better. The index page tests that across all markets rather than asserting it here.

K2. The Funded Ensemble — 3 Entries, Equal Weight

Each selected period is funded with 33% of the market's capital and runs as its own base system. They are deliberately spread across the plateau: adjacent periods would be one system counted several times, which is the overfit this is meant to avoid.

EntryBandWeightCAGRMax DDSharpeSortinoCalmarTradesWin rate
SMA 45short33.3%6.7%-39.2%0.300.460.179442.6%
SMA 48short33.3%1.2%-60.8%0.060.080.0210034.0%
SMA 60medium33.3%1.3%-44.3%0.060.090.039133.0%
Ensemble (equal weight)100.0%3.4%-43.9%0.160.240.08285
Mean pairwise correlation between the members' daily returns is 0.802. The ensemble's Sortino is +0.033 against the average of its members, and its drawdown +0.043 — that difference is the combination working (or not), rather than any member being good.

The ensemble against the three readings it replaces

On sortino, the tab's selection metric.

ReadingsortinoEnsemble minus thisWhat it is
Ensemble0.2403 periods from the plateau, equal weight.
Buy & hold0.053+0.187Holding the future outright over the same window.
Median cell-0.251+0.491The middle of all 50 cells — what picking a parameter at random gets you. This is the reading the earlier cross-market tables used.
Best single cell — SMA 450.456-0.216The luckiest point on the surface. In sample it must win; the question is by how little, because whatever it wins by is what you are betting survives.

Ensemble Equity — Month-End Cumulative Return

Each funded entry gets 33% of the market's capital and runs independently. Everything stops on 2015-12-31.

Below: the same twelve sections as the market card, rebuilt in-sample. Identical code, identical grids — only the window differs. Use them to see what each risk layer would have done to the funded periods above. Section 13 (Reset / No Reset, added 2026-08-04) is deliberately not here: the client asked for it on the markets “koja imaju sve podatke”, and this tab is the one that does not. The full-history card for Lean Hogs is here — do not read it while choosing parameters.
Instrument
Lean Hogs (HE=F)
History
2000-12-15 → 2015-12-31
Trading Days / Year
252
Volatility Grid
15–55% (step 5)
How this market is calibrated. The volatility factor grid is 15–55%, derived from p10-p90 of annualized 20-day volatility, rounded to a nice step on this market's own history — not Corn's 20–60%, which would be meaningless here. Annualized 20-day volatility percentiles: p5 12.4%, p10 14.3%, p25 18.3%, p50 24.4%, p75 36.0%, p90 51.2%, p95 63.2%. Metrics annualize with 252 trading days per year.

1. Moving Average Optimization

SMA periods 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120. Entry when the SMA turns up, exit when it turns down (System A flat, System B reverses short). Returns are percentages of capital on a compounding equity curve.

Total Return By SMA Period

System A (Long Only) vs System B (Long & Short, stop-and-reverse on the SMA slope). Percentage return on a compounding equity curve.

2. Risk Metrics — Base Systems

CAGR, total return, max drawdown, Sharpe and trade count for every base variant of both systems over 3,780 daily bars. System A = Long Only, System B = Long & Short (stop-and-reverse).

Donchian Breakout — Pure Channel

Lookback N grid 20–80 step 3, then 85, 90, 95, 100. Exit on the opposite N-period band break.

NA: CAGRA: Total ReturnA: Max DDA: SharpeA: SortinoA: CalmarA: TradesB: CAGRB: Total ReturnB: Max DDB: SharpeB: SortinoB: CalmarB: Trades
20-5.0%-53.7%-70.8%-0.22-0.30-0.0758-14.2%-89.9%-92.9%-0.45-0.61-0.15115
23-3.1%-38.1%-74.9%-0.15-0.20-0.0449-10.3%-80.3%-92.0%-0.32-0.44-0.1198
26-4.6%-50.8%-76.6%-0.23-0.30-0.0645-13.6%-88.7%-94.8%-0.43-0.57-0.1490
29-4.2%-47.5%-75.0%-0.21-0.27-0.0641-12.9%-87.3%-94.1%-0.41-0.53-0.1482
32-5.7%-58.3%-74.9%-0.27-0.35-0.0839-15.1%-91.4%-95.2%-0.48-0.61-0.1678
35-7.2%-67.4%-79.1%-0.35-0.43-0.0937-17.7%-94.6%-96.7%-0.56-0.71-0.1874
38-2.8%-35.1%-62.1%-0.13-0.17-0.0530-8.7%-74.5%-86.5%-0.28-0.37-0.1060
41-2.0%-26.3%-54.6%-0.09-0.13-0.0428-7.7%-70.0%-82.4%-0.24-0.34-0.0956
44-1.9%-25.5%-53.1%-0.08-0.12-0.0424-6.7%-64.7%-79.5%-0.21-0.29-0.0848
47-0.3%-3.8%-43.8%-0.01-0.02-0.0121-3.1%-37.8%-65.2%-0.10-0.14-0.0542
50-1.3%-17.4%-45.1%-0.05-0.07-0.0321-5.2%-54.8%-72.4%-0.16-0.23-0.0742
53-1.7%-23.2%-46.5%-0.07-0.10-0.0420-6.0%-60.6%-75.6%-0.19-0.26-0.0840
56-3.0%-36.3%-47.1%-0.13-0.17-0.0619-8.1%-71.9%-85.0%-0.26-0.35-0.1038
59-3.3%-39.5%-48.4%-0.15-0.19-0.0719-8.7%-74.5%-85.8%-0.27-0.37-0.1038
62-5.0%-53.5%-58.1%-0.22-0.29-0.0919-12.9%-87.5%-92.6%-0.40-0.52-0.1438
65-5.4%-56.8%-61.1%-0.25-0.32-0.0919-13.8%-89.3%-93.7%-0.43-0.56-0.1538
68-6.1%-61.4%-65.1%-0.27-0.35-0.0919-15.1%-91.4%-94.7%-0.47-0.61-0.1638
71-7.6%-69.2%-72.2%-0.33-0.42-0.1019-17.8%-94.7%-96.6%-0.55-0.71-0.1838
74-9.0%-75.6%-77.1%-0.39-0.50-0.1219-20.4%-96.7%-97.7%-0.62-0.81-0.2138
77-7.3%-68.1%-70.0%-0.33-0.43-0.1018-16.3%-93.1%-94.9%-0.50-0.68-0.1736
80-6.0%-60.3%-62.7%-0.27-0.36-0.1016-13.6%-88.9%-91.7%-0.42-0.57-0.1532
85-6.5%-63.5%-65.7%-0.29-0.38-0.1016-14.6%-90.7%-93.1%-0.45-0.61-0.1632
90-7.1%-66.6%-68.7%-0.31-0.41-0.1015-15.7%-92.3%-93.0%-0.48-0.64-0.1730
95-7.5%-68.7%-70.6%-0.32-0.42-0.1115-16.4%-93.2%-93.7%-0.50-0.68-0.1730
100-7.9%-70.8%-72.5%-0.34-0.44-0.1115-17.2%-94.1%-94.6%-0.53-0.71-0.1830

Moving Average — SMA Slope

SMA period grid 30→70 step 3, then 70→120 step 5. Exit/reverse when the SMA slope flips.

SMAA: CAGRA: Total ReturnA: Max DDA: SharpeA: SortinoA: CalmarA: TradesB: CAGRB: Total ReturnB: Max DDB: SharpeB: SortinoB: CalmarB: Trades
30-3.1%-37.9%-71.1%-0.15-0.19-0.04125-10.9%-82.2%-90.8%-0.35-0.45-0.12249
33-7.7%-70.0%-86.1%-0.36-0.46-0.09120-19.7%-96.2%-98.1%-0.62-0.79-0.20239
36-7.4%-68.4%-83.6%-0.35-0.44-0.09116-18.7%-95.5%-97.4%-0.59-0.76-0.19231
39-4.6%-50.4%-75.9%-0.22-0.28-0.06106-13.5%-88.5%-95.6%-0.43-0.56-0.14211
421.5%24.5%-58.7%0.070.100.0399-1.7%-23.2%-82.9%-0.06-0.08-0.02197
456.7%164.2%-39.2%0.300.460.17948.4%232.9%-56.1%0.270.420.15188
481.2%20.3%-60.8%0.060.080.02100-1.7%-23.2%-83.8%-0.06-0.08-0.02200
51-1.7%-23.1%-51.2%-0.08-0.10-0.03102-7.2%-67.5%-86.3%-0.23-0.31-0.08204
54-0.2%-2.9%-44.4%-0.01-0.01-0.00101-3.7%-43.5%-77.5%-0.12-0.17-0.05202
570.4%5.6%-49.0%0.020.020.0184-3.5%-41.4%-76.7%-0.11-0.16-0.05168
601.3%20.9%-44.3%0.060.090.0391-0.8%-11.6%-71.5%-0.03-0.04-0.01182
634.0%79.3%-40.9%0.190.280.10813.9%78.3%-58.4%0.130.190.07162
66-1.8%-23.9%-44.2%-0.08-0.11-0.0476-6.9%-66.0%-85.0%-0.22-0.30-0.08152
69-1.3%-17.4%-46.3%-0.06-0.08-0.0381-7.0%-66.5%-86.3%-0.23-0.31-0.08162
70-0.7%-10.3%-44.3%-0.03-0.04-0.0270-6.0%-60.5%-84.6%-0.19-0.26-0.07140
75-7.4%-68.2%-73.7%-0.34-0.42-0.1059-19.4%-96.0%-97.2%-0.60-0.75-0.20118
80-4.4%-49.1%-59.7%-0.21-0.27-0.0772-12.4%-86.2%-89.4%-0.40-0.52-0.14144
85-4.1%-46.5%-53.8%-0.17-0.24-0.0865-12.5%-86.5%-91.8%-0.39-0.52-0.14130
90-7.7%-69.9%-73.1%-0.34-0.43-0.1165-19.5%-96.2%-97.5%-0.60-0.76-0.20130
95-7.1%-66.8%-72.3%-0.32-0.42-0.1066-16.8%-93.6%-96.2%-0.53-0.71-0.17132
100-2.4%-31.0%-52.9%-0.11-0.15-0.0568-7.6%-69.6%-81.3%-0.25-0.35-0.09136
105-3.8%-43.9%-57.5%-0.16-0.23-0.0772-9.8%-78.6%-87.3%-0.32-0.45-0.11144
110-2.2%-27.9%-51.5%-0.09-0.13-0.0464-7.2%-67.2%-83.5%-0.23-0.33-0.09128
115-3.6%-42.3%-54.0%-0.16-0.21-0.0767-9.9%-79.2%-88.3%-0.31-0.43-0.11134
120-4.1%-46.9%-57.2%-0.18-0.24-0.0768-11.1%-82.8%-88.2%-0.35-0.47-0.13136

3. Equity Curve Explorer

Pick a period, direction and ATR profit target (or Base) to see its month-end cumulative return, starting at 0%.

Every ATR profit target is overlaid against the base system.

Loading equity curves…

4. Profit Factor Sweep

An ATR profit target swept 1.5 → 10.0 (step 0.5) for every variant. Target = entry ± PF × ATR₂₀, frozen at entry.

Loading profit factor grid…

5. Volatility-Adjusted Profit Target (Dynamic)

The same sweep as section 4, but the target is recomputed each day from the current ATR instead of frozen at entry, so it breathes with volatility while staying anchored to the entry price.

Loading profit factor grid…

6. Stop Loss Sweep

A protective ATR stop swept 1.5 → 10.0 (step 0.5). Stop = entry ∓ SL × ATR₂₀, no take-profit; the position still reverses on the opposite SMA-slope signal if the stop is not hit first.

Loading stop loss factor grid…

7. ATR Trailing Stop Sweep

A trailing ATR stop, distinct from section 6: stop = best price reached since entry ∓ f × ATR₂₀, recomputed daily. It ratchets in the trade's favour and retreats when volatility rises. Swept 1.0 → 10.0 (step 0.5).

Loading trailing factor grid…

8. Stop Loss + Time Stop — Equity Curves

The full strategy: SMA entry, ATR stop loss, and a time stop that exits a trade still not in profit 5/10/15/20/30/40 days after entry. Split into one file per SMA period so this loads in a fraction of the Corn page's payload.

Loading equity curves…

9. Time Stop Only — Equity Curves

The time stop judged on its own, with no ATR stop, against the plain SMA baseline. Each line exits a trade still underwater 5/10/15/20/30/40 days after entry.

Loading equity curves…

10. Volatility Filter Sweep

Volatility is the annualized standard deviation of daily returns — the standard deviation of the last 20 daily returns × √252. The factor is a maximum: a new position opens only on a day at or below it, so the strategy stands aside in turbulence. An open trade is never closed by the filter.

Loading volatility factor grid…

11. Volatility Filter + ATR Trailing Stop

The first combined risk layer: the section-10 filter and the section-7 trailing stop in one strategy, swept together across every combination. The last column is section 7 on its own, so you can read left to right whether adding the filter helps.

Loading the volatility × trailing-stop grid…

12. Volatility Regime Switch

The same threshold as section 10, but acting as a regime switch: above it the open position is closed at that day's close, nothing opens while volatility stays high, and the position re-opens on the first calm day the SMA slope still points the right way — no fresh signal required.

Loading volatility factor grid…

Source: Yahoo Finance daily OHLC, truncated at 2015-12-31 — nothing after that date was read by any calculation on this page. Generated 2026-08-03 05:58:54 UTC.