Strategy Analytics

Mexican Peso — Moving Average & Risk Layers

The same sections as the Corn MA page, on Mexican Peso (6M=F). Volatility ranges are calibrated to this market rather than copied from Corn.

Instrument
Mexican Peso (6M=F)
History
2001-06-18 → 2026-07-31
Trading Days / Year
252
Volatility Grid
6–22% (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 6–22%, 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.7%, p10 5.4%, p25 7.0%, p50 9.3%, p75 12.3%, p90 15.6%, p95 19.0%. Metrics annualize with 252 trading days per year. No intraday range on 57% 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 6,293 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.7%-35.5%-45.8%-0.25-0.33-0.0486-2.2%-42.7%-60.2%-0.21-0.29-0.04172
23-1.1%-23.8%-37.4%-0.15-0.20-0.0373-0.8%-18.0%-34.7%-0.07-0.11-0.02146
26-0.8%-18.0%-37.8%-0.11-0.15-0.0264-0.2%-4.7%-34.5%-0.02-0.03-0.01128
29-0.4%-8.6%-32.7%-0.05-0.07-0.01550.5%14.3%-29.7%0.050.070.02110
32-0.3%-6.9%-32.5%-0.04-0.05-0.01480.7%19.4%-34.2%0.070.100.0296
35-0.6%-13.1%-33.0%-0.08-0.10-0.02450.2%6.0%-32.8%0.020.030.0190
38-0.4%-9.0%-33.1%-0.05-0.07-0.01410.6%16.1%-38.7%0.060.080.0282
41-0.7%-15.5%-35.7%-0.09-0.12-0.02390.1%1.5%-42.9%0.010.010.0078
44-0.4%-9.6%-34.5%-0.06-0.08-0.01360.4%9.2%-35.0%0.030.050.0173
47-0.2%-5.0%-30.4%-0.03-0.04-0.01330.7%18.5%-31.1%0.070.090.0267
50-0.1%-1.5%-27.5%-0.01-0.01-0.00311.0%28.9%-35.2%0.100.140.0363
53-0.1%-3.0%-27.6%-0.02-0.02-0.00290.9%25.3%-36.9%0.090.120.0259
56-0.0%-0.5%-28.1%-0.00-0.00-0.00261.2%33.5%-35.9%0.110.160.0353
59-0.2%-4.4%-31.8%-0.03-0.04-0.01250.9%24.4%-39.2%0.080.120.0251
62-0.6%-14.9%-34.2%-0.09-0.12-0.0225-0.0%-1.0%-43.5%-0.00-0.01-0.0051
65-0.8%-18.3%-36.3%-0.11-0.15-0.0225-0.4%-8.6%-44.9%-0.03-0.05-0.0151
68-0.3%-7.5%-30.3%-0.04-0.06-0.01230.6%16.9%-39.8%0.060.090.0247
71-0.5%-11.6%-33.1%-0.07-0.09-0.01230.3%6.9%-41.4%0.030.040.0147
74-0.6%-13.4%-35.4%-0.08-0.11-0.02230.4%11.7%-43.8%0.040.060.0145
77-0.5%-12.5%-36.6%-0.08-0.10-0.01220.5%14.2%-45.7%0.050.070.0143
80-0.3%-8.0%-32.9%-0.05-0.07-0.01211.0%26.7%-37.2%0.090.130.0341
850.2%5.6%-26.3%0.030.040.01181.9%61.4%-26.4%0.190.280.0735
90-0.3%-6.4%-32.9%-0.04-0.05-0.01181.0%26.9%-31.6%0.090.140.0335
95-0.6%-13.0%-37.0%-0.08-0.11-0.02180.4%10.1%-33.3%0.040.050.0135
100-0.8%-18.3%-40.8%-0.12-0.16-0.0218-0.1%-3.4%-39.2%-0.01-0.02-0.0035

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-0.5%-11.8%-32.8%-0.07-0.09-0.022780.2%4.5%-46.1%0.020.020.00557
33-2.0%-40.2%-46.7%-0.29-0.38-0.04266-2.8%-50.5%-52.8%-0.26-0.37-0.05532
36-1.1%-24.9%-37.6%-0.16-0.21-0.03267-1.0%-22.6%-42.5%-0.10-0.14-0.02533
39-0.1%-1.6%-24.3%-0.01-0.01-0.002451.1%30.2%-27.2%0.100.140.04490
42-0.1%-2.4%-31.7%-0.01-0.02-0.002341.1%30.6%-34.0%0.100.150.03468
45-0.7%-16.4%-34.1%-0.10-0.14-0.02205-0.1%-1.5%-39.1%-0.01-0.01-0.00410
48-0.5%-12.3%-34.5%-0.08-0.10-0.021880.3%6.5%-40.8%0.020.030.01377
51-0.4%-8.6%-31.9%-0.05-0.07-0.011940.6%15.3%-33.1%0.050.080.02389
540.1%1.5%-28.4%0.010.010.001961.4%41.2%-41.0%0.130.190.03393
57-0.1%-3.0%-30.1%-0.02-0.02-0.001701.0%28.0%-27.7%0.100.140.04341
60-0.4%-10.4%-33.0%-0.06-0.09-0.011630.3%8.8%-40.8%0.030.050.01327
63-1.0%-22.4%-39.6%-0.14-0.19-0.03160-0.8%-17.9%-40.0%-0.08-0.11-0.02320
66-1.1%-23.2%-39.5%-0.15-0.20-0.03151-0.9%-20.1%-38.3%-0.09-0.12-0.02302
69-0.8%-18.1%-41.9%-0.11-0.15-0.02160-0.4%-8.8%-41.1%-0.04-0.05-0.01321
70-0.7%-17.0%-38.8%-0.10-0.14-0.02158-0.2%-5.2%-35.9%-0.02-0.03-0.01317
75-1.4%-28.8%-45.0%-0.20-0.26-0.03167-1.4%-29.8%-46.0%-0.13-0.19-0.03335
80-1.2%-26.4%-42.5%-0.18-0.23-0.03155-1.1%-23.8%-43.9%-0.10-0.15-0.02310
85-1.1%-23.2%-38.3%-0.15-0.20-0.03153-0.7%-16.9%-39.6%-0.07-0.10-0.02305
90-1.2%-26.6%-44.2%-0.18-0.24-0.03144-1.1%-23.4%-46.0%-0.10-0.14-0.02288
95-1.6%-33.7%-48.8%-0.24-0.32-0.03141-1.8%-36.8%-58.1%-0.18-0.25-0.03281
100-2.3%-44.1%-58.9%-0.35-0.45-0.04169-3.3%-56.9%-71.6%-0.32-0.45-0.05337
105-3.0%-52.7%-62.7%-0.45-0.58-0.05150-4.6%-69.0%-77.2%-0.44-0.62-0.06300
110-2.7%-50.0%-60.4%-0.41-0.52-0.05163-4.1%-64.6%-75.6%-0.40-0.55-0.05326
115-1.9%-38.4%-50.6%-0.29-0.37-0.04174-2.4%-45.0%-58.8%-0.23-0.32-0.04348
120-2.3%-44.5%-56.0%-0.35-0.45-0.04153-3.1%-54.5%-65.3%-0.30-0.42-0.05306

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…

13. Reset / No Reset

Section 7's trailing stop with the client's 2026-08-04 question on top: after a stop-out, does re-entering beat staying out? No Reset shuts that side until the SMA slope has flipped away and back, so a market that keeps falling leaves the saved profit saved. Reset waits for a new high — the side re-opens when the market closes back above the stopped-out trade's highest high, at a worse price than the exit, so that a reversal is not missed. Immediate is what section 7 itself does, since its entry signal is a state and not an event: the next bar re-enters while the slope still points the same way. Both directions are swept, so System A only resets long and System B resets whichever side was stopped out.

Loading reset-rule grid…

Source: Yahoo Finance daily OHLC, full available history. Generated 2026-07-31 15:50:15 UTC.