Strategy Analytics

Lean Hogs — Moving Average & Risk Layers

The same sections as the Corn MA page, on Lean Hogs (HE=F). Volatility ranges are calibrated to this market rather than copied from Corn.

Instrument
Lean Hogs (HE=F)
History
2000-12-15 → 2026-07-31
Trading Days / Year
252
Volatility Grid
20–100% (step 10)
How this market is calibrated. The volatility factor grid is 20–100%, 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 13.2%, p10 15.2%, p25 19.4%, p50 27.3%, p75 40.0%, p90 59.4%, p95 66.1%. 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 6,438 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-4.5%-69.5%-79.2%-0.18-0.24-0.0692-14.5%-98.2%-98.5%-0.42-0.56-0.15184
23-2.1%-42.4%-74.9%-0.09-0.12-0.0378-9.6%-92.5%-95.4%-0.28-0.37-0.10156
26-2.4%-46.6%-76.6%-0.10-0.13-0.0371-10.4%-94.0%-95.9%-0.30-0.40-0.11142
29-3.2%-56.9%-80.1%-0.14-0.18-0.0467-12.0%-96.2%-97.8%-0.35-0.46-0.12134
32-3.3%-57.0%-83.7%-0.13-0.17-0.0462-11.7%-95.9%-98.1%-0.33-0.44-0.12124
35-2.1%-42.6%-87.6%-0.09-0.12-0.0256-9.5%-92.1%-98.8%-0.27-0.36-0.10112
38-0.7%-16.7%-80.1%-0.03-0.04-0.0149-6.5%-82.1%-97.3%-0.19-0.25-0.0798
410.4%11.5%-69.7%0.020.020.0145-4.7%-70.6%-94.5%-0.13-0.19-0.0590
440.4%12.0%-67.0%0.020.020.0140-3.9%-63.6%-89.3%-0.11-0.16-0.0480
470.2%4.7%-70.5%0.010.010.0037-4.1%-65.4%-89.9%-0.12-0.16-0.0574
50-0.4%-8.6%-71.9%-0.01-0.02-0.0036-5.1%-73.8%-92.2%-0.15-0.21-0.0672
53-0.5%-12.6%-67.2%-0.02-0.03-0.0134-5.3%-75.2%-90.0%-0.15-0.21-0.0668
560.7%18.7%-60.2%0.030.040.0131-2.0%-40.2%-85.0%-0.06-0.08-0.0262
590.4%11.1%-61.8%0.020.020.0131-2.5%-47.4%-86.3%-0.07-0.10-0.0362
62-1.8%-36.9%-74.2%-0.07-0.10-0.0231-7.4%-86.1%-95.2%-0.22-0.29-0.0862
65-3.2%-56.0%-80.3%-0.13-0.17-0.0431-10.0%-93.1%-97.2%-0.29-0.38-0.1062
68-4.5%-68.9%-83.4%-0.18-0.23-0.0531-12.4%-96.6%-98.0%-0.36-0.48-0.1362
71-5.7%-78.0%-87.6%-0.23-0.30-0.0731-14.9%-98.4%-98.9%-0.42-0.56-0.1562
74-7.4%-86.0%-86.9%-0.31-0.39-0.0931-18.1%-99.4%-99.5%-0.52-0.68-0.1862
77-7.1%-84.6%-85.6%-0.29-0.38-0.0830-16.8%-99.1%-99.2%-0.48-0.64-0.1760
80-6.6%-82.7%-83.8%-0.28-0.36-0.0828-16.1%-98.9%-99.0%-0.45-0.60-0.1656
85-7.8%-87.6%-88.3%-0.32-0.41-0.0927-18.4%-99.4%-99.5%-0.51-0.68-0.1954
90-8.6%-89.9%-90.5%-0.35-0.45-0.0926-20.0%-99.7%-99.7%-0.55-0.73-0.2052
95-9.5%-92.2%-92.7%-0.38-0.49-0.1026-21.7%-99.8%-99.8%-0.60-0.79-0.2252
100-9.9%-93.1%-93.5%-0.40-0.51-0.1126-22.7%-99.9%-99.9%-0.62-0.82-0.2352

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.2%-56.2%-71.1%-0.13-0.17-0.04204-12.0%-96.2%-96.9%-0.35-0.45-0.12408
33-7.4%-85.9%-89.9%-0.30-0.38-0.08209-19.8%-99.6%-99.7%-0.57-0.72-0.20418
36-6.4%-81.3%-88.3%-0.25-0.33-0.07192-17.7%-99.3%-99.5%-0.51-0.66-0.18384
39-5.2%-74.2%-82.8%-0.21-0.27-0.06183-15.7%-98.7%-99.2%-0.45-0.59-0.16366
420.1%2.2%-74.0%0.000.000.00171-5.6%-77.3%-92.0%-0.16-0.22-0.06342
455.3%273.3%-65.2%0.210.300.081644.5%209.7%-81.9%0.130.190.06328
481.1%31.6%-70.6%0.040.060.02172-3.2%-55.9%-87.9%-0.09-0.13-0.04344
51-0.1%-3.6%-72.1%-0.01-0.01-0.00169-5.5%-76.7%-93.1%-0.16-0.22-0.06338
541.8%56.9%-58.0%0.070.100.03170-1.6%-34.4%-78.4%-0.05-0.07-0.02340
572.1%71.5%-55.1%0.090.120.04149-1.5%-31.2%-76.7%-0.04-0.06-0.02298
601.6%48.9%-55.4%0.070.090.03149-2.0%-40.6%-78.1%-0.06-0.08-0.03298
634.3%190.0%-55.3%0.180.260.081333.2%121.9%-79.5%0.090.140.04266
662.3%77.0%-48.0%0.090.130.05132-0.2%-5.8%-85.0%-0.01-0.01-0.00264
690.9%26.8%-54.5%0.040.050.02135-3.9%-63.7%-87.4%-0.11-0.16-0.04270
701.2%36.1%-50.4%0.050.070.02127-3.2%-56.9%-84.6%-0.10-0.13-0.04254
75-4.1%-66.0%-85.0%-0.17-0.22-0.05112-13.6%-97.6%-99.1%-0.39-0.52-0.14224
80-5.3%-75.3%-83.9%-0.22-0.29-0.06123-14.6%-98.2%-98.8%-0.42-0.56-0.15246
85-6.6%-82.7%-85.2%-0.26-0.35-0.08109-17.5%-99.3%-99.3%-0.49-0.65-0.18218
90-9.2%-91.4%-92.3%-0.37-0.46-0.10111-22.1%-99.8%-99.8%-0.62-0.80-0.22222
95-5.6%-77.3%-84.7%-0.23-0.30-0.0798-15.0%-98.4%-98.8%-0.43-0.57-0.15196
100-2.7%-49.9%-68.9%-0.11-0.14-0.0498-9.2%-91.5%-94.4%-0.27-0.37-0.10196
105-4.2%-66.7%-78.1%-0.17-0.22-0.05102-11.9%-96.0%-96.8%-0.35-0.48-0.12204
110-4.4%-68.7%-73.0%-0.17-0.23-0.0695-12.3%-96.5%-97.1%-0.36-0.48-0.13190
115-5.6%-77.3%-79.6%-0.22-0.29-0.07109-14.7%-98.3%-98.5%-0.42-0.56-0.15218
120-5.1%-73.4%-78.2%-0.20-0.25-0.06112-13.6%-97.6%-97.8%-0.39-0.51-0.14224

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:36:02 UTC.