CTA Trend Following

Gold — Concentration, Ensemble & The Twelve Sections

Kaufman's robust-region method on Gold (GC=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-08-30 → 2015-12-31 (3,845 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 80, SMA 90, SMA 105, SMA 115
Direction
System A — Long Only
Plateau
SMA 66–120 (13/25 tested)
Efficiency ratio (20d)
0.240

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 66–120
Width
13 of 25 tested (52%)
Periods in profit
100% of 25
Best / median / worst
0.73 / 0.50 / 0.11

Why this direction

SystemPlateau meanCoveragePeriods in profit
System A — Long Only0.62552%100%
System B — Long & Short0.27316%52%

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.303
medium(SMA 55–80)0.472
long(SMA 81–120)0.651

Efficiency ratio over this window: 10d 0.342, 20d 0.240, 60d 0.126. 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 80medium25.0%6.3%-26.1%0.450.620.2410042.0%
SMA 90long25.0%6.5%-35.4%0.450.620.188043.8%
SMA 105long25.0%6.3%-37.7%0.430.600.178739.1%
SMA 115long25.0%6.8%-31.5%0.470.650.228439.3%
Ensemble (equal weight)100.0%6.6%-31.9%0.470.660.21351
Mean pairwise correlation between the members' daily returns is 0.891. The ensemble's Sortino is +0.035 against the average of its members, and its drawdown +0.008 — 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.6584 periods from the plateau, equal weight.
Buy & hold0.706-0.048Holding the future outright over the same window.
Median cell0.255+0.403The 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 1100.732-0.074The 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 Gold is here — do not read it while choosing parameters.
Instrument
Gold (GC=F)
History
2000-08-30 → 2015-12-31
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 9.9%, p10 10.7%, p25 12.4%, p50 15.5%, p75 19.9%, p90 25.9%, p95 32.6%. Metrics annualize with 252 trading days per year. No intraday range on 23% of bars: the feed reports high == low that often, so ATR falls back to the close-to-close gap and the intraday stop and target sections (4, 6, 7, 11) behave as close-only — a stop can only be hit if the close passes it. That understates stop-outs on this card.

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 3,845 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
204.5%94.4%-32.0%0.320.450.1451-1.0%-14.7%-36.3%-0.06-0.08-0.03103
232.6%48.8%-40.1%0.190.270.0748-4.4%-49.8%-53.1%-0.24-0.34-0.0897
261.7%29.8%-37.4%0.120.170.0542-6.3%-62.9%-64.8%-0.35-0.48-0.1085
293.3%63.4%-33.8%0.240.330.1035-3.4%-40.7%-60.6%-0.19-0.26-0.0671
323.2%62.1%-39.9%0.240.330.0833-3.5%-41.5%-51.4%-0.19-0.27-0.0767
353.7%73.2%-39.4%0.270.380.0930-2.5%-32.3%-40.4%-0.14-0.20-0.0661
383.5%68.4%-42.8%0.250.360.0828-2.9%-36.3%-51.9%-0.16-0.22-0.0657
412.1%36.5%-45.6%0.150.210.0527-5.7%-58.9%-68.4%-0.31-0.42-0.0855
442.2%39.5%-45.8%0.160.220.0526-5.4%-57.2%-65.6%-0.30-0.41-0.0853
471.6%27.5%-46.5%0.110.160.0325-6.6%-64.8%-68.2%-0.36-0.49-0.1051
501.8%30.5%-46.5%0.120.170.0424-6.3%-63.2%-67.8%-0.35-0.47-0.0949
532.0%35.5%-46.9%0.140.190.0423-5.9%-60.3%-63.9%-0.32-0.44-0.0947
562.2%39.6%-49.4%0.150.210.0422-5.4%-57.4%-66.6%-0.30-0.41-0.0845
592.7%49.4%-43.5%0.190.260.0621-4.8%-53.0%-62.4%-0.27-0.37-0.0843
622.6%48.0%-44.2%0.180.250.0620-5.0%-54.1%-64.4%-0.28-0.38-0.0841
654.2%87.2%-44.0%0.290.400.1016-1.9%-25.0%-49.3%-0.10-0.14-0.0433
684.8%105.0%-44.5%0.330.450.1114-0.7%-9.5%-50.2%-0.04-0.05-0.0129
714.4%93.3%-45.2%0.300.420.1014-1.5%-20.6%-51.5%-0.08-0.11-0.0329
745.2%115.4%-42.3%0.350.490.12120.1%1.3%-46.7%0.000.010.0025
777.0%182.7%-32.4%0.490.680.2293.8%77.0%-46.7%0.210.290.0819
807.2%188.8%-33.6%0.500.690.2184.1%84.1%-50.8%0.220.310.0817
859.0%270.0%-36.4%0.590.830.2567.9%220.7%-37.8%0.440.620.2113
908.9%266.6%-37.0%0.590.830.2467.8%214.8%-39.0%0.430.610.2013
958.8%259.6%-37.9%0.580.820.2367.5%201.8%-40.7%0.410.580.1813
1008.3%237.6%-37.9%0.550.770.2266.6%163.6%-40.7%0.360.500.1613

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
302.4%42.9%-36.0%0.170.240.07150-4.7%-51.9%-63.2%-0.26-0.36-0.07300
332.6%47.1%-36.4%0.190.260.07144-4.5%-50.3%-54.1%-0.25-0.34-0.08289
363.0%56.4%-38.3%0.220.300.08139-3.8%-44.8%-58.6%-0.21-0.29-0.07279
394.0%80.6%-42.2%0.280.390.09138-1.9%-25.2%-49.1%-0.10-0.15-0.04277
423.0%57.4%-35.9%0.220.300.08129-4.0%-46.6%-60.0%-0.22-0.30-0.07259
452.6%48.6%-40.1%0.190.260.07120-4.6%-51.1%-59.4%-0.25-0.35-0.08241
484.2%88.4%-40.4%0.310.420.10112-1.6%-22.0%-48.7%-0.09-0.13-0.03225
514.1%85.3%-43.8%0.300.410.09114-1.8%-24.7%-52.5%-0.10-0.14-0.04229
541.5%25.4%-42.6%0.110.140.04121-6.7%-65.2%-67.4%-0.37-0.50-0.10243
571.1%18.0%-36.5%0.080.110.03119-7.4%-69.3%-70.8%-0.42-0.56-0.11239
602.8%53.3%-36.2%0.200.270.08124-4.1%-46.8%-50.1%-0.23-0.31-0.08249
635.1%114.4%-29.7%0.360.500.171150.2%3.5%-45.9%0.010.020.00231
664.4%92.2%-31.3%0.310.430.14105-1.2%-17.0%-45.3%-0.07-0.09-0.03211
696.4%157.8%-29.3%0.450.630.221162.7%51.1%-45.4%0.150.210.06233
706.5%162.4%-33.3%0.450.640.201153.0%57.4%-40.5%0.170.240.07231
756.0%141.6%-35.9%0.420.580.171032.0%35.5%-43.3%0.110.160.05207
806.3%155.6%-26.1%0.450.620.241002.5%46.1%-44.0%0.140.200.06200
857.4%198.0%-30.2%0.520.730.25974.7%102.3%-40.1%0.270.370.12195
906.5%161.3%-35.4%0.450.620.18802.9%53.6%-41.6%0.160.220.07161
956.6%166.6%-32.9%0.460.640.20723.2%61.6%-37.1%0.180.250.09145
1005.7%133.5%-43.5%0.390.550.13801.4%24.3%-50.5%0.080.110.03161
1056.3%153.3%-37.7%0.430.600.17872.3%41.6%-44.8%0.130.180.05175
1107.6%207.6%-36.4%0.530.730.21724.9%107.2%-40.2%0.280.380.12145
1156.8%174.2%-31.5%0.470.650.22843.1%59.4%-35.8%0.180.240.09169
1207.3%192.6%-29.2%0.500.690.25644.1%84.0%-36.9%0.230.320.11129

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 05:50:09 UTC.