CTA Trend Following

Orange Juice — Concentration, Ensemble & The Twelve Sections

Kaufman's robust-region method on Orange Juice (OJ=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 2001-09-17 → 2015-12-31 (3,581 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 85, SMA 95, SMA 105
Direction
System A — Long Only
Plateau
SMA 85–110 (6/25 tested)
Efficiency ratio (20d)
0.243
Read this before the numbers. Orange juice also has its own seasonality card elsewhere on the site; this one is the twelve-section trend study on the same futures series, not a duplicate of it.

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 85–110
Width
6 of 25 tested (24%)
Periods in profit
68% of 25
Best / median / worst
0.70 / 0.20 / -0.25

Why this direction

SystemPlateau meanCoveragePeriods in profit
System A — Long Only0.47324%68%
System B — Long & Short0.52312%48%

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.071
medium(SMA 55–80)0.239
long(SMA 81–120)0.430

Efficiency ratio over this window: 10d 0.358, 20d 0.243, 60d 0.125. 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 — 3 Entries, Equal Weight

Each selected period is funded with 33% 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 85long33.3%6.4%-47.8%0.270.390.136942.0%
SMA 95long33.3%7.0%-52.3%0.290.430.136633.3%
SMA 105long33.3%8.0%-48.6%0.340.500.166540.0%
Ensemble (equal weight)100.0%7.3%-47.5%0.310.470.15200
Mean pairwise correlation between the members' daily returns is 0.917. The ensemble's Sortino is +0.026 against the average of its members, and its drawdown +0.020 — 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.4693 periods from the plateau, equal weight.
Buy & hold0.180+0.289Holding the future outright over the same window.
Median cell0.116+0.354The 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 1000.795-0.325The 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 33% 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 Orange Juice is here — do not read it while choosing parameters.
Instrument
Orange Juice (OJ=F)
History
2001-09-17 → 2015-12-31
Trading Days / Year
252
Volatility Grid
20–60% (step 5)
Read this before the numbers. Orange juice also has its own seasonality card elsewhere on the site; this one is the twelve-section trend study on the same futures series, not a duplicate of it.
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 17.2%, p10 18.9%, p25 23.0%, p50 28.6%, p75 37.4%, p90 45.2%, p95 53.2%. 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 3,581 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-2.1%-26.4%-60.9%-0.09-0.13-0.0446-11.3%-81.9%-85.6%-0.37-0.51-0.1392
23-1.7%-21.2%-57.6%-0.07-0.10-0.0340-10.3%-78.6%-85.3%-0.33-0.46-0.1280
26-1.2%-15.2%-55.0%-0.05-0.07-0.0235-9.3%-75.1%-82.0%-0.30-0.42-0.1170
290.2%3.3%-55.3%0.010.010.0029-7.0%-64.3%-83.3%-0.23-0.32-0.0858
32-0.3%-3.9%-56.5%-0.01-0.02-0.0027-8.3%-70.8%-85.3%-0.27-0.38-0.1054
350.2%2.4%-49.0%0.010.010.0024-7.4%-66.7%-79.5%-0.24-0.34-0.0949
381.5%23.4%-51.1%0.060.090.0322-4.7%-49.5%-75.5%-0.15-0.22-0.0644
412.1%34.0%-46.8%0.090.130.0420-3.7%-41.7%-71.2%-0.12-0.17-0.0540
440.0%0.7%-55.9%0.000.000.0020-7.6%-67.5%-83.7%-0.25-0.35-0.0940
47-1.0%-13.1%-60.9%-0.04-0.06-0.0220-9.1%-74.4%-86.9%-0.31-0.42-0.1140
500.1%1.7%-56.4%0.010.010.0018-7.4%-66.2%-83.6%-0.25-0.34-0.0936
533.7%68.3%-52.8%0.160.230.07150.5%7.0%-69.9%0.020.020.0130
562.2%36.4%-57.5%0.090.140.0415-2.7%-32.6%-77.0%-0.09-0.13-0.0430
590.9%13.1%-62.7%0.040.060.0115-5.1%-52.4%-83.4%-0.17-0.24-0.0629
624.1%76.2%-53.5%0.170.250.08122.3%38.4%-71.8%0.080.110.0323
654.1%76.2%-53.5%0.170.250.08122.3%38.4%-71.8%0.080.110.0323
685.1%101.7%-53.5%0.210.310.09114.4%84.7%-70.1%0.150.220.0621
715.1%101.7%-53.5%0.210.310.09114.4%84.7%-70.1%0.150.220.0621
744.5%87.5%-56.2%0.190.270.08113.0%52.5%-74.7%0.100.140.0421
773.8%69.7%-58.1%0.150.220.07111.4%22.1%-79.4%0.050.070.0221
803.6%65.8%-59.0%0.150.220.06111.1%16.6%-80.3%0.040.050.0121
855.0%100.1%-60.2%0.210.310.08103.1%54.8%-81.3%0.110.150.0419
905.2%106.4%-62.9%0.220.320.0894.1%75.8%-78.2%0.140.200.0517
957.0%160.8%-63.4%0.300.440.1185.7%121.0%-78.9%0.200.290.0715
1006.4%141.0%-64.2%0.270.400.1084.6%90.6%-80.4%0.160.230.0615

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-2.2%-27.0%-57.1%-0.09-0.13-0.04152-11.5%-82.4%-87.1%-0.37-0.52-0.13304
33-4.2%-45.5%-65.1%-0.18-0.25-0.06141-15.0%-90.1%-91.8%-0.49-0.67-0.16282
361.4%21.9%-47.2%0.060.090.03124-4.5%-48.3%-70.9%-0.15-0.21-0.06247
39-0.7%-9.6%-52.4%-0.03-0.04-0.01116-8.9%-73.3%-82.9%-0.29-0.40-0.11231
42-0.8%-10.7%-44.3%-0.03-0.05-0.02111-9.2%-74.8%-80.5%-0.30-0.42-0.11221
45-1.3%-16.7%-54.9%-0.05-0.08-0.02120-9.3%-75.2%-83.2%-0.31-0.43-0.11239
48-2.5%-30.6%-55.7%-0.11-0.16-0.05110-12.1%-84.0%-85.8%-0.40-0.55-0.14219
51-0.2%-2.6%-43.5%-0.01-0.01-0.00108-8.5%-71.5%-78.2%-0.28-0.39-0.11215
54-0.0%-0.7%-48.6%-0.00-0.00-0.0098-7.2%-65.6%-73.7%-0.24-0.33-0.10195
572.8%47.7%-50.9%0.110.170.0598-2.6%-31.1%-83.9%-0.09-0.12-0.03195
604.9%97.1%-39.0%0.200.300.131041.7%27.9%-63.5%0.060.080.03207
634.9%97.7%-46.3%0.200.300.11882.5%42.0%-68.0%0.080.120.04175
663.3%59.2%-53.6%0.130.200.06103-0.1%-1.4%-75.4%-0.00-0.00-0.00205
692.4%39.8%-48.2%0.100.140.0596-2.1%-25.5%-69.5%-0.07-0.10-0.03191
701.8%28.7%-50.7%0.080.110.0494-2.8%-32.7%-73.0%-0.09-0.13-0.04187
754.4%85.0%-51.7%0.180.270.091062.5%42.7%-73.4%0.080.120.03211
807.0%162.4%-38.4%0.290.430.18817.6%183.1%-53.5%0.260.380.14161
856.4%142.7%-47.8%0.270.390.13696.6%146.8%-60.5%0.220.330.11137
906.3%139.2%-54.7%0.260.390.12746.7%149.8%-70.9%0.230.340.09147
957.0%160.2%-52.3%0.290.430.13667.0%160.2%-69.2%0.240.350.10131
10011.1%348.2%-38.7%0.460.700.296215.3%651.9%-46.4%0.530.790.33123
1058.0%197.2%-48.6%0.340.500.16659.0%238.5%-63.5%0.310.460.14129
1107.2%169.4%-58.8%0.310.450.12557.2%169.1%-77.6%0.250.360.09109
1155.3%106.9%-57.9%0.220.330.09562.6%43.2%-76.4%0.090.130.03111
1203.8%69.0%-50.0%0.160.240.08610.5%7.2%-71.3%0.020.020.01121

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