Tarea técnica
Description:
I have a fully functioning Expert Advisor (.mq5) that trades a breakout strategy based on 2-hour session boxes. The EA works perfectly and has already been live-tested.
Now, I want to create a data-gathering/analyzer version of this EA to help me validate and analyze strategy performance over historical data. This new EA should not place real trades, but instead simulate the exact same logic and track performance statistics.
Goals of This Project:
Replicate the logic of the current EA 100% without any changes.
Do not place real trades — simulate entries, exits, and outcomes only.
Collect and display detailed statistics during and after Strategy Tester runs.
Key Requirements:
- Exact Logic Preservation
- The new EA must use the exact same breakout rules, time windows, SL, TP, and filters from my existing EA.
- There should be no changes to the strategy or its parameters.
- You will be given my .mq5 source file to copy logic from.
- Simulated Execution Only
- Instead of placing real trades, the EA should simulate entries when breakout conditions are met.
- For each valid setup:
- Simulate an entry
- Track SL or TP hit based on the rules
- Use the same SL/TP/risk rules from the original EA
- Statistics Tracking and Display
- Track the following for the entire test period:
- Total number of setups
- Number of TP hits
- Number of SL hits
- Win rate %
- All stats must be displayed in a small panel on the chart.
- Panel must:
- Be toggleable (show/hide)
- Stay visible after strategy testing ends
- Update in real time during the test
- Journal Output
- At the end of the Strategy Tester run, print the final statistics (setup count, TP count, SL count, winrate) to the Experts → Journal tab.
- (Optional but Preferred)
- Option to export the stats to a .csv file (controlled by an input like ExportToCSV = true/false)
Deliverables:
- One EA .mq5 file (e.g., EA_DataAnalyzer.mq5)
- Must be tested and verified in Strategy Tester
- Panel and Journal output working as described
What I Will Provide:
- Source code of my current EA (EA_ALWIN.mq5)
- All specifications and clarification needed to complete the job
Success Criteria:
- Final EA produces identical signals and behavior (entry logic, SL, TP) as the original EA
- All simulated trades are accurately recorded
- Panel and Journal output function reliably
- No missing signals, no real trade execution
Let me know if you need any clarifications before accepting the job. If you can deliver quality and accuracy, I will have more EA-related projects coming soon, I need the source code as well