Strategy Analytics

Orange Juice — Moving Average & Risk Layers

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

Instrument
Orange Juice (OJ=F)
History
2001-09-17 → 2026-07-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.6%, p10 19.6%, p25 24.3%, p50 31.3%, p75 39.9%, p90 52.3%, p95 62.9%. 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 6,241 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.7%-69.8%-83.6%-0.18-0.25-0.0679-15.7%-98.6%-98.8%-0.44-0.60-0.16157
23-2.5%-47.2%-73.1%-0.10-0.13-0.0367-11.2%-94.7%-95.6%-0.32-0.43-0.12133
26-3.6%-59.3%-77.8%-0.13-0.18-0.0561-13.0%-96.8%-97.3%-0.37-0.50-0.13121
29-3.4%-57.1%-81.7%-0.12-0.17-0.0453-12.8%-96.6%-98.5%-0.36-0.49-0.13105
32-2.5%-46.1%-81.2%-0.09-0.13-0.0347-11.6%-95.3%-97.8%-0.33-0.44-0.1293
35-0.7%-16.8%-75.0%-0.03-0.04-0.0141-8.1%-87.6%-94.3%-0.23-0.31-0.0983
382.1%68.0%-55.5%0.080.110.0436-1.6%-33.3%-80.4%-0.05-0.07-0.0273
411.5%43.7%-61.2%0.060.080.0234-3.0%-52.9%-82.3%-0.09-0.12-0.0469
440.2%5.7%-61.2%0.010.010.0033-5.3%-73.8%-89.9%-0.15-0.21-0.0667
47-0.6%-14.5%-66.1%-0.02-0.03-0.0133-6.7%-82.1%-92.9%-0.20-0.27-0.0767
50-0.2%-5.4%-61.2%-0.01-0.01-0.0031-6.1%-79.0%-91.7%-0.18-0.25-0.0763
532.2%72.9%-63.7%0.080.120.0427-1.0%-22.4%-83.1%-0.03-0.04-0.0155
560.8%22.8%-63.7%0.030.040.0127-4.1%-64.3%-91.1%-0.12-0.17-0.0455
590.2%4.0%-65.8%0.010.010.0026-5.5%-75.3%-93.7%-0.16-0.22-0.0652
621.5%45.8%-67.0%0.060.080.0223-2.1%-41.5%-91.3%-0.06-0.09-0.0246
650.9%25.0%-67.0%0.030.050.0123-3.6%-59.5%-94.0%-0.10-0.15-0.0446
684.0%167.1%-58.8%0.160.220.07202.5%83.8%-82.0%0.080.110.0340
713.6%139.0%-58.8%0.140.200.06201.4%42.5%-84.3%0.040.060.0240
744.2%180.1%-61.1%0.160.230.07192.9%104.0%-81.8%0.090.130.0438
773.5%132.7%-64.2%0.130.190.05191.2%34.7%-87.8%0.040.050.0138
803.9%155.0%-65.0%0.150.210.06182.0%64.2%-85.1%0.060.090.0236
854.5%198.1%-66.1%0.170.250.07172.9%102.1%-86.9%0.090.130.0334
904.6%205.0%-62.9%0.180.250.07153.4%127.6%-78.2%0.100.150.0430
955.3%263.0%-63.4%0.210.300.08143.8%152.4%-81.0%0.120.170.0528
1006.1%337.8%-64.2%0.240.340.10135.9%316.9%-80.4%0.180.260.0726

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-6.6%-81.7%-87.7%-0.25-0.34-0.08286-18.8%-99.4%-99.5%-0.54-0.72-0.19572
33-4.5%-68.3%-77.5%-0.17-0.24-0.06271-15.2%-98.3%-98.4%-0.44-0.59-0.15542
36-0.8%-18.2%-67.4%-0.03-0.04-0.01248-7.4%-85.1%-92.1%-0.22-0.30-0.08496
39-1.5%-30.9%-69.2%-0.06-0.08-0.02224-9.2%-90.9%-91.8%-0.27-0.37-0.10448
420.8%20.7%-56.0%0.030.040.01211-5.3%-74.0%-82.9%-0.16-0.21-0.06422
45-0.9%-19.8%-68.0%-0.03-0.05-0.01216-8.0%-87.3%-92.4%-0.23-0.32-0.09432
48-2.0%-39.3%-65.2%-0.08-0.11-0.03208-10.2%-93.1%-93.7%-0.30-0.41-0.11416
51-1.7%-35.0%-74.5%-0.07-0.09-0.02191-9.8%-92.3%-93.9%-0.29-0.39-0.10382
54-2.1%-40.5%-68.3%-0.08-0.11-0.03186-10.0%-92.7%-94.3%-0.30-0.40-0.11372
57-1.7%-35.3%-76.4%-0.07-0.09-0.02185-10.7%-93.9%-98.7%-0.31-0.43-0.11370
601.9%60.4%-61.3%0.070.100.03183-3.1%-53.9%-85.4%-0.09-0.13-0.04366
632.2%69.9%-65.2%0.080.110.03160-2.4%-44.9%-89.5%-0.07-0.10-0.03320
661.2%33.4%-66.5%0.040.060.02173-4.2%-65.6%-90.9%-0.12-0.18-0.05345
690.9%26.0%-63.1%0.040.050.01168-4.9%-71.2%-88.1%-0.15-0.20-0.06336
701.9%57.5%-62.7%0.070.100.03156-3.0%-53.0%-77.0%-0.09-0.12-0.04312
753.7%146.5%-60.0%0.140.200.061651.5%43.7%-75.9%0.040.060.02330
804.4%190.4%-57.0%0.170.240.081422.4%81.0%-75.8%0.070.110.03284
854.5%199.5%-54.4%0.170.250.081373.4%130.9%-77.7%0.100.150.04274
903.7%148.2%-60.8%0.140.210.061352.0%63.2%-85.6%0.060.090.02270
954.3%183.8%-56.9%0.170.240.081332.5%82.5%-79.8%0.080.110.03266
1004.8%215.7%-60.1%0.180.260.081243.3%121.0%-80.3%0.100.140.04248
1054.8%216.9%-61.9%0.180.260.081353.6%138.2%-84.9%0.110.160.04270
1106.2%344.7%-68.3%0.240.350.091095.8%307.5%-89.6%0.180.260.07218
1152.8%100.4%-74.7%0.110.160.04115-1.0%-22.1%-93.8%-0.03-0.04-0.01230
1202.2%69.7%-65.9%0.080.120.03124-1.6%-33.1%-88.3%-0.05-0.07-0.02248

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:43:12 UTC.