Техническое задание
I need modifications and restructuring of an existing MetaTrader 5 Expert Advisor (MQL5).
The current EA works with only one filter for trade entry.
I need it redesigned to support 10 optional filters, with flexible configuration and improved Renko logic.
I will provide the full .mq5 source code. The EA currently opens trades only when the selected filters agree in direction.
1) 10 Optional Filters System
The EA must support:
-
Up to 10 independent filters (indicators/conditions).
-
Each filter must have:
-
Enable / Disable option (true/false)
-
Independent Timeframe selection
-
-
Trade should open ONLY when:
-
All enabled filters agree in the same direction (BUY or SELL).
-
Example:
If I enable 6 filters → trade opens only if all 6 give the same signal.
The architecture must be clean and scalable so future filters can be added easily.
2) Renko Settings Control
Add configurable Renko parameters:
-
Brick Size
-
Reversal Size (2 bricks, 3 bricks, or custom number)
-
Optional support for time-based Renko (if possible or structurally prepared)
The Renko logic must be stable and consistent between tester and live trading.
3) Entry Confirmation Based on Renko Direction
Currently, the signal opens too late.
Required improvements:
-
Entry must strictly match the exact direction of the current Renko brick.
-
Avoid delayed entries.
-
Fix any lag caused by:
-
Incorrect shift usage
-
Using closed bar vs current bar improperly
-
Indicator recalculation issues
-
Multi-timeframe delay
-
The logic should prevent late entries after most of the move is already completed.
4) Backtest Must Match Real Trading
This is VERY important.
The EA optimization results must closely match live trading behavior.
The developer must ensure:
-
No repainting logic.
-
Proper bar indexing (no look-ahead bias).
-
Proper handling of Renko generation.
-
No artificial advantage in Strategy Tester.
-
Consistent signal timing between tester and real ticks.
If Renko uses offline/custom symbols, the solution must explain how accuracy is preserved.
5) Entry Logic Summary
Open BUY or SELL only when:
-
All enabled filters agree in the same direction.
-
Renko brick direction fully confirms.
-
No delayed confirmation issue.
Optional improvement suggestion welcome if it improves execution precision.
6) Code Requirements
-
Clean, modular structure (separate functions per filter).
-
Fully compilable .mq5 source code.
-
Well organized inputs.
-
No unnecessary global variables.
-
Easy to expand in future.
7) What I Will Provide
-
Full EA source code (.mq5).
-
Current logic (working with 1 filter only).
You will restructure and upgrade it.
Important Notes
The two most important goals:
-
Reduce entry delay.
-
Make backtesting realistic and consistent with live trading.
Please explain in your proposal:
-
How you will handle Renko in MT5.
-
How you will prevent repainting.
-
How you will ensure tester/live consistency.