ForexBestRobots.comCompare EAs →
EN

DEMA20 / 50 · FIRST DAILY PULLBACK · REAL FOREX TEST

DEMA Forex Strategy: First Pullback and Closed-Bar Recovery

Follow the first eligible daily pullback, wait for a closed-hour recovery and inspect what remains after trading friction.

Real USD/JPY H1 · confirmation 2024-02-23 09:00 UTC. DEMA20/50, E: following M1 open; S: stop; T: target. The H1 chart ends at confirmation.
Real USD/JPY H1 · confirmation 2024-02-23 09:00 UTC. DEMA20/50, E: following M1 open; S: stop; T: target. The H1 chart ends at confirmation.

A responsive DEMA line does not establish a trading edge. Here we turn a first daily pullback into a fixed, testable rule on retained USD/JPY quotes. The indicator periods, entry window, stop, target and cost scenarios were frozen before this replay. The test produced 32 trades; the small positive gross total in normalized R disappeared under the main cost deduction.

1. Read the result before the chart

The 93 structural pullbacks led to 32 entries: 20 long and 12 short. The other 61 candidates remained rejected. With the main all-in deduction of 2 pips per completed trade, total normalized result was -0.53 R, win rate 46.9%, profit factor 0.96 and maximum closed-trade drawdown 4.65 R. This sample does not establish an advantage after costs.

R divides each trade’s price result by its own initial stop distance. It represents equal initial risk across trades, without compounding a balance. Unweighted gross pips total -24.5, even though gross normalized R is +1.90. These totals weight trades differently; neither should be presented as an account percentage.

2. Define the first pullback and recovery

Calculate DEMA(N)=2×EMA1(N)−EMA2(N), with EMA2 smoothing the current EMA1. Both stages start at the first retained close, use the same N and have no horizontal shift. The fixed periods are 20 and 50. At least 500 prior retained H1 bars are required; this is a declared preparation rule, not a guarantee of matching a trading terminal.

Each weekday UTC date has one attempt. Search completed H1 intervals ending from 07:00 through 12:00 UTC. The current and previous hour must both contain 60 observed minutes and be adjacent on that date. Once the first structural pullback appears, consume the date before checking whether it can become a trade.

  1. Long pullback: DEMA20>DEMA50, DEMA50 is rising, the previous close was above DEMA20 and the current close is at or below DEMA20. Reject immediately if that close is at or below DEMA50.
  2. Short pullback: DEMA20<DEMA50, DEMA50 is falling, the previous close was below DEMA20 and the current close is at or above DEMA20. Reject immediately if that close is at or above DEMA50.
  3. Check only the next one, two or three scheduled closed H1 hours. A missing or partial hour rejects the attempt; it does not extend the clock.
  4. Before recovery, keep the directional DEMA20/50 relationship, the directional DEMA50 slope and the close strictly on the trend side of DEMA50. Failure rejects the attempt before checking recovery.
  5. The first still-valid close back above DEMA20 confirms a long recovery; the first close back below confirms a short recovery. There is no candle-body filter. No confirmation within three hours means rejection.
  6. A later cross, a cleaner second pullback or a rejected risk distance cannot replace the first attempt. There is at most one entry per UTC date and one position at a time.

3. Set entry, risk and exits

Enter at the opening quote of the immediately following M1 interval. Under the declared minute-end convention, confirmation at 09:00 uses the minute record ending 09:01, whose opening is modeled at 09:00. If that exact next-minute record is missing, reject instead of waiting for a convenient price.

For a long, place the reference stop one pip below the lowest H1 low from pullback through confirmation; for a short, one pip above the highest high. In USD/JPY one pip is 0.01 JPY per USD. The actual next-minute opening quote must leave an initial stop distance of 10–80 pips inclusive. The target is 1.5 times that distance. Exit at the earlier of four clock hours after entry or 16:00 UTC, unless stop or target has already ended the trade.

Replay the observed minute OHLC. At each minute open, a breached stop fills at that open, then a breached target fills at its target without favorable improvement, then a due time exit fills at the open. Otherwise inspect the range; if both levels are touched in one minute, assume stop first. A data gap forces exit at the next observed open after the opening-level checks and is flagged. This sample had no held-path gaps, truncated trades or same-minute stop/target ambiguities.

4. Follow the first trade on real candles

The first chronological trade is also the first trade negative after the main cost deduction. The H1 illustration ends at its recovery confirmation; E marks the following minute’s opening entry, while S and T show levels set at entry. It does not pretend that an H1 candle contains a known tick path.

First trade: H1 recovery and the following minute open

Real USD/JPY H1 · confirmation 2024-02-23 09:00 UTC. DEMA20/50, E: following M1 open; S: stop; T: target. The H1 chart ends at confirmation.
Real USD/JPY H1 · confirmation 2024-02-23 09:00 UTC. DEMA20/50, E: following M1 open; S: stop; T: target. The H1 chart ends at confirmation.

The M1 illustration follows the same trade through its exit interval. E means entry, X exit, S stop and T target. Full OHLC of the exit minute is visible; the data do not reveal the exact within-minute fill second. At 2 pips the modeled result is -1.154 R. The pair of pictures explains one trade, not two independent examples.

The same trade: M1 stop execution

Real USD/JPY M1 · exit interval 2024-02-23 12:30 UTC to 2024-02-23 12:31 UTC. E: entry; X: modeled exit; S: stop; T: target. Full exit-minute OHLC is shown; the tick order is unknown.
Real USD/JPY M1 · exit interval 2024-02-23 12:30 UTC to 2024-02-23 12:31 UTC. E: entry; X: modeled exit; S: stop; T: target. Full exit-minute OHLC is shown; the tick order is unknown.

5. Compare the same trades with costs

All three rows use identical attempts, entries, stops, targets and reference-price exits. Deduct 0, 2 or 4 pips once per completed round trip. These are illustrative combined frictions for spread, commission and slippage, not measured broker costs. They do not reconstruct bid/ask triggering or change which trades fill.

A stop at the reference level loses more than 1R after friction; a 1.5R reference target earns less than 1.5R. At 4 pips the total is -2.96 R. The cost selector changes deductions and displayed results, not the frozen strategy parameters.

All-in cost · pip per round tripTradesTotal net · RNet result · pipWins · %Maximum drawdown · RProfit factor · net R
032+1.903-24.546.94.1621.158
232-0.529-88.546.94.6480.960
432-2.962-152.540.66.1220.797

6. Keep a rejected date rejected

The first rejected candidate loses the required trend/filter conditions before a valid recovery. Its date remains consumed. The next attractive-looking cross that day is outside this strategy’s rules.

The ledger retains all 93 candidates, including 61 rejections: 33 recovery-filter failures, 15 expired windows, 11 pullbacks outside the slow-line band and 2 rejected risk distances. These are outcomes of the fixed rules, not events removed from a chart to improve its appearance.

First rejection: the date stays consumed

Real USD/JPY H1 · decision 2024-01-31 09:00 UTC. The first daily candidate is rejected before entry. A later setup cannot replace it.
Real USD/JPY H1 · decision 2024-01-31 09:00 UTC. The first daily candidate is rejected before entry. A later setup cannot replace it.

7. Inspect every attempt and the minute replay

Move between chronological attempts, choose H1 setup or M1 execution, and compare the three cost deductions. The execution slider ends the visible minute chart at the selected observed bar. A rejected attempt has no execution chart or trade result. Example buttons choose the first trade, its first loss, or the first rejection; the selected cost stays in place.

Loading historical test…

E entry · X exit · S stop · T target

The visible chart ends at the selected observation.

UTC date
—
Direction
—
Attempt status
—
Decision / exit
—
Pullback · H1 end UTC
—
Recovery · H1 end UTC
—
E · entry reference
—
Modeled entry time · UTC
—
S · stop reference
—
T · target reference
—
Initial stop distance · pip
—
X · exit reference
—
Exit interval · UTC
—
Gross result · R
—
Net result · R
—
Net result · pip
—
Selected minute end · UTC
—

8. Separate the test from a proven edge

The earlier half of 2024 produced -0.72 R and the later half +0.19 R after 2 pips. These are chronological diagnostics on the same reused year, not an untouched out-of-sample validation. Thirty-two trades, one pair and one year are too narrow to certify robustness.

The sample contains real retained quotes, but the fills are a declared reference-price model. Fixed friction, minute-level ordering and the lack of a full historical bid/ask path limit execution realism. The result is not live monitoring, a broker-native backtest or a forecast of what DEMA will earn.

Calendar subperiodTradesTotal net · R
January–June 202415-0.723
July–December 202417+0.193

Frequently asked questions

Is this just a double-smoothed EMA?

No. DEMA combines two stages as 2×EMA1−EMA2. The strategy then adds an explicit daily pullback, recovery and exit protocol.

What does first pullback mean here?

The first eligible structural pullback in either direction within 07:00–12:00 UTC consumes that weekday date. A rejected attempt cannot be replaced later that day.

Does entry use the recovery candle’s close?

No. It uses the opening quote of the immediately following minute interval. If that record is absent or the stop distance is outside 10–80 pips, there is no entry.

Did the test show a profit after costs?

The main 2-pip deduction produced -0.53 R over 32 trades. It does not establish an edge after costs, and R is not an account-return percentage.

Why are gross R and gross pips different?

Each R result divides by that trade’s initial stop distance. Raw pips have no such risk normalization, so their sums weight trades differently.

Is this live or unseen validation?

No. It reuses the retained 2024 USD/JPY quotes from the indicator guides. Two replay implementations were cross-checked, without independent human or native-terminal certification.

Data, method and scope

The source is the previously verified set of 375,702 Forexite USD/JPY minute observations from 2024 Trade/MetaStock archives. Fixed GMT+1 labels were shifted back one hour to UTC. Minute labels are treated as interval ends and H1 buckets as (start,end]. These are declared reconstruction assumptions, not every broker’s convention.

The 6,265 retained H1 intervals include 6,178 complete and 87 partial hours, with 52 gaps before recorded hours. Partial closes still update the averages, but incomplete or nonadjacent hours cannot form a valid setup. Missing prices are not filled. The original daily ZIPs were not downloaded again for this release.

Download the full trade and attempt ledgers or the data/method package. The protocol was saved before strategy replay. A separate error-form DEMA calculation and date-based event replay checked every candidate, trade and aggregate; boundary cases also check adverse opening gaps, stop-first ambiguity and time-exit priority. The checks support reproducibility, not profitability.

Primary references