Independent market intelligence
Research over noise · Risk before return
Forex strategy · GBP/USD long

GBP/USD H4: CCI20 recovery with an EMA50 filter

Does an EMA50 trend filter improve a GBP/USD buy after CCI20 recovers above −100? We compare the same recovery signal with and without the filter, keep risk rules fixed, and examine accepted signals, avoided losses and missed winners.

In simple terms

On the later historical sample, CCI alone completed 49 trades for +4.13 R after base costs. CCI with EMA50 completed 14 for −3.29 R. The baseline was positive, but its earlier sample lost and higher costs left little later gain. The filter did not show an advantage, and neither result establishes dependable future profitability.

Contents
01

What this CCI recovery test isolates

Both variants take long positions after the same confirmed CCI20 recovery above −100. The filtered variant additionally requires the signal Bid close above EMA50. Stops, targets, holding rules and costs follow one protocol, but each variant has its own one-position calendar. Filtered trades need not be a subset of baseline trades. We do not test shorts, divergences, EMA slope, zero-line crossings or a +100 breakout, and do not optimize parameters after seeing results.

02

Real M1 data and complete UTC H4 candles

We verify 16 HistData M1 archives and retain 2,829,703 real minute bars. Source time is fixed EST without daylight saving; add five hours for UTC. Signal H4 intervals start at 00, 04, 08, 12, 16 and 20 UTC and require exactly 240 consecutive M1 observations. Accepted intervals: 9,025; partial intervals: 3,434, used only for execution and illustrations. Exact duplicates are merged and 16 conflicting timestamps excluded. No candles or volume are invented. Strict completeness also affects which market conditions enter the signal sample.

03

CCI20 uses typical price and mean absolute deviation

Select typical price TP = (H + L + C)/3 on Bid H4 candles. For each 20-bar window, compute its current SMA and the mean absolute distance of all 20 typical prices from that same mean. This is not standard deviation or an average of deviations from each bar's earlier rolling mean. CCI divides the current typical-price deviation by 0.015 times that mean absolute deviation. If it is zero, define CCI as zero. CCI can move outside −100 and +100; these are reference thresholds, not a fixed indicator range. The HLC3 source is explicit; platform defaults can differ.

TP = (H + L + C) / 3; M = SMA20(TP)
MAD20 = Σ|TP_i − M| / 20; i = t−19,...,t
CCI20 = (TP_current − M) / (0.015 × MAD20)

04

EMA50, ATR14 and the common warm-up

EMA50 uses Bid closes, seeded by the first 50 accepted H4 closes, then updated with multiplier 2/51. ATR14 starts with H−L as its first true range, averages the first 14 true ranges, then uses Wilder smoothing. Both variants wait for at least 200 accepted H4 bars and positive ATR. All indicators continue across the accepted sequence through closures and excluded partial intervals; no missing bars are inserted. The recovery crossing itself requires adjacent H4 intervals.

EMA_t = EMA_(t−1) + 2/51 × (C_t − EMA_(t−1))
ATR_t = (13 × ATR_(t−1) + TR_t) / 14

05

Exact recovery and trend-filter conditions

After an accepted H4 has closed, require previous CCI20 ≤ −100 and current CCI20 > −100. The previous accepted H4 must start exactly four hours earlier. The filtered variant additionally requires current Bid close strictly above EMA50; equality is rejected. No rising-EMA condition is added. Exact integer ratios decide whether CCI equals or crosses −100, avoiding a rounded threshold tie. Display rounding does not determine a signal.

CCI20_(t−1) ≤ −100 < CCI20_t; C_t > EMA50_t

06

Next-open entry, fixed exits and one R

Enter only at the exact next H4 boundary if its real M1 opening exists; otherwise cancel. The modeled buy fill is Bid open plus the full assumed spread and adverse entry slippage. Fix the stop two signal ATR below that fill and the target three ATR above it. One R is the initial two-ATR price distance in USD per GBP; the target is 1.5 R before subsequent costs. Levels do not trail. Later CCI or EMA readings do not close the position.

Stop = E − 2 × ATR14_signal; Target = E + 3 × ATR14_signal
1 R = 2 × ATR14_signal

07

Independent calendars and the 120-hour deadline

Each variant holds at most one position. A fresh entry must be strictly later than the preceding exit minute; signals while occupied are ignored. The deadline is 120 elapsed hours, including weekends. Exit at the first observed opening at or after the deadline, so a closure can extend actual holding. Each sample starts flat with prior indicator history. An unresolved position is closed at the final real pre-boundary M1 close, without using post-boundary prices.

08

M1 execution, gaps and event priority

At each observed opening, check a gap through the stop first, then an already reached target capped at its level, then a due time exit. Otherwise use the minute high and low; if both levels are touched, stop comes first. A target-first calendar is also replayed. Equality counts as a touch and standing orders are active in the entry minute. After missing observations, resume at the next real quote without reconstructing a hidden path. Gap-through stop losses are uncapped and may exceed one R; this convention cannot certify actual broker fills.

09

Spread, slippage, commissions and rollover

Base assumptions are a full spread of 1.5 pips, adverse slippage of 0.1 pip per side, commission of 0.25 pip per side, and a debit of 0.5 pip per rollover unit. One pip is 0.0001. Rollover is at 17:00 New York on weekdays, with daylight saving and three units on Wednesday; entry < event ≤ exit. These are modeled costs, not observed Ask quotes or actual swaps. Stress uses 3.0, 0.3, 0.5 and 1.0 pips respectively and reruns fills, entry-based levels and both calendars.

Net R = (X − exit_slippage − E − commissions − carry) / (2 × ATR14_signal)

10

Earlier and later historical results

The earlier sample covers 2021–2024: baseline 133 trades and −18.35 R, filtered 28 and −3.67 R. January 2025–September 2026: baseline 49 trades and +4.13 R, filtered 14 and −3.29 R. The protocol was frozen before this strategy's calculations, after those historical dates had already passed. This is a retrospective split, not a prospective out-of-sample or live forward test. The positive later baseline must be read alongside the earlier loss.

Results at base costs
CaseCompleted tradesTotal net RAverage net RMax. closed-trade drawdownPositive net results
Earlier sample · CCI alone133−18.35−0.13825.01 R37.6%
Earlier sample · CCI + EMA5028−3.67−0.1317.77 R42.9%
Later sample · CCI alone49+4.13+0.0844.96 R49.0%
Later sample · CCI + EMA5014−3.29−0.2353.75 R35.7%

Each variant has its own one-position calendar. Results are net R, not account-return percentages.

11

A positive baseline with limited robustness

On the later sample, mean net results were +0.084 R without EMA50 and −0.235 R with it. Maximum closed-trade drawdown was 4.96 R and 3.75 R. Under higher costs, totals were +0.24 R and −3.85 R. Only 14 filtered trades completed, giving little evidence for a stable advantage. Curves sum normalized completed-trade results, not account-return percentages. They omit open-position equity swings, leverage, margin, lot rounding and compounding.

Cumulative later-sample net R

● CCI alone● CCI + EMA50
Cumulative later-sample net RR−505102025-012025-112026-09
Curves change at recorded M1 exit intervals and show only completed-trade results after modeled costs.
12

Which candidates did EMA50 reject?

Ignoring position occupancy, the later sample contains 17 executable passing candidates: 11 nonpositive results (64.7%). Rejected candidates: 48, including 25 nonpositive results (52.1%) and 23 positive results. Nonpositive means net R ≤ 0 under these costs and exits, not an objective definition of a false reversal. These isolated trades can overlap and are not a portfolio. Across both base calendars and samples, 0 M1 intervals touched both levels. Higher-cost totals were +0.24 R and −3.85 R; the target-first sensitivity is shown separately.

Isolated later-sample candidates
CaseCompleted tradesNonpositive outcomesPositive outcomesNonpositive share
Close > EMA501711664.7%
Close ≤ EMA5048252352.1%

Each candidate is evaluated separately, ignoring occupancy. Outcomes may overlap and are not a tradable portfolio.

Later-sample sensitivity
CaseCCI aloneCCI + EMA50
Base costs+4.13−3.29
Higher costs+0.24−3.85
Target first+4.13−3.29

Higher costs rerun fills, fixed levels and both calendars. Target-first replay changes only the ambiguous-minute execution convention.

13

Example 1: the first filtered trade meets a weekend gap

The first completed filtered later-sample trade entered at 2025-01-31 08:00:00 UTC with modeled fill 1.24364 USD/GBP. Signal CCI20 was −76.80; Bid close 1.24349 exceeded EMA50 at 1.23931. The stop was 1.23577, but the next observed opening after the weekend gap was 1.22855 USD/GBP at 2025-02-02 22:00:00 UTC. The model therefore exits below the stop and records −1.931 R after costs. Calendar order selects this example regardless of sign. It illustrates gap risk rather than a guaranteed execution price.

Example 1 · First filtered trade

CCI20
−76.80
Stop
1.23577 USD/GBP
Target
1.25545 USD/GBP
Net result
−1.931 R

Real Bid H4, EMA50 and CCI20

S SignalE EntryX Exit━ EMA50━ CCI20
Real Bid H4, EMA50 and CCI20GBP/USD · Bid · H4 · UTC1.220001.240001.260002025-01-30 04:00 UTC · Open 1.24513 · High 1.24539 · Low 1.24315 · Close 1.24517 · EMA50 1.23826 · ATR14 0.00389 · CCI20 −12.51 · Mean absolute deviation 0.001610 · Observed M1 bars in this H4 2402025-01-30 08:00 UTC · Open 1.24518 · High 1.24623 · Low 1.24247 · Close 1.24271 · EMA50 1.23844 · ATR14 0.00388 · CCI20 −51.95 · Mean absolute deviation 0.001519 · Observed M1 bars in this H4 2402025-01-30 12:00 UTC · Open 1.24272 · High 1.24765 · Low 1.24243 · Close 1.24667 · EMA50 1.23876 · ATR14 0.00397 · CCI20 26.33 · Mean absolute deviation 0.001516 · Observed M1 bars in this H4 2402025-01-30 16:00 UTC · Open 1.24667 · High 1.24713 · Low 1.24350 · Close 1.24588 · EMA50 1.23904 · ATR14 0.00395 · CCI20 34.41 · Mean absolute deviation 0.001321 · Observed M1 bars in this H4 2402025-01-30 20:00 UTC · Open 1.24588 · High 1.24640 · Low 1.24074 · Close 1.24216 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 2362025-01-31 00:00 UTC · Open 1.24218 · High 1.24307 · Low 1.24065 · Close 1.24168 · EMA50 1.23914 · ATR14 0.00404 · CCI20 −134.82 · Mean absolute deviation 0.001406 · Observed M1 bars in this H4 2402025-01-31 04:00 UTC · Open 1.24168 · High 1.24393 · Low 1.24136 · Close 1.24349 · EMA50 1.23931 · ATR14 0.00394 · CCI20 −76.80 · Mean absolute deviation 0.001446 · Observed M1 bars in this H4 2402025-01-31 08:00 UTC · Open 1.24348 · High 1.24380 · Low 1.24005 · Close 1.24088 · EMA50 1.23937 · ATR14 0.00392 · CCI20 −130.59 · Mean absolute deviation 0.001379 · Observed M1 bars in this H4 2402025-01-31 12:00 UTC · Open 1.24088 · High 1.24312 · Low 1.23873 · Close 1.24250 · EMA50 1.23950 · ATR14 0.00396 · CCI20 −134.48 · Mean absolute deviation 0.001219 · Observed M1 bars in this H4 2402025-01-31 16:00 UTC · Open 1.24249 · High 1.24715 · Low 1.23856 · Close 1.24002 · EMA50 1.23952 · ATR14 0.00429 · CCI20 −103.85 · Mean absolute deviation 0.001081 · Observed M1 bars in this H4 2402025-01-31 20:00 UTC · Open 1.24001 · High 1.24107 · Low 1.23860 · Close 1.23919 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 1202025-02-02 20:00 UTC · Open 1.22855 · High 1.23232 · Low 1.22825 · Close 1.22895 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 1202025-02-03 00:00 UTC · Open 1.22896 · High 1.23123 · Low 1.22491 · Close 1.22623 · EMA50 1.23900 · ATR14 0.00506 · CCI20 −514.70 · Mean absolute deviation 0.001978 · Observed M1 bars in this H4 2402025-02-03 04:00 UTC · Open 1.22623 · High 1.22998 · Low 1.22488 · Close 1.22837 · EMA50 1.23858 · ATR14 0.00506 · CCI20 −319.42 · Mean absolute deviation 0.002959 · Observed M1 bars in this H4 2402025-02-03 08:00 UTC · Open 1.22837 · High 1.23226 · Low 1.22725 · Close 1.23190 · EMA50 1.23832 · ATR14 0.00506 · CCI20 −188.77 · Mean absolute deviation 0.003814 · Observed M1 bars in this H4 240SEX01-30 04:0001-31 08:0002-03 08:00CCI20−600−400−200−1000100
Open
1.24168
High
1.24393
Low
1.24136
Close
1.24349
EMA50
1.23931
ATR14
0.00394
CCI20
−76.80
Mean absolute deviation
0.001446
Observed M1 bars in this H4
240
S: signal; E: modeled buy fill; X: exit reference in its H4 interval. Blue: EMA50. Lower pane: CCI20 with reference levels −100, 0 and +100; values outside ±100 remain visible. Dashed price lines: fixed stop and target. Partial intervals have fewer than 240 M1 and no indicator readings; missing intervals are compressed. See M1 for the precise exit minute.

Exit on real Bid M1 candles

X Exit
Exit on real Bid M1 candlesGBP/USD · Bid · M1 · UTC1.225001.230001.235001.240002025-01-31 21:56 UTC · Open 1.23882 · High 1.23902 · Low 1.23860 · Close 1.238992025-01-31 21:57 UTC · Open 1.23901 · High 1.23908 · Low 1.23896 · Close 1.239062025-01-31 21:58 UTC · Open 1.23920 · High 1.23941 · Low 1.23896 · Close 1.239062025-01-31 21:59 UTC · Open 1.23911 · High 1.23919 · Low 1.23905 · Close 1.239192025-02-02 22:00 UTC · Open 1.22855 · High 1.22909 · Low 1.22845 · Close 1.228892025-02-02 22:01 UTC · Open 1.22892 · High 1.23093 · Low 1.22889 · Close 1.230892025-02-02 22:02 UTC · Open 1.23007 · High 1.23027 · Low 1.23007 · Close 1.230272025-02-02 22:03 UTC · Open 1.23067 · High 1.23067 · Low 1.23067 · Close 1.230672025-02-02 22:04 UTC · Open 1.23059 · High 1.23060 · Low 1.23059 · Close 1.23060X01-31 21:5602-02 22:0002-02 22:04
Open
1.22855
High
1.22909
Low
1.22845
Close
1.22889
X marks the M1 exit interval and reference before exit slippage. Dashed lines show fixed levels within the displayed price range. Missing minutes are compressed and gaps marked. Bid candles do not include modeled spread.

First completed later-sample trade in the filtered calendar, selected regardless of sign. Its stop-gap outcome is shown on real observed candles.

14

Examples 2 and 3: a small avoided loss and a missed winner

The first rejected nonpositive candidate entered hypothetically at 2025-01-13 20:00:00 UTC, at 1.21684 USD/GBP, and returned −0.019 R. Its time exit was delayed by a market closure; a small positive price change became a net loss after costs. The first rejected positive candidate entered at 2025-01-03 16:00:00 UTC, at 1.24059 USD/GBP, and returned +1.485 R. These are isolated hypothetical candidates rejected by EMA50, selected chronologically within each declared outcome class, not actual filtered trades.

Example 2 · Rejected nonpositive candidate

CCI20
−99.65
Stop
1.20666 USD/GBP
Target
1.23211 USD/GBP
Net result
−0.019 R

Real Bid H4, EMA50 and CCI20

S SignalE EntryX Exit━ EMA50━ CCI20
Real Bid H4, EMA50 and CCI20GBP/USD · Bid · H4 · UTC1.200001.220001.240001.260002025-01-12 20:00 UTC · Open 1.21974 · High 1.22100 · Low 1.21974 · Close 1.22034 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 1132025-01-13 00:00 UTC · Open 1.22034 · High 1.22068 · Low 1.21373 · Close 1.21422 · EMA50 1.24151 · ATR14 0.00505 · CCI20 −139.79 · Mean absolute deviation 0.009352 · Observed M1 bars in this H4 2402025-01-13 04:00 UTC · Open 1.21431 · High 1.21598 · Low 1.21227 · Close 1.21379 · EMA50 1.24042 · ATR14 0.00496 · CCI20 −145.40 · Mean absolute deviation 0.009063 · Observed M1 bars in this H4 2402025-01-13 08:00 UTC · Open 1.21379 · High 1.21711 · Low 1.21012 · Close 1.21099 · EMA50 1.23927 · ATR14 0.00510 · CCI20 −146.11 · Mean absolute deviation 0.008639 · Observed M1 bars in this H4 2402025-01-13 12:00 UTC · Open 1.21097 · High 1.21596 · Low 1.20992 · Close 1.21510 · EMA50 1.23832 · ATR14 0.00517 · CCI20 −132.96 · Mean absolute deviation 0.008101 · Observed M1 bars in this H4 2402025-01-13 16:00 UTC · Open 1.21512 · High 1.21830 · Low 1.21423 · Close 1.21667 · EMA50 1.23747 · ATR14 0.00509 · CCI20 −99.65 · Mean absolute deviation 0.007874 · Observed M1 bars in this H4 2402025-01-13 20:00 UTC · Open 1.21668 · High 1.22498 · Low 1.21651 · Close 1.22315 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 2352025-01-14 00:00 UTC · Open 1.22315 · High 1.22315 · Low 1.21915 · Close 1.22087 · EMA50 1.23682 · ATR14 0.00519 · CCI20 −51.54 · Mean absolute deviation 0.007456 · Observed M1 bars in this H4 2402025-01-14 04:00 UTC · Open 1.22088 · High 1.22286 · Low 1.21969 · Close 1.22100 · EMA50 1.23620 · ATR14 0.00505 · CCI20 −42.15 · Mean absolute deviation 0.006836 · Observed M1 bars in this H4 2402025-01-14 08:00 UTC · Open 1.22097 · High 1.22457 · Low 1.21699 · Close 1.21764 · EMA50 1.23547 · ATR14 0.00523 · CCI20 −49.57 · Mean absolute deviation 0.006472 · Observed M1 bars in this H4 2402025-01-14 12:00 UTC · Open 1.21762 · High 1.22021 · Low 1.21381 · Close 1.21999 · EMA50 1.23487 · ATR14 0.00531 · CCI20 −60.49 · Mean absolute deviation 0.006299 · Observed M1 bars in this H4 2402025-01-14 16:00 UTC · Open 1.21998 · High 1.22124 · Low 1.21678 · Close 1.21991 · EMA50 1.23428 · ATR14 0.00525 · CCI20 −41.00 · Mean absolute deviation 0.005845 · Observed M1 bars in this H4 2402025-01-14 20:00 UTC · Open 1.21992 · High 1.22162 · Low 1.21943 · Close 1.22104 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 2372025-01-15 00:00 UTC · Open 1.22103 · High 1.22103 · Low 1.21919 · Close 1.22031 · EMA50 1.23373 · ATR14 0.00501 · CCI20 −25.32 · Mean absolute deviation 0.005225 · Observed M1 bars in this H4 2402025-01-15 04:00 UTC · Open 1.22030 · High 1.22407 · Low 1.21592 · Close 1.22336 · EMA50 1.23333 · ATR14 0.00523 · CCI20 −9.29 · Mean absolute deviation 0.004851 · Observed M1 bars in this H4 2402025-01-15 08:00 UTC · Open 1.22342 · High 1.22398 · Low 1.22001 · Close 1.22243 · EMA50 1.23290 · ATR14 0.00514 · CCI20 9.26 · Mean absolute deviation 0.004491 · Observed M1 bars in this H4 2402025-01-15 12:00 UTC · Open 1.22239 · High 1.23059 · Low 1.22010 · Close 1.22575 · EMA50 1.23262 · ATR14 0.00552 · CCI20 66.28 · Mean absolute deviation 0.004207 · Observed M1 bars in this H4 2402025-01-15 16:00 UTC · Open 1.22576 · High 1.22587 · Low 1.21929 · Close 1.22302 · EMA50 1.23224 · ATR14 0.00560 · CCI20 31.66 · Mean absolute deviation 0.003804 · Observed M1 bars in this H4 2402025-01-15 20:00 UTC · Open 1.22302 · High 1.22446 · Low 1.22288 · Close 1.22419 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 2372025-01-16 00:00 UTC · Open 1.22418 · High 1.22478 · Low 1.22191 · Close 1.22259 · EMA50 1.23186 · ATR14 0.00540 · CCI20 48.19 · Mean absolute deviation 0.003489 · Observed M1 bars in this H4 2402025-01-16 04:00 UTC · Open 1.22257 · High 1.22308 · Low 1.21995 · Close 1.22185 · EMA50 1.23147 · ATR14 0.00524 · CCI20 29.59 · Mean absolute deviation 0.003172 · Observed M1 bars in this H4 2402025-01-16 08:00 UTC · Open 1.22185 · High 1.22229 · Low 1.21893 · Close 1.22094 · EMA50 1.23106 · ATR14 0.00511 · CCI20 22.68 · Mean absolute deviation 0.002806 · Observed M1 bars in this H4 2402025-01-16 12:00 UTC · Open 1.22095 · High 1.22381 · Low 1.21743 · Close 1.22340 · EMA50 1.23076 · ATR14 0.00520 · CCI20 48.07 · Mean absolute deviation 0.002691 · Observed M1 bars in this H4 2402025-01-16 16:00 UTC · Open 1.22342 · High 1.22599 · Low 1.22165 · Close 1.22349 · EMA50 1.23047 · ATR14 0.00514 · CCI20 95.42 · Mean absolute deviation 0.002779 · Observed M1 bars in this H4 2402025-01-16 20:00 UTC · Open 1.22344 · High 1.22415 · Low 1.22270 · Close 1.22337 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 2382025-01-17 00:00 UTC · Open 1.22337 · High 1.22440 · Low 1.22288 · Close 1.22326 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 2392025-01-17 04:00 UTC · Open 1.22327 · High 1.22340 · Low 1.21604 · Close 1.21739 · EMA50 1.22996 · ATR14 0.00530 · CCI20 −23.60 · Mean absolute deviation 0.002615 · Observed M1 bars in this H4 2402025-01-17 08:00 UTC · Open 1.21742 · High 1.22164 · Low 1.21742 · Close 1.21958 · EMA50 1.22955 · ATR14 0.00523 · CCI20 −17.49 · Mean absolute deviation 0.002283 · Observed M1 bars in this H4 2402025-01-17 12:00 UTC · Open 1.21958 · High 1.22276 · Low 1.21607 · Close 1.21976 · EMA50 1.22917 · ATR14 0.00533 · CCI20 −33.40 · Mean absolute deviation 0.001906 · Observed M1 bars in this H4 2402025-01-17 16:00 UTC · Open 1.21975 · High 1.21984 · Low 1.21644 · Close 1.21678 · EMA50 1.22868 · ATR14 0.00519 · CCI20 −118.70 · Mean absolute deviation 0.001685 · Observed M1 bars in this H4 2402025-01-17 20:00 UTC · Open 1.21678 · High 1.21745 · Low 1.21583 · Close 1.21583 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 1202025-01-19 20:00 UTC · Open 1.21706 · High 1.21761 · Low 1.21603 · Close 1.21747 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 1172025-01-20 00:00 UTC · Open 1.21748 · High 1.22052 · Low 1.21745 · Close 1.22045 · EMA50 1.22836 · ATR14 0.00509 · CCI20 −59.64 · Mean absolute deviation 0.001528 · Observed M1 bars in this H4 2402025-01-20 04:00 UTC · Open 1.22044 · High 1.22215 · Low 1.22002 · Close 1.22153 · EMA50 1.22809 · ATR14 0.00488 · CCI20 16.67 · Mean absolute deviation 0.001537 · Observed M1 bars in this H4 2402025-01-20 08:00 UTC · Open 1.22151 · High 1.22192 · Low 1.21651 · Close 1.22058 · EMA50 1.22780 · ATR14 0.00492 · CCI20 −46.81 · Mean absolute deviation 0.001571 · Observed M1 bars in this H4 240SEX01-12 20:0001-15 16:0001-20 08:00CCI20−200−1000100
Open
1.21512
High
1.21830
Low
1.21423
Close
1.21667
EMA50
1.23747
ATR14
0.00509
CCI20
−99.65
Mean absolute deviation
0.007874
Observed M1 bars in this H4
240
S: signal; E: modeled buy fill; X: exit reference in its H4 interval. Blue: EMA50. Lower pane: CCI20 with reference levels −100, 0 and +100; values outside ±100 remain visible. Dashed price lines: fixed stop and target. Partial intervals have fewer than 240 M1 and no indicator readings; missing intervals are compressed. See M1 for the precise exit minute.

Exit on real Bid M1 candles

X Exit
Exit on real Bid M1 candlesGBP/USD · Bid · M1 · UTC1.215501.216001.216501.217001.217502025-01-17 21:56 UTC · Open 1.21673 · High 1.21692 · Low 1.21655 · Close 1.216912025-01-17 21:57 UTC · Open 1.21685 · High 1.21686 · Low 1.21642 · Close 1.216422025-01-17 21:58 UTC · Open 1.21643 · High 1.21666 · Low 1.21636 · Close 1.216662025-01-17 21:59 UTC · Open 1.21647 · High 1.21666 · Low 1.21583 · Close 1.215832025-01-19 22:02 UTC · Open 1.21706 · High 1.21707 · Low 1.21706 · Close 1.217072025-01-19 22:03 UTC · Open 1.21706 · High 1.21706 · Low 1.21706 · Close 1.217062025-01-19 22:04 UTC · Open 1.21686 · High 1.21714 · Low 1.21686 · Close 1.217142025-01-19 22:05 UTC · Open 1.21705 · High 1.21720 · Low 1.21689 · Close 1.217192025-01-19 22:06 UTC · Open 1.21719 · High 1.21733 · Low 1.21719 · Close 1.21732X01-17 21:5601-19 22:0201-19 22:06
Open
1.21706
High
1.21707
Low
1.21706
Close
1.21707
X marks the M1 exit interval and reference before exit slippage. Dashed lines show fixed levels within the displayed price range. Missing minutes are compressed and gaps marked. Bid candles do not include modeled spread.

First completed later-sample candidate rejected by EMA50 with net R ≤ 0, in chronological order.

Example 3 · Rejected positive candidate

CCI20
−93.78
Stop
1.23330 USD/GBP
Target
1.25152 USD/GBP
Net result
+1.485 R

Real Bid H4, EMA50 and CCI20

S SignalE EntryX Exit━ EMA50━ CCI20
Real Bid H4, EMA50 and CCI20GBP/USD · Bid · H4 · UTC1.230001.240001.250001.260002025-01-02 12:00 UTC · Open 1.24533 · High 1.24568 · Low 1.23699 · Close 1.23746 · EMA50 1.25597 · ATR14 0.00417 · CCI20 −343.69 · Mean absolute deviation 0.002537 · Observed M1 bars in this H4 2402025-01-02 16:00 UTC · Open 1.23747 · High 1.23802 · Low 1.23521 · Close 1.23685 · EMA50 1.25522 · ATR14 0.00408 · CCI20 −299.07 · Mean absolute deviation 0.003481 · Observed M1 bars in this H4 2402025-01-02 20:00 UTC · Open 1.23686 · High 1.23848 · Low 1.23685 · Close 1.23793 · EMA50 1.25455 · ATR14 0.00390 · CCI20 −205.49 · Mean absolute deviation 0.004502 · Observed M1 bars in this H4 2402025-01-03 00:00 UTC · Open 1.23792 · High 1.23957 · Low 1.23779 · Close 1.23936 · EMA50 1.25395 · ATR14 0.00375 · CCI20 −147.84 · Mean absolute deviation 0.005435 · Observed M1 bars in this H4 2402025-01-03 04:00 UTC · Open 1.23935 · High 1.24063 · Low 1.23856 · Close 1.23994 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 2382025-01-03 08:00 UTC · Open 1.23995 · High 1.24166 · Low 1.23861 · Close 1.24065 · EMA50 1.25343 · ATR14 0.00370 · CCI20 −109.14 · Mean absolute deviation 0.006136 · Observed M1 bars in this H4 2402025-01-03 12:00 UTC · Open 1.24065 · High 1.24169 · Low 1.23877 · Close 1.24043 · EMA50 1.25292 · ATR14 0.00364 · CCI20 −93.78 · Mean absolute deviation 0.006709 · Observed M1 bars in this H4 2402025-01-03 16:00 UTC · Open 1.24043 · High 1.24338 · Low 1.24022 · Close 1.24273 · EMA50 1.25252 · ATR14 0.00361 · CCI20 −67.01 · Mean absolute deviation 0.007006 · Observed M1 bars in this H4 2402025-01-03 20:00 UTC · Open 1.24272 · High 1.24338 · Low 1.24168 · Close 1.24168 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 1202025-01-05 20:00 UTC · Open 1.24110 · High 1.24335 · Low 1.24110 · Close 1.24241 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 1182025-01-06 00:00 UTC · Open 1.24242 · High 1.24423 · Low 1.24172 · Close 1.24353 · EMA50 1.25217 · ATR14 0.00353 · CCI20 −50.57 · Mean absolute deviation 0.006972 · Observed M1 bars in this H4 2402025-01-06 04:00 UTC · Open 1.24353 · High 1.24565 · Low 1.24316 · Close 1.24523 · EMA50 1.25189 · ATR14 0.00346 · CCI20 −31.07 · Mean absolute deviation 0.006704 · Observed M1 bars in this H4 2402025-01-06 08:00 UTC · Open 1.24523 · High 1.25474 · Low 1.24521 · Close 1.25432 · EMA50 1.25199 · ATR14 0.00389 · CCI20 41.14 · Mean absolute deviation 0.006384 · Observed M1 bars in this H4 2402025-01-06 12:00 UTC · Open 1.25431 · High 1.25507 · Low 1.24680 · Close 1.25078 · EMA50 1.25194 · ATR14 0.00420 · CCI20 42.33 · Mean absolute deviation 0.005984 · Observed M1 bars in this H4 2402025-01-06 16:00 UTC · Open 1.25078 · High 1.25347 · Low 1.25010 · Close 1.25122 · EMA50 1.25191 · ATR14 0.00414 · CCI20 52.71 · Mean absolute deviation 0.005867 · Observed M1 bars in this H4 2402025-01-06 20:00 UTC · Open 1.25120 · High 1.25232 · Low 1.25090 · Close 1.25095 · EMA50 — · ATR14 — · CCI20 — · Mean absolute deviation — · Observed M1 bars in this H4 238SEX01-02 12:0001-03 20:0001-06 20:00CCI20−400−200−1000100
Open
1.24065
High
1.24169
Low
1.23877
Close
1.24043
EMA50
1.25292
ATR14
0.00364
CCI20
−93.78
Mean absolute deviation
0.006709
Observed M1 bars in this H4
240
S: signal; E: modeled buy fill; X: exit reference in its H4 interval. Blue: EMA50. Lower pane: CCI20 with reference levels −100, 0 and +100; values outside ±100 remain visible. Dashed price lines: fixed stop and target. Partial intervals have fewer than 240 M1 and no indicator readings; missing intervals are compressed. See M1 for the precise exit minute.

Exit on real Bid M1 candles

X Exit
Exit on real Bid M1 candlesGBP/USD · Bid · M1 · UTC1.248001.250001.252002025-01-06 11:11 UTC · Open 1.24859 · High 1.24924 · Low 1.24859 · Close 1.249242025-01-06 11:12 UTC · Open 1.24922 · High 1.24988 · Low 1.24918 · Close 1.249442025-01-06 11:13 UTC · Open 1.24945 · High 1.25013 · Low 1.24930 · Close 1.250132025-01-06 11:14 UTC · Open 1.25013 · High 1.25125 · Low 1.25013 · Close 1.250442025-01-06 11:15 UTC · Open 1.25039 · High 1.25190 · Low 1.25030 · Close 1.251582025-01-06 11:16 UTC · Open 1.25158 · High 1.25179 · Low 1.25075 · Close 1.251342025-01-06 11:17 UTC · Open 1.25135 · High 1.25161 · Low 1.25089 · Close 1.251212025-01-06 11:18 UTC · Open 1.25121 · High 1.25138 · Low 1.25089 · Close 1.251182025-01-06 11:19 UTC · Open 1.25117 · High 1.25152 · Low 1.25084 · Close 1.25150X01-06 11:1101-06 11:1501-06 11:19
Open
1.25039
High
1.25190
Low
1.25030
Close
1.25158
X marks the M1 exit interval and reference before exit slippage. Dashed lines show fixed levels within the displayed price range. Missing minutes are compressed and gaps marked. Bid candles do not include modeled spread.

First completed later-sample candidate rejected by EMA50 with net R > 0, in chronological order.

15

Annual results and the limits of this evidence

Annual bars group each independent sample's trades by exit year; the final year ends on 30 September 2026. A positive 2025 baseline was followed by a negative partial 2026. Results apply to this source, long-only rule, H4 construction, cost model and execution convention. Partial intervals and quote gaps matter, while constant spreads cannot capture changing liquidity. Closed-trade drawdown omits open risk. The later baseline gain warrants further testing; it is not proof of dependable profitability or support for the EMA50 filter.

Net R by exit year

● CCI alone● CCI + EMA50
Net R by exit yearR−100102021 · +2.81 R2021 · −0.73 R20212022 · −8.95 R2022 · −3.67 R20222023 · −2.33 R2023 · +1.44 R20232024 · −9.87 R2024 · −0.71 R20242025 · +5.69 R2025 · −1.47 R20252026 · −1.55 R2026 · −1.82 R2026
Earlier sample: 2021–2024. Later sample: January 2025–September 2026. Annual sums use exit year.
Net R by exit year
PeriodCCI aloneCCI + EMA50
2021+2.81−0.73
2022−8.95−3.67
2023−2.33+1.44
2024−9.87−0.71
2025+5.69−1.47
2026−1.55−1.82
16

Reproduce the comparison

Download the protocol, evidence and Python replay. Obtain the 16 pinned M1 ZIP archives through the protocol's source-page links and store them with the recorded filenames. Run the command below with Python, NumPy and pandas. SHA-256 checks protect the inputs. An independent implementation reconciles every base and isolated trade plus stress and exit-order summaries, and tests the exact −100 boundary and current-window mean absolute deviation. Interactive readers expose source OHLC and indicator values; display rounding never changes execution.

python3 gbpusd-cci-replay.py --protocol gbpusd-cci-protocol.json --raw-dir raw --output replay.json

Questions and answers

Does CCI20 use standard deviation?

No. It uses the mean absolute deviation of 20 typical prices from the current window's single mean. Typical price is HLC3 here. Zero mean deviation gives CCI zero; ±100 are not hard bounds.

What exactly triggers the buy?

On a completed accepted H4, CCI20 moves from at most −100 to strictly above −100. The prior H4 must be adjacent. The EMA version also needs Bid close above EMA50. Only the exact next H4 opening can supply entry.

Can a stop lose more than one R?

Yes. If the next observed Bid opening gaps below the stop, the model uses that opening before adverse exit slippage and other costs. A fixed stop level does not guarantee its execution price.

Are Ask, spread and rollover observed?

No. The M1 files contain Bid OHLC. Entry Ask, spread, commission, slippage and rollover debit are explicit assumptions, not actual broker execution or swaps. Higher-cost runs recompute fills and trade calendars.

Are rejected winners actual filtered trades?

No. The diagnostic simulates each candidate independently of occupancy. Rejected examples are hypothetical, may overlap, and cannot be summed as a tradable portfolio. Nonpositive means net R ≤ 0 under the stated model.

Did this establish a profitable CCI + EMA strategy?

No. The filtered later result was negative and had only 14 trades. CCI alone was positive later but lost earlier, and higher costs nearly erased its later gain. The retrospective split does not establish future performance.

Sources and reproducibility

Created by the MyProfitFactor editorial team.

Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.

Risk disclosure

This educational comparison uses historical Bid data and modeled costs. Gaps can create losses beyond the initial stop budget. Variable spreads and real execution can change results. Historical gains do not guarantee future returns.