Strategy Analytics

Cotton — Moving Average & Risk Layers

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

Instrument
Cotton (CT=F)
History
2000-01-03 → 2026-07-30
Trading Days / Year
252
Volatility Grid
15–55% (step 5)
How this market is calibrated. The volatility factor grid is 15–55%, 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 14.0%, p10 15.9%, p25 19.8%, p50 25.3%, p75 32.6%, p90 41.0%, p95 48.0%. Metrics annualize with 252 trading days per year. 1 bar(s) excluded (2026-07-31): A compounding percentage equity curve cannot represent a non-positive price, so these bars are excluded. Crude oil's 2020-04-20 settlement (-37.63) is the only such bar across the eight markets.

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,664 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.4%-30.9%-62.9%-0.07-0.10-0.0290-7.7%-88.0%-93.3%-0.28-0.39-0.08179
23-2.1%-42.4%-69.0%-0.10-0.15-0.0382-9.1%-92.0%-95.2%-0.33-0.47-0.10163
26-2.0%-41.7%-73.3%-0.10-0.14-0.0373-9.1%-92.0%-95.3%-0.34-0.47-0.10145
29-2.0%-41.2%-63.2%-0.10-0.14-0.0366-8.9%-91.6%-94.0%-0.33-0.46-0.10131
32-2.2%-44.5%-67.6%-0.11-0.16-0.0362-9.5%-92.8%-95.4%-0.35-0.49-0.10123
35-1.6%-35.5%-62.9%-0.08-0.11-0.0353-8.1%-89.3%-91.7%-0.30-0.41-0.09106
380.8%23.9%-59.0%0.040.060.0144-3.1%-57.1%-86.8%-0.12-0.16-0.0488
410.9%28.3%-59.5%0.050.060.0240-2.7%-51.7%-86.8%-0.10-0.14-0.0380
442.6%96.0%-53.7%0.130.180.0536-0.3%-7.6%-85.7%-0.01-0.02-0.0071
471.8%61.9%-60.1%0.090.130.0335-1.6%-35.5%-89.3%-0.06-0.09-0.0269
501.6%50.3%-60.0%0.080.110.0334-3.0%-54.9%-91.1%-0.11-0.16-0.0368
532.1%74.4%-48.4%0.110.150.0432-1.5%-33.7%-84.7%-0.06-0.08-0.0264
563.2%127.2%-46.6%0.150.220.07280.6%16.6%-80.4%0.020.030.0156
592.2%78.9%-49.9%0.110.160.0428-1.3%-28.8%-85.6%-0.05-0.07-0.0156
623.3%137.9%-52.7%0.160.240.06251.7%55.4%-73.4%0.060.090.0250
653.0%116.8%-55.0%0.150.210.05250.9%28.2%-73.7%0.040.050.0150
682.6%95.8%-57.3%0.130.180.04250.2%6.5%-75.5%0.010.010.0050
712.2%77.5%-58.4%0.110.160.0425-0.5%-12.7%-76.8%-0.02-0.03-0.0150
744.3%202.2%-55.7%0.210.300.08214.2%195.4%-56.3%0.160.230.0742
774.4%212.1%-56.0%0.210.300.08204.4%216.0%-52.5%0.170.240.0840
804.3%203.7%-56.0%0.210.300.08204.2%197.8%-52.5%0.160.230.0840
853.8%165.5%-57.1%0.180.260.07203.2%132.2%-59.0%0.120.180.0540
903.9%177.7%-54.3%0.190.270.07193.6%154.9%-63.3%0.140.200.0638
953.3%136.0%-58.5%0.160.230.06182.2%77.1%-62.5%0.080.120.0336
1002.9%112.8%-59.6%0.140.200.05181.3%40.6%-65.2%0.050.070.0236

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
300.3%8.3%-72.1%0.010.020.00282-4.1%-66.5%-88.2%-0.15-0.21-0.05563
330.2%6.5%-60.5%0.010.020.00254-4.5%-70.3%-79.1%-0.16-0.23-0.06507
36-2.5%-48.8%-67.0%-0.13-0.18-0.04277-9.4%-92.5%-93.4%-0.34-0.48-0.10553
39-3.5%-60.8%-69.6%-0.17-0.25-0.05239-11.0%-95.5%-96.1%-0.40-0.57-0.11477
42-2.9%-53.7%-67.0%-0.14-0.21-0.04249-10.3%-94.3%-94.8%-0.38-0.53-0.11497
45-0.5%-13.0%-60.5%-0.03-0.04-0.01243-5.5%-77.3%-88.4%-0.20-0.29-0.06485
48-0.8%-18.6%-66.2%-0.04-0.06-0.01256-5.8%-79.3%-91.5%-0.21-0.30-0.06512
512.5%94.5%-57.3%0.130.180.042230.9%25.8%-73.2%0.030.050.01446
543.9%177.5%-46.9%0.200.290.082093.4%143.0%-68.7%0.130.190.05418
570.7%19.5%-61.2%0.030.050.01216-3.2%-58.1%-79.0%-0.12-0.17-0.04432
602.3%80.6%-55.3%0.110.160.04206-0.7%-16.9%-78.2%-0.03-0.04-0.01412
630.0%0.7%-67.7%0.000.000.00193-4.2%-67.7%-84.9%-0.16-0.22-0.05385
662.9%111.8%-64.8%0.140.200.041681.4%45.1%-79.5%0.050.080.02335
694.3%206.5%-60.1%0.210.300.071644.2%200.5%-64.1%0.160.230.07327
703.4%142.4%-63.0%0.160.240.051812.5%93.7%-67.4%0.090.140.04361
753.9%177.0%-59.4%0.190.270.071723.9%172.4%-61.2%0.140.210.06343
804.8%245.0%-62.6%0.230.340.081645.5%308.9%-68.0%0.200.290.08327
853.6%156.2%-62.9%0.170.250.061513.1%126.9%-64.3%0.120.170.05301
904.8%249.5%-64.9%0.230.340.071564.9%254.0%-72.3%0.190.270.07311
953.9%175.4%-63.9%0.190.270.061483.5%151.2%-70.7%0.130.190.05295
1002.8%109.9%-58.4%0.140.200.051371.7%56.4%-71.1%0.060.090.02273
1054.0%185.0%-53.2%0.190.280.081372.8%106.9%-77.0%0.110.150.04273
1103.5%145.4%-67.7%0.160.240.051392.0%68.1%-78.3%0.080.110.03277
1152.9%113.9%-60.3%0.140.200.051201.3%42.2%-75.8%0.050.070.02239
1202.6%97.7%-66.3%0.120.180.041380.7%21.1%-76.5%0.030.040.01275

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:45:30 UTC.