Specifiche
Add Prop Firm Consistency Rule Logic to Existing MQL5 EA
1.DescriptionI’m looking for an experienced MQL5 developer to enhance an existing MT5 Expert Advisor (EA) by adding a "Consistency Rule" logic module, which will allow the EA to comply with various prop firm challenge rules.
2.New Feature Requirements1. UI/Settings Enhancements
Add the following settings to the EA configuration panel:
- Consistency Rule: true/false
- Prop Firm Selection: a drop-down menu with the following options:
- 5ers
- FTMO
- FundingPips
- PropFirm4
- PropFirm5
(Future firms may be added later)
Behavior:
- If Consistency Rule is set to true, the EA should activate and apply the consistency logic specific to the selected prop firm.
- If Consistency Rule is set to false, the EA should not adjust any Take Profits (TPs) based on consistency rules—normal trading logic applies.
2. Trading Logic Based on Selected Prop Firm
FTMO & FundingPips Rules:
- These firms have a minimum trading days requirement:
- FTMO: 4 days
- FundingPips: 3 days
- If the account Take Profit (AccountTP) is hit before fulfilling the minimum trading days:
- The EA should open a 0.01 lot trade for 5 minutes daily until the minimum days are completed.
5ers Rules:
- https://the5ers.com/faqs/
Search for:
- "What are the general rules for the High Stakes Program?"
- How do you define a profitable day in the High Stakes program?
- Requires at least 3 profitable trading days, each with a minimum 0.5% daily profit.
- The EA should:
-
Analyze the trading history to count the number of 0.5%+ profitable days.
-
Dynamically adjust the Position Take Profit (TP) for each trade if needed to comply with the consistency rule.
-
The TP should be adjusted to the smaller side if the current TP would cause the account to hit the Account Take Profit (AccountTP) before reaching the required number of profitable days.
-
The new TP should be calculated as a function of:
-
The AccountTP
-
The current account balance (i.e., the remaining distance to AccountTP)
-
The number of profitable days already recorded with ≥0.5% gain
-
-
If the consistency requirement has already been fulfilled (i.e., 3 or more qualifying days), or if the current PositionTP would result in fulfilling the requirement by the time the AccountTP is hit, the EA may resume using the original PositionTP.
⚠️ Please describe in your application how you would implement this logic for 5ers. Applications that clearly articulate a correct understanding will be prioritized.
3.Additional Requirements- Developer must be able to analyze and integrate with the EA’s existing structure.
- Implement robust error handling and logging to support stable behavior across market conditions.
- Clear code comments and documentation are essential.
- Developer must have:
- Strong MQL5 and MetaTrader 5 experience
- Familiarity with prop firm evaluation rules (preferred)
- Solid debugging and testing skills
- Ability to communicate progress and reasoning effectively
- Updated and fully functional EA including the "Consistency Rule" logic
- Verified testing to ensure compliance with each supported prop firm
- Source code with inline documentation and structured organization
- A brief technical document (PDF or DOC) explaining:
- The changes made to the EA
- The logic implemented for each prop firm
- How the Consistency Rule setting works in the UI and back-end
- Any assumptions or limitations considered during development