Strategy Analytics

Gold — Moving Average & Risk Layers

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

Instrument
Gold (GC=F)
History
2000-08-30 → 2026-07-30
Trading Days / Year
252
Volatility Grid
10–26% (step 2)
How this market is calibrated. The volatility factor grid is 10–26%, 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 8.9%, p10 9.9%, p25 11.7%, p50 14.7%, p75 18.7%, p90 24.6%, p95 31.5%. 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,502 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
205.6%311.1%-33.4%0.410.570.1782-0.4%-9.7%-53.5%-0.02-0.03-0.01165
234.8%235.7%-42.7%0.350.490.1175-1.9%-39.3%-71.2%-0.11-0.15-0.03151
264.8%232.8%-37.4%0.350.480.1364-2.1%-41.8%-74.6%-0.12-0.16-0.03129
295.5%293.2%-34.3%0.400.550.1657-0.8%-18.6%-71.4%-0.05-0.06-0.01115
325.3%283.5%-42.0%0.400.550.1353-1.0%-22.0%-67.9%-0.05-0.08-0.01107
355.9%337.5%-41.3%0.430.600.14480.1%3.4%-55.8%0.010.010.0097
386.5%403.4%-44.5%0.470.660.15431.2%37.3%-58.9%0.070.100.0287
416.2%370.2%-45.9%0.440.610.13390.7%19.5%-69.6%0.040.050.0179
445.9%341.7%-46.1%0.420.580.13380.2%5.3%-69.9%0.010.020.0077
475.3%274.4%-46.8%0.370.500.1137-1.1%-25.6%-75.3%-0.06-0.09-0.0275
505.0%256.0%-46.8%0.350.480.1136-1.6%-33.9%-78.7%-0.09-0.12-0.0273
535.0%253.5%-47.2%0.350.480.1135-1.6%-34.5%-76.4%-0.09-0.13-0.0271
565.5%300.3%-49.4%0.380.520.1133-0.5%-12.6%-71.3%-0.03-0.04-0.0167
595.6%310.2%-43.9%0.390.540.1332-0.5%-11.7%-68.8%-0.03-0.04-0.0165
625.4%291.4%-45.2%0.370.520.1231-0.9%-19.9%-71.6%-0.05-0.07-0.0163
656.3%380.8%-45.7%0.430.600.14270.8%23.2%-60.9%0.050.060.0155
686.3%382.8%-48.4%0.430.590.13250.8%23.6%-67.3%0.050.060.0151
716.2%367.3%-49.3%0.420.580.12240.5%14.4%-67.1%0.030.040.0149
746.5%402.7%-47.4%0.440.610.14221.2%35.6%-64.0%0.070.090.0245
777.6%558.0%-38.3%0.520.720.20193.4%139.8%-49.9%0.200.270.0739
808.4%693.9%-34.4%0.570.790.24165.0%253.4%-50.8%0.280.400.1033
859.6%965.2%-38.6%0.630.890.25137.7%578.1%-47.2%0.440.620.1627
909.4%910.4%-40.2%0.620.870.23137.2%506.8%-50.1%0.410.580.1427
959.3%885.1%-42.2%0.620.870.22137.0%474.8%-52.4%0.400.560.1327
1009.0%814.3%-42.4%0.600.840.21136.4%390.4%-52.4%0.360.510.1227

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
305.2%272.4%-36.0%0.380.530.15261-1.0%-21.9%-66.8%-0.05-0.08-0.01522
335.5%300.6%-37.1%0.400.570.15257-0.5%-11.4%-57.6%-0.03-0.04-0.01514
365.0%255.0%-40.2%0.370.510.13242-1.5%-31.6%-60.9%-0.08-0.12-0.02485
395.6%305.2%-45.5%0.400.560.12236-0.4%-9.6%-66.3%-0.02-0.03-0.01473
426.2%367.5%-37.7%0.440.620.162150.6%15.4%-60.0%0.030.040.01431
456.7%431.2%-40.2%0.480.670.171981.7%52.9%-59.4%0.090.130.03397
487.4%523.6%-40.4%0.530.740.181932.9%110.0%-48.7%0.170.240.06387
516.1%358.0%-43.8%0.430.600.141890.5%13.2%-53.7%0.030.040.01379
545.3%275.8%-43.0%0.370.510.12182-1.0%-23.3%-67.4%-0.06-0.08-0.02365
575.3%276.5%-36.5%0.370.510.14179-1.0%-23.3%-71.0%-0.06-0.08-0.01359
606.7%433.7%-36.3%0.470.650.181691.8%58.3%-51.1%0.100.140.04339
638.1%648.9%-29.7%0.570.800.271654.5%214.0%-45.9%0.260.370.10331
667.4%536.7%-31.3%0.520.720.241493.2%125.9%-45.3%0.190.260.07299
698.4%693.7%-29.3%0.580.820.281595.0%251.3%-45.4%0.290.410.11319
708.2%659.7%-34.2%0.560.790.241544.7%225.5%-48.5%0.270.380.10309
757.9%615.2%-37.1%0.550.770.211484.2%191.2%-53.9%0.240.340.08297
808.3%681.2%-26.3%0.570.800.321504.9%239.7%-44.0%0.280.390.11300
859.0%834.3%-30.3%0.620.870.301416.4%401.0%-40.1%0.370.530.16283
908.7%756.7%-35.4%0.590.830.251195.7%316.1%-41.6%0.330.460.14239
958.5%712.0%-32.9%0.570.800.261115.3%279.9%-37.1%0.310.430.14223
1008.0%634.0%-43.6%0.540.760.181234.5%209.1%-50.5%0.260.360.09247
1057.7%577.8%-37.7%0.520.720.201243.7%155.9%-50.6%0.220.300.07249
1108.9%803.4%-37.8%0.600.850.241146.0%353.6%-47.9%0.350.490.13229
1158.1%647.7%-34.1%0.550.760.241294.4%202.2%-38.7%0.250.350.11259
1209.1%841.6%-29.4%0.620.860.311006.3%387.3%-36.9%0.370.510.17201

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-30 09:02:01 UTC.