Strategy Analytics

Corn Moving Average & Profit Factors

SMA-slope optimization on Corn, CAGR / drawdown / Sharpe for the Donchian and MA systems, and an ATR profit-factor sweep.

Instrument
Corn Futures (ZC=F)
History
1978-01-04 → 2026-09-22
SMA Grid
30→70 step 3, then 70→120 step 5 (25 periods)
ATR Target Grid
1.5 → 10.0 step 0.5 (target = entry ± PF × ATR₂₀)

1.00% of current equity at risk per trade · contracts = equity × 1.00% ÷ (20-day ATR × point value), rounded down to whole contracts · $1,000,000 start, profits reinvested

All results are net of trading costs. Every round turn (entry + exit) of one contract pays $5.00 commission + 1.5 ticks of slippage (1.5 × $12.50) = $23.75, i.e. 0.475 price points at $50 per point, times the trade's contract count. Half is charged on entry and half on exit (a position still open at the end has paid only its entry half), so it weighs more on short, frequent trades. Profit Factor is gross profit ÷ gross loss over the trades the account took (not the ATR target multiple sections 4–5 call “profit factor”); Avg Trade and Avg Loss are net account dollars at the chosen sizing. Contract rolls are not charged as extra round turns.
Position sizing: ATR risk on a compounding $1,000,000 account, whole contracts. Every trade buys equity × risk ÷ (20-day ATR at entry × point value) contracts, rounded down to a whole contract, where equity is what the account holds when the trade opens — so profits are reinvested and losses shrink the next position. A trade that rounds down to zero contracts is not taken; the account stays flat through it. Risk is the setting at the top of the page, 0.25% to 5% (default 1%): it sets the position size from one ATR, while the exit is whatever the strategy's own rules say (the opposite signal, or the ATR stop of the sections that have one). Below 5% the same setting offers the sizing used until 14 October 2026 — the whole account in the contracts' notional value, compounding. Every CAGR, drawdown, ratio, trade count, average trade and equity curve follows the setting. Sharpe and Sortino are the annualized mean daily return over its volatility and downside deviation. Points per contract (total profit, long/short split) do not depend on the sizing. Buy-and-hold is a plain, unleveraged holding of the price.

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 on the $1,000,000 account, every trade sized as chosen above, profits reinvested.

Total Return By SMA Period

System A (Long Only) vs System B (Long & Short, stop-and-reverse on the SMA slope). Total return on the $1,000,000 account at the chosen sizing.

2. Risk Metrics — Base Systems

CAGR, total return, max drawdown, Sharpe, profit factor and the average trade / average losing trade for every base variant (no ATR target) of both systems, on the $1,000,000 account over 12,273 daily bars. System A = Long Only, System B = Long & Short (stop-and-reverse). Returns are percentages of the starting $1,000,000; CAGR annualizes the same equity curve, so CAGR and Total Return always move in the same direction.

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: Profit FactorA: Avg TradeA: Avg LossB: CAGRB: Total ReturnB: Max DDB: SharpeB: SortinoB: CalmarB: Profit FactorB: Avg TradeB: Avg Loss
201.4%92.1%-55.3%0.180.260.021.21$6,874−$49,2913.5%431.3%-45.8%0.330.480.081.25$16,095−$107,172
231.4%100.8%-55.0%0.190.270.031.22$8,331−$54,9433.8%512.1%-45.6%0.350.510.081.28$21,249−$129,176
262.3%199.4%-44.3%0.270.390.051.38$19,550−$75,2835.3%1145.1%-47.5%0.470.680.111.41$56,407−$237,027
291.4%100.6%-44.0%0.190.270.031.25$10,584−$61,0574.0%574.5%-45.4%0.370.530.091.35$30,394−$155,414
321.6%117.1%-45.7%0.200.290.041.29$13,012−$64,2944.0%570.6%-43.6%0.360.520.091.36$31,880−$151,378
351.5%101.7%-51.1%0.190.270.031.24$12,106−$71,7933.4%400.6%-47.8%0.320.450.071.26$23,991−$156,343
381.3%87.9%-56.7%0.180.250.021.22$11,126−$72,9983.3%385.7%-53.8%0.310.450.061.25$24,564−$165,319
411.6%117.6%-55.0%0.200.290.031.29$16,115−$85,4003.9%552.3%-46.7%0.360.520.081.30$38,089−$222,236
441.3%89.9%-57.0%0.180.250.021.28$13,218−$72,9193.6%452.2%-42.7%0.330.480.081.34$33,494−$170,397
471.0%64.4%-59.1%0.150.210.021.23$9,761−$61,9933.3%395.8%-45.7%0.310.450.071.32$30,211−$156,699
501.0%59.5%-62.1%0.140.200.021.22$9,593−$62,3203.1%350.0%-52.5%0.300.430.061.34$28,454−$135,420
531.1%67.8%-57.6%0.150.220.021.27$11,489−$63,8583.4%414.3%-43.1%0.320.460.081.42$35,410−$141,606
560.7%41.4%-62.9%0.120.170.011.17$7,135−$61,3352.7%257.7%-49.6%0.260.380.051.31$22,411−$118,890
590.6%34.9%-60.9%0.110.160.011.15$6,234−$61,4222.5%231.3%-44.9%0.250.360.061.32$20,839−$109,501
620.4%21.0%-63.5%0.090.130.011.09$3,811−$60,0302.1%178.8%-47.7%0.230.320.041.27$16,406−$100,703
650.1%5.5%-65.8%0.060.090.001.02$997−$57,3781.5%103.0%-56.5%0.180.250.031.17$9,448−$89,282
680.4%23.8%-66.0%0.090.130.011.10$4,585−$67,2212.5%231.8%-57.6%0.250.360.041.26$22,505−$150,655
710.5%25.6%-70.3%0.100.140.011.10$5,025−$70,9892.2%193.5%-65.5%0.230.330.031.21$19,163−$151,453
740.8%44.3%-66.5%0.120.180.011.17$9,238−$76,0482.7%273.4%-57.4%0.270.380.051.27$28,784−$177,819
770.6%33.6%-67.4%0.110.160.011.13$6,994−$71,9562.4%220.0%-59.4%0.240.350.041.24$23,158−$156,900
800.6%34.3%-66.6%0.110.160.011.15$7,624−$73,4922.7%264.7%-54.1%0.260.380.051.34$29,740−$148,030
850.4%19.7%-65.4%0.090.130.011.09$4,587−$71,4622.4%211.7%-51.8%0.240.340.051.32$24,908−$136,718
900.2%12.7%-66.1%0.080.110.001.06$3,021−$72,2642.2%187.8%-51.0%0.230.330.041.30$22,624−$130,776
950.5%30.1%-67.1%0.100.150.011.15$7,931−$82,5742.8%280.2%-53.0%0.270.390.051.45$37,360−$154,466
1000.3%16.5%-70.2%0.080.120.001.08$4,469−$83,5552.4%214.9%-60.7%0.240.350.041.34$29,441−$152,047

Moving Average — SMA Slope

SMA period grid 30→70 step 3, then 70→120 step 5. Exit/reverse when the SMA slope flips. Trades = the trades the account took at the chosen sizing (a signal that rounds to zero contracts is not taken).

SMAA: CAGRA: Total ReturnA: Max DDA: SharpeA: SortinoA: CalmarA: TradesA: Profit FactorA: Avg TradeA: Avg LossB: CAGRB: Total ReturnB: Max DDB: SharpeB: SortinoB: CalmarB: TradesB: Profit FactorB: Avg TradeB: Avg Loss
300.2%11.7%-64.7%0.070.100.004371.02$268−$17,7511.6%113.3%-66.8%0.190.260.028741.06$1,296−$31,616
330.2%9.9%-60.8%0.070.100.004301.02$231−$15,7671.9%147.2%-61.2%0.210.300.038601.07$1,712−$34,269
360.7%42.5%-52.6%0.120.180.014061.08$1,046−$19,0682.9%296.9%-57.4%0.290.410.058121.11$3,656−$48,790
391.6%121.3%-40.0%0.220.310.043701.22$3,278−$20,7974.5%768.4%-39.2%0.410.600.127391.27$10,398−$58,871
421.6%112.8%-42.2%0.210.300.043431.23$3,288−$19,7094.4%706.4%-41.1%0.400.570.116851.25$10,313−$61,472
451.7%122.0%-41.3%0.210.310.043321.26$3,676−$20,5784.6%801.1%-34.1%0.410.590.146631.28$12,082−$64,065
482.6%247.2%-38.1%0.300.440.073271.37$7,560−$28,8526.0%1575.3%-35.7%0.510.740.176531.33$24,125−$109,468
511.5%102.1%-54.7%0.190.280.033031.20$3,369−$21,9213.8%503.5%-60.9%0.350.500.066051.19$8,322−$60,844
542.1%178.2%-50.5%0.250.360.042901.29$6,145−$28,4124.8%892.5%-55.3%0.420.610.095791.24$15,415−$93,214
572.2%184.4%-56.4%0.260.380.042791.30$6,609−$29,9725.2%1066.0%-63.0%0.450.650.085571.24$19,139−$116,738
601.1%73.2%-65.2%0.160.230.022971.15$2,464−$20,8803.2%354.8%-67.6%0.300.430.055931.16$5,983−$51,876
631.0%66.3%-61.1%0.150.220.023071.14$2,158−$19,7603.0%324.6%-62.8%0.300.420.056131.14$5,296−$51,429
661.2%82.5%-51.9%0.170.250.022911.19$2,837−$18,9283.3%390.6%-60.6%0.320.450.055811.21$6,723−$44,931
691.6%117.5%-48.8%0.210.300.032661.26$4,418−$22,4684.0%576.1%-52.2%0.370.530.085311.25$10,850−$61,378
702.0%168.1%-40.1%0.250.360.052591.35$6,490−$25,0335.1%1021.5%-43.1%0.450.640.125171.33$19,759−$87,743
751.6%111.7%-46.0%0.200.290.032501.27$4,468−$21,3354.6%792.2%-56.5%0.410.590.084991.30$15,876−$74,816
801.8%134.5%-46.7%0.220.320.042391.30$5,626−$24,5814.4%696.7%-49.4%0.390.560.094771.29$14,606−$72,248
850.6%33.4%-57.5%0.110.160.012471.10$1,352−$17,2022.1%173.4%-56.8%0.220.320.044931.16$3,517−$30,574
900.2%11.9%-64.8%0.070.110.002521.04$473−$16,5041.5%108.2%-61.4%0.180.260.025031.10$2,152−$30,372
950.7%41.3%-55.4%0.120.170.012541.12$1,627−$17,5502.3%202.2%-59.1%0.240.340.045071.16$3,987−$35,322
1001.2%82.1%-52.8%0.170.240.022491.24$3,299−$18,6663.3%382.7%-52.1%0.310.440.064971.29$7,700−$38,447
1051.2%82.7%-54.0%0.170.240.022191.28$3,775−$18,9813.3%385.5%-53.7%0.310.440.064371.35$8,821−$35,986
1100.4%20.7%-64.2%0.090.130.012111.08$981−$16,7101.7%127.4%-50.6%0.190.280.034211.19$3,025−$24,663
115-0.3%-14.9%-70.5%0.020.03-0.002210.94−$673−$15,038-0.2%-7.3%-68.9%0.050.08-0.004410.99−$165−$16,302
120-0.7%-27.4%-76.0%-0.01-0.01-0.012190.88−$1,252−$14,143-0.6%-24.2%-77.9%0.020.03-0.014370.95−$554−$15,445

3. Equity Curve Explorer

Pick any strategy — system, variant, direction, and ATR profit target (or Base) — to see its equity curve: month-end cumulative return of the $1,000,000 account at the chosen sizing, starting at 0% — or, with “Show as”, the account in dollars. Use “Compare A vs B” to overlay long-only against long & short.

Equity curves for every strategy (system × variant × direction × profit target) are loaded on demand (~1 MB per position sizing).

4. Profit Factor Sweep

For every Donchian variant and every MA variant, an ATR profit target is swept from 1.5 to 10.0 (step 0.5) — 900 Donchian strategies and 900 MA strategies. Pick a system, variant, and direction to see how CAGR, Sharpe, and total return respond to the target distance. The swept multiple is labelled ATR Target in the charts and tables, so it is not confused with the Profit Factor column (gross profit ÷ gross loss).

Loading results…

5. Volatility-Adjusted Profit Target (Dynamic)

SMA system only. The same ATR profit-target sweep as section 4, but the target is recomputed each day from the current ATR (target = entry ± PF × ATR₂₀ today) instead of being frozen at entry. Because it stays measured from the original entry price it only expands or contracts modestly as volatility changes — a more dynamic take-profit that adapts to the market. Pick a variant and direction to compare its CAGR, Sharpe, and total return against the static target above. Click an ATR target under the charts to take it off them, so the axis rescales to the rest.

Loading results…

6. Stop Loss Sweep

SMA system only. For every MA variant a protective ATR stop is swept from 1.5 to 10.0 (step 0.5) — 900 MA strategies. Stop = entry ∓ SL × ATR₂₀ (no take-profit); the position still reverses on the opposite SMA-slope signal if the stop is not hit first. A bar that opens past the stop fills at its open, not at the stop. Tighter stops cap per-trade losses to try to reduce max drawdown. Pick a variant and direction to see how max drawdown, CAGR, and Sharpe respond to the stop distance.

Loading results…

7. ATR Trailing Stop Sweep

SMA system only. A trailing ATR stop, distinct from the fixed stop in section 6: stop = best price reached since entry ∓ f × ATR₂₀, recomputed every day. It ratchets in the trade's favour as the move extends and retreats when volatility rises, giving the trade room. After a stop-out the strategy waits for the next SMA-slope signal to re-enter. The factor is swept 1.0 → 10.0 (step 0.5) — 950 MA strategies. Pick a variant and direction to see how max drawdown, CAGR, and Sharpe respond to the trail distance.

Loading results…

7b. ATR Trailing Stop — Equity Curve

Section 7 as an equity curve: pick an SMA period, direction and trailing factor to see the strategy's month-end cumulative return, net of costs, against the plain SMA system with no stop. Every factor of the section-7 sweep is here, so any row of its table can be looked at as a curve.

Loading equity curves…

8. Stop Loss + Time Stop — Equity Curves

SMA system only. The full strategy is now: enter on the SMA slope, exit on the opposite signal, ATR stop loss (entry ∓ SL × ATR₂₀), and a time stop — exit a trade still not in profit 5/10/15/20/30/40 days after entry. Pick an SMA period, direction, and ATR SL factor to overlay the equity curve of the ATR stop alone against the 5/10/15/20/30/40-day time-stop upgrades, with CAGR / max drawdown / Sharpe for each.

Equity curves for the SMA stop-loss / time-stop family (every period × direction × ATR SL factor × time stop) are loaded on demand.

9. Time Stop Only — Equity Curves

SMA system only, with no ATR stop — the only risk control is the time stop, so you can judge it on its own as an alternative to the ATR exit. Each line exits a trade still underwater 5/10/15/20/30/40 days after entry; the baseline holds every trade until the SMA slope flips. Pick an SMA period and direction to overlay the equity curve of the plain SMA system against each time-stop-only variant, with CAGR / max drawdown / Sharpe for each.

Equity curves for the SMA time-stop-only family (every period × direction × time stop) are loaded on demand.

10. Volatility Filter Sweep

SMA system only, and the filter is judged on its own — no ATR stop, no target, no time stop. Volatility is the annualized standard deviation of daily returns: the standard deviation of the last 20 daily returns × √252. The volatility factor is swept from 20% to 60% (step 5) as a maximum: a new position is only opened on a day whose volatility sits at or below the factor, so the strategy stands aside in turbulent markets. An open trade is never closed by the filter, which keeps every row directly comparable to the unfiltered system — shown as the dashed “no filter” line on each chart and as the first table row. 450 MA strategies in total.

Loading results…

11. Volatility Filter + ATR Trailing Stop

SMA system only. The first combined risk layer on this page: the volatility filter from section 10 and the ATR trailing stop from section 7 running in the same strategy, with both dimensions swept together. A new position is opened only on a day whose annualized 20-day volatility is at or below the volatility factor, and once open the trade exits on the trailing stop (best price reached since entry ∓ f × ATR₂₀, recomputed daily) or on the opposite SMA-slope signal, whichever comes first. That is 19 trailing factors × 9 volatility factors × 25 SMA periods × 2 directions = 8,550 strategies. The dashed line and the last table column are section 7 on its own, so you can read directly whether adding the filter to the trailing stop helps.

Loading results…

11b. Volatility Filter + ATR Trailing Stop — Equity Curve

Section 11 as an equity curve: pick an SMA period, direction, trailing factor and volatility cap to see the combined strategy's month-end cumulative return, net of costs, against the trailing stop alone (section 7, same factor) and the plain SMA system. Trailing factors 1, 2, 3, 4, 5, 6, 7, 8, 9, 10; the section-11 matrix above keeps every half-step.

Loading equity curves…

12. Volatility Regime Switch

SMA system only, judged on its own — no ATR stop, no target, no time stop. Same volatility measure and same 20–60% factors as section 10, but the factor now acts as a regime switch rather than an entry filter: when volatility rises above it the open position is closed at that day's close, no new position is opened while volatility stays above it, and as soon as volatility falls back to the factor or below the position is re-opened on the first day the SMA slope still points the right way — no fresh signal flip required. Each chart draws section 12 against section 10 at the same factor, plus the unfiltered “no filter” baseline, which isolates what closing the trade adds on top of merely standing aside.

Loading results…

13. Reset / No Reset

The section-7 ATR trailing stop again, with the client's 2026-08-04 question layered on top: what should happen after a stop-out? No Reset treats the stop-out as final — that side stays shut until the SMA slope has flipped away and back, so if prices keep falling the saved profit stays saved. Reset waits for a new high instead: the side re-opens as soon as the market closes back above the highest high the stopped-out trade had reached, even though that is a worse price than the exit, because otherwise a reversal straight after the stop is missed entirely. Immediate is what sections 6, 7 and 11 have always done and is here as the honest third reading: the entry signal is a state rather than an event, so the very next bar re-enters while the slope still points the same way. Both directions are swept, so System A only ever resets long and System B resets whichever side was stopped out. 19 factors × 25 SMA periods × 2 directions × 3 rules = 2,850 strategies.

Loading reset-rule grid…

14. Trade Log — Entry & Exit Dates

The dated trade list behind the sweeps, so a volatility setting can be read as dates rather than as a summary metric: when each position was opened and closed, at what price, what closed it, and how long the system then sat flat before the next entry. Corn only for now, on the client's instruction. Four risk layers are covered — the ATR trailing stop under all three re-entry rules from section 13, the section-10 volatility filter, the section-12 regime switch, and the plain SMA system. The trailing-stop factors here are the whole numbers 1–10 rather than all nineteen half-steps; a trade log is two orders of magnitude bulkier per setting than a sweep row, and section 13 keeps the full resolution for the metrics.

Loading trade log for SMA 66…

Source: Norgate Data continuous futures, Panama (difference) back-adjusted, rolled one business day before first notice (daily OHLC), full available history. Generated 2026-11-26 19:43:37 UTC.