Project specifications
- Market
- NAS100
- TF
- M5
- Platform
- MT5
- Client type
- Existing EA owner
- Delivery window
- 6 weeks
- Stack
- MQL5, the client's code, index M1 data
- Strategy
- Equity guard on existing code
- Modules
- Drawdown limit + auto resume
- Testing
- Index crisis-day testing
Who this was for
Pedram Rostami
- Role
- Index trader
- City
- Tehran
- Project reference
- TBT-1408-28
The client's idea
Pedram Rostami works NAS100 on M5; the opening brief was: The index expert works well, but it has no guard on bad days.
Initial challenge
In volatile index stretches the expert opened many positions at once and intraday equity fell with no limit at all.
Solution
An equity guard based on floating profit, staged position closing and an automatic resume on the next trading day.
Why this design
The automatic resume was added so the client never has to restart the expert by hand. It matches how NAS100 is actually traded and can be tested against the data already available.
Safeguards and risk control
The risk layer sits outside the strategy logic, so a later change to the signal cannot bypass it.
Our next-step proposal
The next step is a monthly compliance report that proves the account rules were respected.
Portfolio
Measured results
These are the figures the test produced — not a promise about future performance.
- 6.8 % Max drawdown in test
- 1 day Recovery after drawdown
- 3 Concurrent position cap
- 1 Regressions caught
Portfolio
How the delivery ran
Every project moves through these five phases, with the window for each agreed in the specification.
-
Discovery and problem framing
CompletedReading the client's risk rules and measuring how the account currently behaves on NAS100.
Day 1–3
-
Written specification
CompletedTurning the rules into numeric caps: risk per trade, daily loss and exposure ceiling.
Day 4–10
-
Implementation
CompletedBuilding a risk layer independent of the signal, with each cap testable on its own.
Day 11–25
-
Testing and validation
CompletedTesting the critical scenarios: fast drawdown, simultaneous positions and a dropped connection.
Day 26–35
-
Handover and support
CompletedHandover of the risk layer with a rules document and the emergency-stop path.
Day 36–39