Case studies

Case study: Swing retracement expert

Every night the team drew levels by hand and entries differed between members; the missing shared rule caused recurring arguments.

  • EURUSDMarket
  • H4TF
  • MT5Platform
  • 9 weeksDelivery window
  • 5Deliverables
Backtest and forward test method

The client's idea

Zaringasht Investment works EURUSD on H4; the opening brief was: Write down our swing style as rules — faster than reading charts ourselves every night.

Project and starting point

Every night the team drew levels by hand and entries differed between members; the missing shared rule caused recurring arguments.

Solution architecture

A retracement rule with calculated levels, orders scheduled for the next session, and a fixed cap on concurrent positions.

The levels are calculated rather than drawn, which ends the debate about where the line goes. It matches how EURUSD is actually traded and can be tested against the data already available.

Why this design

The levels are calculated rather than drawn, which ends the debate about where the line goes. It matches how EURUSD is actually traded and can be tested against the data already available.

Implemented capabilities

Modules and components built: Trade scheduling + position cap.

Delivered output:
Swing retracement expert — EURUSD (H4)
Specification document and the rule-to-code mapping table
Full MQL5 source, commented
Test report: Six-year backtest
Parameter document and install guide (9 weeks)

Safeguards and risk control

Each module can be switched off on its own, and the exposure cap and daily stop are part of the expert rather than a later add-on.

Backtest and forward test method

Test method: Six-year backtest.

Testing runs in three stages: a backtest on historical data, limited optimisation inside the contract's scope, and a forward run with the parameters frozen.

Tools and stack: MQL5, six years of H4 data, monthly reporting.

Every figure from this project is published together with its measurement conditions: the data window, the tick model, the spread, the commission and the build of the executable. Without them a number cannot be compared with anything.

Publishable results

The team's nightly decisions became one rule set, and in the six-year test over 90% of trades followed it.

Limitations and cautions

Each module can be switched off on its own, and the exposure cap and daily stop are part of the expert rather than a later add-on.

Every test result depends on the quality of the historical data, the broker's spread and market conditions, and none of it is a promise about the future. Through a severe price gap or a broker disconnection a stop loss cannot be guaranteed, so behaviour in those conditions must be reviewed separately.

Our next-step proposal

The proposed next step is a reporting module wired into the trade journal.

Portfolio

Measured results

These are the figures the test produced — not a promise about future performance.

  • 9,000 Bars in the test set
  • 2 Concurrent position cap
  • 1,050 Trades reviewed
  • 12.4 % Max drawdown in test