Strategy Analytics

Natural Gas — Moving Average & Risk Layers

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

Instrument
Natural Gas (NG=F)
History
2000-08-30 → 2026-07-31
Trading Days / Year
252
Volatility Grid
30–110% (step 10)
How this market is calibrated. The volatility factor grid is 30–110%, 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 26.1%, p10 29.2%, p25 35.4%, p50 49.9%, p75 67.6%, p90 86.9%, p95 101.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,509 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-6.5%-82.4%-92.5%-0.14-0.21-0.0783-18.3%-99.5%-99.7%-0.32-0.45-0.18166
23-5.7%-77.9%-89.5%-0.12-0.18-0.0673-16.7%-99.1%-99.5%-0.29-0.41-0.17146
26-7.2%-85.5%-92.5%-0.16-0.24-0.0867-20.7%-99.8%-99.8%-0.36-0.51-0.21134
29-9.2%-91.8%-97.1%-0.21-0.30-0.1062-26.5%-100.0%-100.0%-0.45-0.62-0.26124
32-12.2%-96.5%-98.7%-0.28-0.40-0.1257-34.0%-100.0%-100.0%-0.55-0.74-0.34115
35-10.6%-94.4%-98.0%-0.24-0.34-0.1151-30.8%-100.0%-100.0%-0.51-0.68-0.31103
38-10.8%-94.7%-97.5%-0.24-0.35-0.1149-30.5%-100.0%-100.0%-0.51-0.68-0.3099
41-11.9%-96.2%-98.1%-0.27-0.38-0.1248-33.0%-100.0%-100.0%-0.54-0.72-0.3397
44-9.7%-92.8%-97.4%-0.22-0.32-0.1044-31.1%-100.0%-100.0%-0.51-0.67-0.3188
47-11.2%-95.4%-98.2%-0.26-0.37-0.1142-100.0%-100.0%-100.0%-1.51-1.91-1.0084
50-11.4%-95.6%-98.0%-0.26-0.37-0.1241-100.0%-100.0%-100.0%-1.53-1.93-1.0082
53-11.0%-95.0%-97.8%-0.25-0.35-0.1138-100.0%-100.0%-100.0%-1.45-1.86-1.0076
56-10.3%-94.0%-97.2%-0.24-0.34-0.1136-100.0%-100.0%-100.0%-1.41-1.79-1.0072
59-11.2%-95.4%-97.7%-0.26-0.37-0.1235-100.0%-100.0%-100.0%-1.40-1.78-1.0070
62-9.2%-91.8%-95.3%-0.21-0.30-0.1033-25.1%-99.9%-100.0%-0.40-0.56-0.2566
65-5.5%-76.5%-91.8%-0.12-0.18-0.0628-22.2%-99.8%-99.9%-0.36-0.50-0.2256
68-6.2%-80.8%-89.9%-0.14-0.20-0.0726-100.0%-100.3%-100.8%-0.14-0.14-0.9952
71-5.7%-78.0%-84.8%-0.13-0.19-0.0725-100.0%-100.9%-102.3%-0.14-0.14-0.9850
74-6.3%-81.5%-86.7%-0.14-0.21-0.0725-100.0%-100.7%-101.8%-0.14-0.14-0.9850
77-7.2%-85.7%-89.1%-0.17-0.24-0.0823-100.0%-100.5%-102.4%-0.14-0.14-0.9846
80-7.9%-88.2%-90.6%-0.18-0.26-0.0923-100.0%-100.3%-101.8%-0.14-0.14-0.9846
85-5.7%-78.3%-90.9%-0.13-0.20-0.0621-100.0%-100.5%-102.2%-0.14-0.14-0.9843
90-6.0%-79.6%-90.2%-0.14-0.20-0.0720-100.0%-100.3%-101.9%-0.14-0.14-0.9841
95-6.8%-83.8%-91.0%-0.16-0.23-0.0720-100.0%-100.2%-101.4%-0.14-0.14-0.9941
100-7.3%-86.0%-92.2%-0.17-0.25-0.0820-100.0%-100.2%-101.6%-0.97-1.51-0.9841

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-6.6%-82.7%-94.6%-0.15-0.21-0.07273-18.7%-99.5%-99.9%-0.33-0.47-0.19546
33-10.2%-93.9%-98.0%-0.23-0.34-0.10268-25.3%-99.9%-100.0%-0.45-0.63-0.25536
36-1.2%-26.3%-92.4%-0.03-0.04-0.01235-9.2%-91.6%-99.1%-0.16-0.24-0.09470
39-4.9%-72.7%-93.1%-0.11-0.16-0.05224-17.6%-99.3%-99.9%-0.31-0.44-0.18449
42-4.9%-72.8%-90.5%-0.11-0.16-0.05230-17.8%-99.4%-99.8%-0.32-0.45-0.18461
45-7.0%-84.8%-94.7%-0.16-0.23-0.07211-22.1%-99.8%-100.0%-0.39-0.55-0.22423
48-3.2%-57.1%-84.2%-0.07-0.11-0.04190-15.6%-98.7%-99.5%-0.28-0.39-0.16380
51-6.1%-80.6%-92.4%-0.14-0.20-0.07203-20.3%-99.7%-99.9%-0.36-0.50-0.20406
54-5.4%-76.2%-89.3%-0.12-0.18-0.06205-19.1%-99.6%-99.8%-0.34-0.48-0.19410
57-5.4%-76.4%-89.5%-0.12-0.18-0.06207-18.1%-99.4%-99.7%-0.33-0.46-0.18414
60-7.5%-86.7%-92.7%-0.17-0.24-0.08197-20.9%-99.8%-99.9%-0.38-0.52-0.21394
63-7.7%-87.4%-93.1%-0.17-0.25-0.08199-21.8%-99.8%-99.9%-0.39-0.54-0.22398
66-11.3%-95.5%-97.3%-0.25-0.36-0.12201-27.3%-100.0%-100.0%-0.49-0.67-0.27401
69-10.7%-94.7%-96.2%-0.24-0.35-0.11172-25.8%-100.0%-100.0%-0.46-0.62-0.26343
70-11.0%-95.0%-95.4%-0.25-0.35-0.11181-27.2%-100.0%-100.0%-0.48-0.64-0.27361
75-13.0%-97.2%-98.1%-0.29-0.42-0.13189-30.1%-100.0%-100.0%-0.53-0.71-0.30377
80-10.4%-94.1%-94.4%-0.24-0.34-0.11181-25.3%-99.9%-100.0%-0.45-0.61-0.25362
85-1.8%-37.5%-70.1%-0.04-0.06-0.03159-9.2%-91.8%-93.7%-0.17-0.23-0.10318
90-8.8%-90.8%-92.0%-0.20-0.29-0.10166-22.0%-99.8%-99.8%-0.41-0.55-0.22332
95-6.0%-79.5%-86.7%-0.14-0.20-0.07171-18.7%-99.5%-99.7%-0.35-0.47-0.19342
100-7.4%-86.1%-93.7%-0.17-0.24-0.08159-19.8%-99.7%-99.9%-0.36-0.50-0.20318
105-6.4%-81.7%-91.9%-0.14-0.21-0.07162-16.3%-99.0%-99.6%-0.30-0.43-0.16324
110-2.0%-40.1%-80.8%-0.04-0.06-0.02145-9.5%-92.3%-97.7%-0.18-0.26-0.10290
115-5.1%-74.3%-90.0%-0.11-0.17-0.06141-14.5%-98.3%-99.5%-0.27-0.39-0.15282
120-4.4%-69.1%-90.3%-0.10-0.15-0.05158-13.2%-97.4%-99.4%-0.25-0.35-0.13316

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:33:42 UTC.