CTA Trend Following

Cotton — Concentration, Ensemble & The Twelve Sections

Kaufman's robust-region method on Cotton (CT=F), then the same twelve sections as the market card — all of it on data ending 2015-12-31.

As of 2015-12-31 — the last ten years are withheld. Every number on this tab is computed on bars up to and including 2015-12-31, and nothing after that date is read by any calculation here. The cut happens on the raw price frame before any indicator touches it, so no parameter on this tab was chosen with knowledge of what came next. This market's window is 2000-01-03 → 2015-12-31 (4,005 daily bars). The withheld data still exists and has not been touched — it is the out-of-sample test for whatever comes out of this work, and it is only worth having once the strategies are fixed.
Funded entries
SMA 75, SMA 85, SMA 95, SMA 110
Direction
System A — Long Only
Plateau
SMA 70–120 (11/25 tested)
Efficiency ratio (20d)
0.243

K1. Where The Results Concentrate

Kaufman's method: rather than take the best of the 50 base cells, or their median, find the contiguous stretch of SMA periods that all work. The plateau is the region holding at or above 70% of the smoothed peak. Its width is the honest measure of how much room for error this market gives you.

Sortino By SMA Period — Where The Results Concentrate

Bars are each tested period on its own. The line averages each period with the tested period either side (3-point neighbourhood), which is what the selection reads. The shaded band is the plateau; the outlined bars are the funded entries.

Plateau
SMA 70–120
Width
11 of 25 tested (44%)
Periods in profit
72% of 25
Best / median / worst
0.51 / 0.28 / -0.36

Why this direction

SystemPlateau meanCoveragePeriods in profit
System A — Long Only0.38844%72%
System B — Long & Short0.38620%64%

The direction is chosen on the plateau, not on the best cell. A direction that covers at least 20% of the grid wins over one that scores higher across three adjacent periods, because that narrow high score is exactly the fluke this method exists to avoid.

Speed preference vs efficiency ratio

Speed bandMean sortino
short(SMA 30–54)-0.048
medium(SMA 55–80)0.253
long(SMA 81–120)0.382

Efficiency ratio over this window: 10d 0.347, 20d 0.243, 60d 0.132. A high ER means price travels in straighter lines, which should favour faster SMAs; a low ER means the path is noisy and a slower SMA should do better. The index page tests that across all markets rather than asserting it here.

K2. The Funded Ensemble — 4 Entries, Equal Weight

Each selected period is funded with 25% of the market's capital and runs as its own base system. They are deliberately spread across the plateau: adjacent periods would be one system counted several times, which is the overfit this is meant to avoid.

EntryBandWeightCAGRMax DDSharpeSortinoCalmarTradesWin rate
SMA 75medium25.0%5.5%-53.2%0.250.380.1011639.7%
SMA 85long25.0%5.2%-58.5%0.240.360.098734.5%
SMA 95long25.0%6.5%-42.0%0.300.440.158341.0%
SMA 110long25.0%6.3%-49.2%0.290.430.137532.0%
Ensemble (equal weight)100.0%6.1%-45.3%0.290.440.13361
Mean pairwise correlation between the members' daily returns is 0.891. The ensemble's Sortino is +0.032 against the average of its members, and its drawdown +0.054 — that difference is the combination working (or not), rather than any member being good.

The ensemble against the three readings it replaces

On sortino, the tab's selection metric.

ReadingsortinoEnsemble minus thisWhat it is
Ensemble0.4364 periods from the plateau, equal weight.
Buy & hold0.063+0.373Holding the future outright over the same window.
Median cell0.244+0.192The middle of all 50 cells — what picking a parameter at random gets you. This is the reading the earlier cross-market tables used.
Best single cell — SMA 800.533-0.097The luckiest point on the surface. In sample it must win; the question is by how little, because whatever it wins by is what you are betting survives.

Ensemble Equity — Month-End Cumulative Return

Each funded entry gets 25% of the market's capital and runs independently. Everything stops on 2015-12-31.

Below: the same twelve sections as the market card, rebuilt in-sample. Identical code, identical grids — only the window differs. Use them to see what each risk layer would have done to the funded periods above. Section 13 (Reset / No Reset, added 2026-08-04) is deliberately not here: the client asked for it on the markets “koja imaju sve podatke”, and this tab is the one that does not. The full-history card for Cotton is here — do not read it while choosing parameters.
Instrument
Cotton (CT=F)
History
2000-01-03 → 2015-12-31
Trading Days / Year
252
Volatility Grid
20–60% (step 5)
How this market is calibrated. The volatility factor grid is 20–60%, 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 15.6%, p10 17.6%, p25 21.0%, p50 27.8%, p75 34.6%, p90 44.1%, p95 52.4%. 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 4,005 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.0%-47.6%-62.1%-0.19-0.26-0.0657-12.9%-88.8%-91.1%-0.44-0.60-0.14113
23-4.6%-52.6%-63.5%-0.21-0.30-0.0751-14.1%-91.1%-91.8%-0.49-0.67-0.15101
26-4.0%-47.8%-67.1%-0.19-0.26-0.0646-13.2%-89.4%-91.5%-0.46-0.63-0.1491
29-3.9%-46.7%-63.2%-0.18-0.26-0.0642-13.0%-89.0%-93.4%-0.45-0.62-0.1483
32-4.4%-51.5%-67.6%-0.21-0.30-0.0740-14.3%-91.4%-95.4%-0.49-0.68-0.1579
35-3.2%-40.3%-62.9%-0.15-0.22-0.0536-11.7%-86.2%-91.7%-0.40-0.56-0.1371
38-1.8%-25.4%-56.2%-0.09-0.12-0.0331-9.0%-77.8%-86.8%-0.31-0.44-0.1061
41-2.0%-27.8%-56.8%-0.09-0.13-0.0429-9.2%-78.5%-86.8%-0.32-0.44-0.1157
44-0.4%-6.4%-53.7%-0.02-0.03-0.0126-7.4%-70.3%-85.7%-0.26-0.36-0.0951
47-0.9%-13.3%-60.1%-0.04-0.06-0.0125-8.2%-74.2%-89.3%-0.29-0.40-0.0949
50-0.8%-11.7%-60.0%-0.04-0.05-0.0124-9.2%-78.4%-91.1%-0.33-0.46-0.1048
530.4%7.3%-48.4%0.020.030.0122-6.5%-65.4%-84.7%-0.23-0.34-0.0844
561.9%34.7%-44.7%0.090.130.0419-3.7%-45.0%-80.4%-0.13-0.19-0.0538
590.6%10.8%-49.9%0.030.050.0119-6.2%-63.6%-85.6%-0.22-0.32-0.0738
622.5%49.0%-49.7%0.120.180.0516-1.4%-19.7%-73.4%-0.05-0.07-0.0233
652.3%43.8%-51.2%0.110.160.0516-1.8%-25.4%-73.7%-0.07-0.10-0.0233
681.7%29.8%-53.7%0.080.120.0316-3.0%-38.1%-75.5%-0.11-0.16-0.0433
711.5%26.7%-53.7%0.070.110.0316-3.3%-41.4%-76.8%-0.12-0.17-0.0433
745.1%119.5%-49.8%0.230.350.10124.6%105.0%-52.5%0.170.250.0925
774.5%101.6%-53.0%0.200.300.09123.7%79.3%-52.5%0.140.200.0725
804.5%101.6%-53.0%0.200.300.09123.7%79.3%-52.5%0.140.200.0725
853.8%80.2%-54.2%0.170.250.07122.4%46.4%-59.0%0.090.130.0425
904.4%98.7%-47.1%0.200.290.09113.8%80.2%-63.3%0.140.200.0623
954.7%108.4%-47.1%0.210.310.10104.4%97.4%-59.8%0.160.230.0721
1004.2%92.7%-48.1%0.190.280.09103.2%64.2%-65.2%0.120.170.0521

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
303.0%60.1%-52.6%0.140.200.061521.3%23.5%-60.6%0.050.070.02303
33-0.9%-13.3%-58.5%-0.04-0.06-0.02140-6.7%-66.8%-79.1%-0.23-0.33-0.08279
36-4.0%-47.7%-61.3%-0.19-0.27-0.07159-12.1%-87.2%-89.0%-0.42-0.58-0.14317
39-5.3%-58.0%-64.3%-0.25-0.36-0.08144-14.7%-92.0%-93.0%-0.50-0.70-0.16287
42-4.3%-50.1%-67.0%-0.20-0.29-0.06139-13.2%-89.5%-93.4%-0.46-0.63-0.14278
45-1.5%-21.2%-60.5%-0.07-0.10-0.02140-7.7%-72.1%-88.4%-0.27-0.38-0.09279
48-2.6%-34.1%-66.2%-0.12-0.18-0.04157-9.7%-80.1%-91.5%-0.34-0.47-0.11313
514.0%85.6%-48.2%0.190.280.081323.1%62.0%-73.2%0.110.160.04263
544.9%113.3%-42.5%0.230.340.111284.8%110.6%-68.7%0.170.250.07256
571.8%32.7%-49.5%0.080.120.04135-2.1%-29.1%-79.0%-0.08-0.11-0.03269
601.8%33.4%-54.0%0.090.130.03129-2.2%-30.1%-78.2%-0.08-0.11-0.03257
63-0.4%-5.7%-64.2%-0.02-0.03-0.01129-5.7%-60.6%-84.9%-0.20-0.29-0.07257
663.5%72.8%-60.7%0.160.240.061121.9%34.9%-79.5%0.070.100.02223
695.5%135.8%-48.7%0.250.380.111085.8%145.1%-64.1%0.210.310.09215
704.1%89.0%-51.5%0.190.280.081183.1%62.0%-64.5%0.110.160.05235
755.5%135.2%-53.2%0.250.380.101166.5%171.1%-49.4%0.230.350.13231
807.4%209.0%-51.4%0.340.510.149910.0%356.8%-60.4%0.360.530.17198
855.2%124.4%-58.5%0.240.360.09875.7%139.9%-57.6%0.200.300.10174
907.1%198.4%-46.9%0.320.490.15918.4%257.7%-66.3%0.310.450.13182
956.5%171.7%-42.0%0.300.440.15838.2%247.3%-65.3%0.300.440.12166
1004.1%88.8%-49.5%0.180.270.08763.9%82.7%-71.1%0.140.210.05151
1055.2%124.7%-50.5%0.240.360.10794.5%101.5%-77.0%0.170.250.06158
1106.3%165.7%-49.2%0.290.430.13757.3%206.1%-73.6%0.270.400.10150
1155.4%129.9%-58.2%0.240.360.09596.1%155.7%-75.8%0.220.330.08118
1205.3%125.8%-51.0%0.230.350.10755.7%139.6%-64.4%0.210.310.09150

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…

Source: Yahoo Finance daily OHLC, truncated at 2015-12-31 — nothing after that date was read by any calculation on this page. Generated 2026-08-03 06:04:33 UTC.