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 1978-08-08 → 2015-12-31 (9,379 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, SMA 115
Direction
System B — Long & Short
Plateau
SMA 80–115 (8/25 tested)
Efficiency ratio (20d)
0.249
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 80–115
Width
8 of 25 tested (32%)
Periods in profit
64% of 25
Best / median / worst
0.31 / 0.07 / -0.36

Why this direction

SystemPlateau meanCoveragePeriods in profit
System A — Long Only0.19032%68%
System B — Long & Short ✓0.24832%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.201
medium(SMA 55–80)0.116
long(SMA 81–120)0.230

Efficiency ratio over this window: 10d 0.344, 20d 0.249, 60d 0.148. 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 85long25.0%5.0%-73.9%0.190.280.0738128.3%
SMA 95long25.0%3.3%-83.0%0.130.180.0433330.3%
SMA 105long25.0%4.0%-78.5%0.160.230.0530729.6%
SMA 115long25.0%4.2%-67.3%0.160.240.0627331.1%
Ensemble (equal weight)100.0%4.8%-69.1%0.210.300.071294—
Mean pairwise correlation between the members' daily returns is 0.738. The ensemble's Sortino is +0.069 against the average of its members, and its drawdown +0.066 — 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.299—4 periods from the plateau, equal weight.
Buy & hold-0.124+0.423Holding the future outright over the same window.
Median cell0.076+0.223The 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.308-0.009The 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 Orange Juice is here — do not read it while choosing parameters.
Instrument
Orange Juice (OJ=F)
History
1978-08-08 → 2015-12-31
Trading Days / Year
252
Volatility Grid
15–55% (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.
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 × $7.50) = $16.25, i.e. 0.1083 price points at $150 per point. Half is charged on entry and half on exit (a position still open at the end has paid only its entry half); on the compounding curve the cost is a share of the contract's real value at entry, so it weighs more on short, frequent trades. Profit Factor is gross profit ÷ gross loss over all trades (not the ATR target multiple sections 4–5 call “profit factor”); Avg Trade and Avg Loss are net USD per contract. Contract rolls are not charged as extra round turns.
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 11.3%, p10 13.7%, p25 18.3%, p50 24.7%, p75 32.5%, p90 41.8%, p95 48.8%. Metrics annualize with 252 trading days per year. A cell at −100% CAGR means a position lost more than its stake — typically a short in a contract that more than doubled before the exit — and the later numbers in that cell are not meaningful. History from 1978-08-08: this card now runs on Norgate's Panama-adjusted series, which for most markets starts in 1978–1983 — years or decades before the feeds this site used earlier (1998–2019, depending on the market). Trend results include the 1980s–90s trends and buy-and-hold includes decades of roll cost, so neither is comparable to figures from those earlier feeds.

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, trade count, profit factor and the average trade / average losing trade for every base variant of both systems over 9,379 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: TradesA: Profit FactorA: Avg TradeA: Avg LossB: CAGRB: Total ReturnB: Max DDB: SharpeB: SortinoB: CalmarB: TradesB: Profit FactorB: Avg TradeB: Avg Loss
20-3.8%-76.6%-93.8%-0.18-0.27-0.041190.85−$126−$1,201-8.6%-96.5%-99.3%-0.31-0.43-0.092380.85−$125−$1,192
23-3.2%-70.0%-93.4%-0.15-0.22-0.031070.92−$73−$1,272-7.3%-94.0%-99.3%-0.26-0.36-0.072140.92−$71−$1,234
26-2.8%-65.9%-93.4%-0.14-0.20-0.03960.95−$43−$1,356-6.5%-91.9%-98.9%-0.24-0.33-0.071920.95−$40−$1,312
29-4.0%-78.0%-93.9%-0.20-0.28-0.04890.87−$133−$1,431-8.7%-96.6%-99.2%-0.31-0.44-0.091780.86−$130−$1,392
32-2.1%-54.9%-90.1%-0.11-0.15-0.02771.01$11−$1,372-5.1%-85.6%-97.7%-0.19-0.26-0.051541.02$14−$1,378
35-1.2%-35.0%-85.9%-0.06-0.08-0.01671.08$85−$1,585-3.6%-74.2%-96.9%-0.13-0.19-0.041331.09$89−$1,575
38-0.6%-20.5%-84.8%-0.03-0.04-0.01631.13$130−$1,617-2.7%-63.9%-96.1%-0.10-0.14-0.031251.13$135−$1,649
41-0.7%-23.8%-86.2%-0.04-0.05-0.01561.11$118−$1,755-3.4%-72.6%-97.7%-0.13-0.18-0.031111.11$124−$1,835
44-0.7%-22.1%-84.8%-0.03-0.05-0.01551.11$120−$1,728-3.1%-68.5%-96.7%-0.11-0.16-0.031091.11$126−$1,821
47-0.6%-21.2%-83.2%-0.03-0.05-0.01521.12$133−$1,790-3.6%-74.0%-96.8%-0.13-0.19-0.041031.12$144−$1,888
50-0.1%-5.3%-80.4%-0.01-0.01-0.00491.19$206−$1,776-2.2%-56.6%-95.7%-0.08-0.12-0.02971.20$232−$1,921
530.8%33.3%-78.8%0.040.060.01441.34$385−$1,8920.1%3.0%-92.8%0.000.000.00871.39$432−$2,020
560.6%26.9%-79.3%0.030.050.01411.31$368−$1,978-0.5%-17.7%-93.5%-0.02-0.03-0.01811.35$419−$2,178
59-0.2%-7.0%-83.2%-0.01-0.01-0.00411.19$244−$1,930-2.4%-59.9%-96.3%-0.09-0.13-0.03811.23$294−$2,219
62-1.0%-30.9%-86.2%-0.05-0.07-0.01411.08$115−$1,868-4.1%-78.8%-97.7%-0.15-0.21-0.04811.12$162−$2,182
652.7%169.4%-73.4%0.130.200.04331.66$809−$1,9224.6%442.7%-85.2%0.180.250.05651.80$880−$1,993
682.3%131.7%-76.1%0.110.170.03311.69$820−$1,9524.0%329.6%-85.2%0.150.210.05611.83$895−$1,927
711.7%89.7%-79.1%0.090.130.02301.62$762−$1,9412.7%173.1%-88.2%0.100.150.03591.73$838−$1,997
741.6%79.6%-80.2%0.080.120.02291.64$791−$1,9882.5%147.5%-88.2%0.090.130.03571.75$870−$2,072
771.5%73.2%-76.3%0.070.110.02281.58$747−$2,0052.5%147.7%-80.8%0.090.130.03551.67$828−$2,123
801.0%42.9%-76.7%0.050.070.01281.46$619−$2,1121.6%77.3%-80.8%0.060.080.02551.55$699−$2,184
851.6%82.2%-76.9%0.080.120.02261.60$854−$2,1703.2%224.3%-80.8%0.120.170.04511.79$945−$2,114
901.2%55.6%-77.8%0.060.090.02261.49$742−$2,3172.5%150.7%-81.1%0.100.140.03511.66$830−$2,200
950.6%27.0%-80.5%0.030.050.01261.37$604−$2,4661.4%67.0%-83.3%0.050.070.02511.51$689−$2,294
1000.1%4.2%-82.3%0.010.010.00261.28$476−$2,6330.5%18.8%-85.2%0.020.030.01511.40$559−$2,317

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: TradesA: Profit FactorA: Avg TradeA: Avg LossB: CAGRB: Total ReturnB: Max DDB: SharpeB: SortinoB: CalmarB: TradesB: Profit FactorB: Avg TradeB: Avg Loss
30-2.9%-65.9%-93.0%-0.14-0.20-0.033540.95−$16−$474-7.1%-93.6%-99.1%-0.26-0.36-0.077090.95−$17−$484
33-1.4%-40.4%-87.4%-0.07-0.10-0.023581.01$3−$439-4.3%-80.2%-97.5%-0.15-0.22-0.047171.01$2−$454
36-2.6%-62.3%-91.7%-0.13-0.18-0.033380.98−$9−$492-6.6%-92.2%-98.9%-0.24-0.34-0.076760.97−$9−$499
39-1.7%-47.9%-89.6%-0.09-0.13-0.023161.03$9−$495-5.1%-85.7%-97.5%-0.19-0.26-0.056321.02$9−$507
42-1.2%-37.0%-87.4%-0.06-0.09-0.013051.05$19−$492-4.3%-80.7%-95.8%-0.16-0.22-0.056091.05$19−$505
45-1.9%-50.4%-87.3%-0.09-0.14-0.023131.01$3−$520-4.9%-84.8%-96.7%-0.18-0.25-0.056251.01$3−$529
48-0.6%-20.9%-83.2%-0.03-0.05-0.013011.09$28−$450-2.5%-60.6%-93.3%-0.09-0.13-0.036011.09$31−$493
510.8%33.8%-74.9%0.040.060.012801.21$60−$4370.2%6.5%-87.4%0.010.010.005591.21$66−$484
540.4%16.8%-84.1%0.020.030.002651.17$57−$474-0.7%-21.9%-92.5%-0.02-0.04-0.015291.18$62−$507
571.6%79.1%-80.3%0.080.120.022571.32$93−$4181.9%101.5%-87.8%0.070.100.025131.32$98−$447
601.2%58.4%-76.2%0.060.090.022631.23$69−$4341.1%48.0%-88.9%0.040.060.015251.23$72−$464
632.5%146.4%-83.9%0.120.180.032421.41$120−$4643.8%301.1%-93.1%0.140.210.044831.40$124−$482
661.1%50.9%-80.3%0.050.080.012231.24$85−$5231.6%80.8%-88.1%0.060.090.024451.26$89−$508
690.6%26.0%-72.6%0.030.050.012261.17$56−$4700.3%13.1%-78.1%0.010.020.004511.18$61−$501
70-0.2%-5.7%-79.9%-0.01-0.01-0.002431.12$40−$480-1.1%-34.0%-86.1%-0.04-0.06-0.014851.13$44−$478
752.2%122.1%-72.1%0.110.160.032291.35$100−$4373.8%293.7%-72.7%0.140.210.054571.35$105−$460
802.7%174.1%-65.0%0.140.210.042031.46$145−$4665.4%605.1%-65.6%0.210.300.084051.50$152−$458
852.8%179.5%-74.3%0.140.210.041911.48$163−$4665.0%504.0%-73.9%0.190.280.073811.53$170−$445
902.6%160.6%-71.4%0.130.200.041831.46$157−$5164.6%439.0%-69.6%0.180.260.073651.51$163−$475
952.0%109.7%-77.3%0.100.150.031671.37$149−$5693.3%231.6%-83.0%0.130.180.043331.42$158−$535
1003.0%195.5%-73.4%0.150.230.041581.61$209−$5415.5%621.7%-73.5%0.210.310.073151.68$219−$520
1052.3%134.7%-74.4%0.120.180.031541.53$198−$5244.0%331.2%-78.5%0.160.230.053071.61$208−$487
1102.9%188.2%-66.3%0.150.220.041621.56$188−$5265.0%516.9%-72.9%0.200.280.073231.61$197−$490
1152.2%123.4%-66.9%0.110.170.031371.48$182−$5364.2%355.7%-67.3%0.160.240.062731.54$194−$520
1200.9%37.4%-72.1%0.040.070.011291.32$141−$6261.2%58.7%-70.3%0.050.070.022571.36$154−$625

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. The swept multiple is labelled ATR Target below, so it is not confused with the Profit Factor column (gross profit ÷ gross loss).

Loading atr target 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. Click an ATR target under the charts to take it off them and let the axis rescale to the rest.

Loading atr target 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: Norgate Data continuous futures, Panama (difference) back-adjusted, rolled one business day before last trade or first notice; percentages over the real contract price (daily OHLC), truncated at 2015-12-31 — nothing after that date was read by any calculation on this page. Generated 2026-10-06 13:44:06 UTC.