CTA Trend Following

Mexican Peso — Concentration, Ensemble & The Twelve Sections

Kaufman's robust-region method on Mexican Peso (6M=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 2001-06-18 → 2015-12-31 (3,634 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 42, SMA 45, SMA 57
Direction
System B — Long & Short
Plateau
SMA 57–57 (1/25 tested)
Efficiency ratio (20d)
0.228
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.73. This market is excluded from the funded book on the index page.
Read this before the numbers. CME Mexican peso futures, quoted in USD per peso, so a long position is long the peso against the dollar. Yahoo reports settlement-only bars for much of the early history — 70% of bars had no intraday range in 2001-2008, falling to 39% since 2017 — so the intraday stop and target sections lean close-only on this card. The closes themselves move normally (2.5% unchanged days, ATR never zero).

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 57–57
Width
1 of 25 tested (4%)
Periods in profit
44% of 25
Best / median / worst
0.56 / -0.02 / -0.61

Why this direction

SystemPlateau meanCoveragePeriods in profit
System A — Long Only0.0000%4%
System B — Long & Short0.2694%44%

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.117
medium(SMA 55–80)0.028
long(SMA 81–120)-0.280

Efficiency ratio over this window: 10d 0.326, 20d 0.228, 60d 0.129. 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 42short33.3%2.5%-22.5%0.260.380.1127437.6%
SMA 45short33.3%2.0%-23.0%0.210.300.0922437.9%
SMA 57medium33.3%1.0%-25.7%0.110.150.0419533.8%
Ensemble (equal weight)100.0%1.9%-18.3%0.220.320.10693
Mean pairwise correlation between the members' daily returns is 0.728. The ensemble's Sortino is +0.043 against the average of its members, and its drawdown +0.054 — 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.3213 periods from the plateau, equal weight.
Buy & hold-0.447+0.768Holding the future outright over the same window.
Median cell-0.166+0.487The 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 300.561-0.241The 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 Mexican Peso is here — do not read it while choosing parameters.
Instrument
Mexican Peso (6M=F)
History
2001-06-18 → 2015-12-31
Trading Days / Year
252
Volatility Grid
4–20% (step 2)
Read this before the numbers. CME Mexican peso futures, quoted in USD per peso, so a long position is long the peso against the dollar. Yahoo reports settlement-only bars for much of the early history — 70% of bars had no intraday range in 2001-2008, falling to 39% since 2017 — so the intraday stop and target sections lean close-only on this card. The closes themselves move normally (2.5% unchanged days, ATR never zero).
How this market is calibrated. The volatility factor grid is 4–20%, 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 4.3%, p10 4.9%, p25 6.2%, p50 8.4%, p75 11.0%, p90 13.9%, p95 18.3%. Metrics annualize with 252 trading days per year. No intraday range on 68% of bars: the feed reports high == low that often, so ATR falls back to the close-to-close gap and the intraday stop and target sections (4, 6, 7, 11) behave as close-only — a stop can only be hit if the close passes it. That understates stop-outs on this card.

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,634 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-1.4%-18.2%-28.0%-0.22-0.30-0.0547-0.1%-2.0%-37.8%-0.01-0.02-0.0094
23-1.5%-19.7%-26.6%-0.24-0.33-0.0643-0.3%-4.7%-28.8%-0.04-0.05-0.0186
26-1.5%-19.9%-26.2%-0.25-0.33-0.0638-0.3%-4.8%-32.7%-0.04-0.05-0.0176
29-1.0%-14.0%-20.5%-0.17-0.22-0.05320.5%7.4%-29.7%0.050.080.0264
32-0.8%-10.4%-16.7%-0.12-0.16-0.05281.1%16.7%-26.4%0.110.160.0456
35-1.1%-14.3%-17.0%-0.17-0.22-0.06250.6%9.0%-22.9%0.060.090.0350
38-0.6%-8.2%-13.7%-0.09-0.13-0.04221.5%24.6%-22.4%0.160.230.0744
41-0.6%-8.5%-17.1%-0.10-0.13-0.04211.5%24.6%-23.3%0.160.230.0742
44-0.5%-6.6%-18.7%-0.08-0.10-0.03191.4%21.7%-28.4%0.150.210.0539
47-0.1%-1.1%-18.3%-0.01-0.02-0.00172.0%33.1%-27.2%0.220.310.0735
500.4%6.5%-16.6%0.070.100.03153.1%55.6%-24.2%0.330.480.1331
530.3%3.7%-17.7%0.040.060.01152.7%47.7%-26.3%0.290.420.1031
560.4%5.9%-12.9%0.060.090.03133.1%54.8%-18.1%0.330.480.1727
590.3%4.5%-13.4%0.050.070.02123.0%52.1%-18.1%0.320.450.1625
62-0.2%-2.5%-13.7%-0.03-0.04-0.01122.0%33.1%-19.2%0.210.310.1025
65-0.3%-4.6%-13.9%-0.05-0.07-0.02121.7%27.7%-19.2%0.180.260.0925
680.0%0.1%-14.8%0.000.000.00112.4%40.8%-20.8%0.260.370.1223
71-0.1%-1.2%-15.2%-0.01-0.02-0.01112.2%37.1%-21.4%0.240.340.1023
74-0.3%-4.8%-18.1%-0.05-0.07-0.02112.3%38.9%-24.4%0.250.350.0922
77-0.1%-1.7%-15.1%-0.02-0.02-0.01102.8%48.3%-18.7%0.300.430.1520
80-0.2%-3.3%-15.3%-0.04-0.05-0.02102.5%43.4%-19.5%0.270.390.1320
85-0.4%-6.3%-17.2%-0.07-0.09-0.03102.1%34.8%-21.1%0.220.320.1020
90-0.7%-10.1%-18.2%-0.11-0.15-0.04101.5%23.7%-25.7%0.160.230.0620
95-1.1%-14.9%-21.1%-0.18-0.24-0.05100.7%11.1%-30.5%0.080.110.0220
100-1.3%-17.8%-23.8%-0.22-0.29-0.06100.3%3.7%-32.6%0.030.040.0120

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
300.5%8.0%-19.8%0.090.120.031373.7%67.9%-30.5%0.380.560.12275
33-2.9%-34.9%-38.8%-0.47-0.61-0.08146-3.2%-37.2%-47.1%-0.33-0.46-0.07292
36-2.4%-29.2%-32.6%-0.39-0.51-0.07148-2.1%-26.2%-42.5%-0.22-0.31-0.05296
39-0.8%-10.5%-17.3%-0.13-0.17-0.041411.1%17.4%-27.2%0.120.170.04282
42-0.1%-1.4%-16.5%-0.02-0.02-0.011372.5%42.1%-22.5%0.260.380.11274
45-0.4%-5.4%-16.9%-0.06-0.09-0.021122.0%33.2%-23.0%0.210.300.09224
48-1.1%-14.8%-24.7%-0.18-0.24-0.041040.4%5.3%-40.8%0.040.050.01209
51-1.3%-16.7%-24.1%-0.21-0.27-0.051120.2%2.5%-33.1%0.020.030.01225
54-0.2%-3.0%-14.9%-0.03-0.05-0.011072.2%36.7%-26.0%0.230.330.08215
57-0.7%-10.1%-17.9%-0.12-0.16-0.04971.0%15.3%-25.7%0.110.150.04195
60-0.2%-2.4%-14.7%-0.03-0.04-0.01892.1%35.1%-21.4%0.230.320.10179
63-1.0%-13.3%-20.7%-0.16-0.22-0.05850.4%5.7%-28.3%0.040.060.01171
66-1.5%-19.2%-26.1%-0.25-0.32-0.0684-0.6%-8.8%-38.3%-0.07-0.10-0.02169
69-1.3%-17.4%-27.0%-0.22-0.29-0.0594-0.3%-4.1%-40.6%-0.03-0.04-0.01189
70-1.2%-16.3%-25.2%-0.20-0.26-0.0591-0.0%-0.2%-35.9%-0.00-0.00-0.00183
75-1.7%-22.4%-32.9%-0.29-0.38-0.0597-1.0%-13.3%-44.7%-0.11-0.15-0.02195
80-1.4%-18.4%-32.1%-0.23-0.31-0.0491-0.1%-1.9%-39.9%-0.01-0.02-0.00183
85-1.0%-13.6%-20.8%-0.17-0.22-0.05820.7%10.1%-25.1%0.070.100.03164
90-1.7%-22.1%-29.4%-0.28-0.37-0.0682-0.7%-10.0%-36.8%-0.08-0.11-0.02164
95-1.8%-23.2%-29.9%-0.31-0.40-0.0676-0.9%-12.7%-40.1%-0.10-0.14-0.02152
100-3.0%-35.5%-40.6%-0.51-0.67-0.0796-3.3%-38.4%-55.8%-0.36-0.50-0.06192
105-3.4%-39.7%-44.3%-0.59-0.76-0.0891-4.1%-45.1%-60.6%-0.44-0.61-0.07182
110-2.4%-29.7%-35.9%-0.42-0.54-0.0791-2.0%-25.6%-47.7%-0.22-0.31-0.04182
115-1.9%-24.3%-29.9%-0.34-0.44-0.06101-0.9%-11.9%-36.4%-0.09-0.13-0.02202
120-3.3%-38.5%-41.9%-0.58-0.74-0.0884-3.6%-40.8%-55.6%-0.39-0.54-0.06168

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 06:07:28 UTC.