ForexBestRobots.comCompare EAs →
EN

SUPERTREND + EMA50 · HISTORICAL STRATEGY TEST

Supertrend + EMA50 Forex Strategy: First Pullback After a Flip

Test the first confirmed EUR/USD H1 pullback after a Supertrend 10/3 flip. Compare the same candidates with an EMA50 filter, costs and missing paths.

Real EUR/USD H1, UTC. On 2 April 2024, the flip, pullback and confirmation become known at 13:00, 14:00 and 15:00. The modeled entry follows at 1.076400; no entry is assigned to the earlier confirmation Close.
Real EUR/USD H1, UTC. On 2 April 2024, the flip, pullback and confirmation become known at 13:00, 14:00 and 15:00. The modeled entry follows at 1.076400; no entry is assigned to the earlier confirmation Close.

Does EMA50 improve a first-pullback entry after Supertrend changes direction? On this EUR/USD H1 reference-price test, the filter keeps 37 of 38 admitted paths and removes one known winner. At an assumed total cost of 2 pips, the known-path sums are −4.02R for Base and −5.93R with EMA50. Eight paths remain unresolved in each arm; these sums are not complete-sample or account returns.

1. Define the pullback before testing it

This is a new price-action test, distinct from entering on the Supertrend flip itself. The indicator is fixed at Wilder ATR10 and multiplier 3. F is a completed direction flip; its starting down state is not a flip. P is the first later candle whose body opposes that new direction. A doji does not qualify.

A long pullback has Close<Open; a short pullback has Close>Open. Freeze P’s High and Low after its hour ends. No line touch is required. The 12-hour search, three-hour confirmation, 2R target and other rules were fixed before this calculation; no parameter winner was selected afterward.

Real EUR/USD H1, UTC. On 2 April 2024, the flip, pullback and confirmation become known at 13:00, 14:00 and 15:00. The modeled entry follows at 1.076400; no entry is assigned to the earlier confirmation Close.
Real EUR/USD H1, UTC. On 2 April 2024, the flip, pullback and confirmation become known at 13:00, 14:00 and 15:00. The modeled entry follows at 1.076400; no entry is assigned to the earlier confirmation Close.

2. Follow one common F–P–C calendar

F and its preceding hour must be complete and adjacent. Search the next 12 clock hours for P. Then use only P+1, P+2 or P+3 for the first confirmation C: long needs Close>Open and Close>HighP; short needs Close<Open and Close<LowP. P cannot confirm itself. A late P may extend confirmation beyond F+12.

A missing or partial required hour cancels first; a new opposite Supertrend flip cancels next. After P, a long Low≤LowP or short High≥HighP cancels before a same-hour confirmation. Equality therefore invalidates this setup. Expiry, cancellation or filter rejection consumes the first candidate. No later candle can replace it.

3. Separate confirmation, entry and the EMA gate

C is known only when its hour ends. The modeled entry uses the first recorded minute Open assigned to the next interval’s start, exactly at C’s end. If that first minute is absent, there is no entry; the test does not jump to the next available quote. This is a provider reference-price convention, not a reconstructed Bid/Ask execution.

Base accepts an otherwise valid entry. The paired EMA50 arm keeps a long only when CloseC>EMA50C and a short only when CloseC<EMA50C; equality rejects. There is no slope or crossover condition. The decision is made at C, and the Base path is still calculated when EMA rejects, so the comparison uses identical first candidates.

EMA₄₉ = mean(C₀ … C₄₉)
EMAₜ = EMAₜ₋₁ + (2 / 51) × (Cₜ − EMAₜ₋₁)

4. Fix the stop, target and minute-by-minute priorities

The fixed stop is LowP for a long and HighP for a short. Initial R is the entry-to-stop distance. Only initial risk from 5 to 150 pips, including both limits, is admitted. The target is 2R from entry. Hold at most 24 clock hours. Neither a later Supertrend flip nor EMA movement changes these exits.

Replay consecutive minute OHLC. Test Open first: an adverse stop gap uses that Open; a favorable target gap is capped at the target. Otherwise a single inclusive stop/target touch uses its threshold. Both touched within one minute means unknown order, not an assumed stop-first result. Missing minutes or a year boundary also leave an unresolved result. If no barrier is reached within 1,440 complete minute intervals, use the final Close.

5. Read what the calendar rejected

The shared calendar contains 357 flips after the 200-bar warmup. Only 38 reach a valid entry. Most first pullbacks are cancelled when their frozen extreme is touched before confirmation. These discarded attempts are published; they are not silently replaced by cleaner-looking later pullbacks.

The table records the first terminal decision for each flip. It does not count every chart pattern or pretend that all indicator flips were tradable. All 38 admitted cases have a Base path, including the one excluded by EMA50.

First terminal decisionCandidates
Pullback extreme touched before confirmation279
Valid modeled entry38
No confirmation within three hours17
Opposite Supertrend flip before entry7
Missing or partial required setup hour8
Incomplete or nonadjacent flip hours8

6. Compare known results alongside unresolved paths

In 2024, Base has 23 admitted cases: 16 known and seven unresolved. The EMA arm keeps 22: 15 known and the same seven unresolved. In 2025, both arms keep all 15 cases: 14 known and one unresolved. The later year is historical data, not live forward trading or a certified unseen holdout.

At 2 pips total assumed cost, the known sums are −5.10R versus −7.01R in 2024 and +1.08R for both arms in 2025. Combined, they are −4.02R versus −5.93R. EMA removes a known +1.91R Base path and provides no evidence of improvement here. The eight unresolved paths are excluded from sums, never assigned zero; their unknown contribution prevents a complete-sample profitability conclusion.

YearBase pathAdmittedKnownUnresolvedKnown-path sum · R
2024Base23167−5.10
2024With EMA5022157−7.01
2025Base151411.08
2025With EMA50151411.08
2024–2025Base38308−4.02
2024–2025With EMA5037298−5.93

Sums include known independent paths only. Unresolved outcomes are not zero.

7. Change costs without changing the candidates

Keep the calendar, entries, stops, targets and paths unchanged while subtracting total round-trip assumptions of 0, 1, 2, 3 or 5 pips once from each known path. These are sensitivity scenarios, not measured spreads or actual fills. They do not reconstruct swap, financing, taxes or broker fees.

Net R equals gross R minus cost in pips divided by initial risk in pips. Thus 2 pips costs 0.10R at 20 pips initial risk but 0.20R at 10 pips. Independent hypothetical paths can overlap; summing their R is a research comparison, not portfolio equity, drawdown or an account return.

Assumed total cost · pipsBase · RWith EMA50 · R
00.22−1.78
1−1.90−3.86
2−4.02−5.93
3−6.14−8.00
5−10.37−12.15
R_net = R_gross − c_pips / r_pips

8. Inspect four real Forex examples

The figures below are selected retrospectively by a fixed order: earliest known positive result at 2-pip cost, earliest known negative, earliest EMA-excluded admitted case and earliest unresolved case. They explain the rules; they are not a representative sample or a collection of winning entries.

F marks the completed flip, P the first opposing body, C the completed confirmation and E the modeled entry. X marks a known model exit; ? marks a missing-path boundary. The EMA-excluded chart shows the counterfactual Base path only. Figures include their final hour and UTC availability; a minute touch is not labeled as an exact execution second.

F: flip · P: pullback · C: confirmation · E: entry · X: exit · ?: unknown

Known positive: the 24-hour exit

Earliest known positive case at assumed 2-pip total cost: the 24-hour model exit gives +1.10R. The 2R target is not reached. This retrospective example does not establish a typical result.
Earliest known positive case at assumed 2-pip total cost: the 24-hour model exit gives +1.10R. The 2R target is not reached. This retrospective example does not establish a typical result.
F01574Base
Modeled entry2024-04-02 15:00 UTC · 1.076400
Fixed stop1.074400
2R target1.080400
Initial risk · pips20.00
EMA50 decisionKept
Base result at 2 pips · R1.10

Known negative: the fixed stop

Earliest known negative case: the short reference-price path touches its fixed stop. The assumed 2-pip cost makes the result −1.09R. A quoted minute range does not identify an exact broker execution second.
Earliest known negative case: the short reference-price path touches its fixed stop. The assumed 2-pip cost makes the result −1.09R. A quoted minute range does not identify an exact broker execution second.
F00372Base
Modeled entry2024-01-23 15:00 UTC · 1.085100
Fixed stop1.087400
2R target1.080500
Initial risk · pips23.00
EMA50 decisionKept
Base result at 2 pips · R−1.09

EMA rejection: Base reaches 2R

The only EMA-excluded admitted case is a short on 13 June 2024. Its Base path reaches the 2R target, or +1.91R after 2 pips. The EMA arm has no entry for this candidate; it does not receive this return.
The only EMA-excluded admitted case is a short on 13 June 2024. Its Base path reaches the 2R target, or +1.91R after 2 pips. The EMA arm has no entry for this candidate; it does not receive this return.
F02817Base
Modeled entry2024-06-13 12:00 UTC · 1.079300
Fixed stop1.081500
2R target1.074900
Initial risk · pips22.00
EMA50 decisionExcluded · no EMA entry
Base result at 2 pips · R1.91

Missing minute: result stays unknown

Earliest unresolved case: after 299 observed minutes, the expected minute beginning 2 February 2024 at 21:59 UTC is missing. No exit price or R is assigned, and later quotes cannot repair the unknown earlier path.
Earliest unresolved case: after 299 observed minutes, the expected minute beginning 2 February 2024 at 21:59 UTC is missing. No exit price or R is assigned, and later quotes cannot repair the unknown earlier path.
F00567Base
Modeled entry2024-02-02 17:00 UTC · 1.078400
Fixed stop1.081500
2R target1.072200
Initial risk · pips31.00
EMA50 decisionKept
Base result at 2 pips · R—

9. Check the source coverage and calculation

The retained source has 751,593 EUR/USD minute rows: 375,819 for 2024 intervals and 375,774 for 2025. They form 12,530 observed H1 groups: 12,400 complete and 130 partial. Missing clock hours, including closed-market periods, are not filled. Partial groups stay in indicator history but cancel a required setup hour. Holding paths stop at the first missing minute. Prices are USD per EUR; one pip is 0.0001.

Forexite’s original GMT+1 labels are converted to UTC by subtracting one hour without daylight-saving shifts. The minute-end interval convention is an explicit assumption. Four original winter/summer daily archives were rechecked against 5,760 retained rows; 729 other archive records retain earlier provenance. This Trade OHLC stream does not establish executable Bid/Ask and differs from the guide’s HistData Bid sample.

YearRecorded H1Complete H1Partial H1
20246266619373
20256264620757

10. Explore completed historical candles

Supertrend uses the guide’s carried-band, strict completed-Close rule. ATR starts with the mean of the first 10 true ranges and continues with Wilder smoothing. EMA50 starts with the mean of 50 recorded closes, then updates with weight 2/51. Both retain prior history across gaps and the year boundary; candidates start once 200 recorded bars are available.

Choose a case, then move through completed hours. The chart, scale and event labels use only information available by that hour’s end. Entry, exit and missing-path labels appear only after their required minute information. Observed minute counts make partial hours visible. The downloads contain every first decision, every admitted path, all cost scenarios, the frozen rules and a reproducible calculation; a second implementation matched all 357 decisions and 38 paths.

Chart ends at the selected completed candle

Frequently asked questions

Did EMA50 improve this test?

No improvement is demonstrated. It kept 37 of 38 admitted paths and removed one known winner. Known-path sums worsened, while eight outcomes remained unresolved in both arms. This does not establish the complete strategy’s future return.

Can I enter at the confirmation Close?

That would be a different protocol. This study waits for confirmation to finish and uses the next interval’s first recorded Open under an explicit reference-price convention. It does not claim an executable Ask or Bid fill.

Does the stop limit every loss to 1R?

No. An observed adverse opening gap can produce a model loss beyond 1R; costs increase that loss. Unseen gaps in missing data cannot be bounded at −1R.

Are unknown paths treated as losses or flat trades?

Neither. Their result remains unknown. The tables show known and unresolved counts separately; displayed sums include only known paths. A missing minute or an unresolved same-minute stop-and-target order is never counted as zero.

Is 2025 an out-of-sample or live-forward result?

It is later historical data that has been available for earlier research. It is not live forward trading and is not certified as an unseen holdout. The sample has few admitted paths and cannot establish reliable profitability.

Source data and reproducible method

Primary references