FillingType
This EA is a utility tool that demonstrates and tests the different order filling types available in MQL5 (FOK, IOC, Return). It does not implement any trading strategy but rather provides a framework for understanding how filling modes work with different brokers and symbols.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
Not backtested yet — this EA could not be converted automatically.
Strategy analysis
This EA does not contain any trading strategy; it is a purely utility-based program. Its primary function is to enumerate and test the order filling types available on the MQL5 platform, including FOK (Fill or Kill), IOC (Immediate or Cancel), and Return mode. Regarding entry conditions, the program does not open positions based on any technical indicators or price signals; instead, it submits test orders based on the user-selected filling type. Exit conditions are not applicable since this tool does not manage positions. Position sizing is not involved as the program is only used to detect filling modes supported by the broker. There is no money management logic since this is not a trading EA.
Strengths
- Helps developers quickly identify filling types supported by the broker, avoiding order failures due to mismatched filling types
- Clean and straightforward code, suitable for MQL5 beginners to understand order filling mechanisms
- Highly practical for quickly verifying compatibility when switching brokers or trading new symbols
Weaknesses
- Functionality is too narrow, only detecting filling types without any complete trading logic
- No automated batch testing for all filling types; requires manual testing one by one
- Lacks detailed error handling feedback; when a test fails, it is unclear whether the filling type is unsupported or another issue caused the failure
Possible improvements
- Add automated traversal of all filling types with a detection report output to improve testing efficiency
- Add detailed error logging to distinguish between unsupported filling types and other order placement errors
- Add support for exchange symbol filling type detection to expand the scope of applicability
Risk assessment
Overall risk: Safe
- May accidentally submit real orders during live testing; recommend using on demo accounts first
- Lacks checking of current account trading permissions, which may cause errors on read-only accounts
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
FillingType | FOK | Order fill type: FOK, IOC, or Return |
MagicNumber | 0 | EA magic number to identify order source |
LotSize | 0.01 | Lot size for test orders |
Similar Utility EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.