Simulating Prop Firm Thresholds with Balance Resets in EA Tests
Summary
The document describes a MetaTrader 5 library for testing expert advisors against simplified proprietary trading challenge rules. It records an initial balance, calculates profit or loss relative to that amount, and uses tester deposit or withdrawal operations to restore the balance when configurable thresholds are reached. The EA also logs reset counts, dates, outcomes, and intervals between events. An extended version adds optimization controls: it can stop a pass after a loss reset and return a custom score based on successful versus unsuccessful resets and a minimum success requirement.
This is a testing framework for threshold-based account rules, rather than a trading strategy. The examples explain the intended logic but provide no validation results or comparison with a real firm’s evaluation process. Resetting balance does not by itself model other challenge conditions, and the described scoring rule may steer optimization toward the chosen reset counts without establishing robust strategy performance. The text also refers to a maximum-loss input, but does not clearly show it in the reset logic.
Key ideas
- The framework compares account balance with a captured initial balance and configurable thresholds.
- Tester deposits and withdrawals simulate returning the account to its starting balance.
- Reset events can be logged and incorporated into a custom optimization score.
- Threshold resets alone do not establish that a strategy meets all real challenge rules.
- The maximum-loss parameter is mentioned but its role in the shown logic is unclear.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.