Specification
📢 Project Title:MT5 Expert Advisor (EA) – Advanced Renko Strategy (Full Automation)
📄 Project Description:I want to develop a fully automated MT5 Expert Advisor (EA) based on my existing TradingView Renko strategy.I already have a working Pine Script that generates Buy/Sell alerts with ATR and other logic. Now I need the same strategy to be fully converted into MT5 EA with built-in Renko logic (no external indicator).🎯 Core Requirements:
1) Renko SystemEA must have internal Renko calculationBox size must be user customizable (input)All logic must work on Renko brick close onlyRenko should work on tick-by-tick price movement (not time-based)
2) EMA SetupEMA Fast → Default 9 (editable)EMA Slow → Default 15 (editable)EMA Filter → Default 44 (ON/OFF option)
3) Directional Trading LogicBuy Mode:EMA 9 > EMA 15 → Only BUY trades allowedIf SELL signal appears → Only close BUY (no reverse entry) Sell Mode:EMA 9 < EMA 15 → Only SELL trades allowedIf BUY signal appears → Only close SELL (no reverse entry)
4) Entry ConditionsBUY:EMA 9 > EMA 15Minimum 2 bullish Renko bricksIf EMA 44 filter ON → brick must close above EMA 44SELL:EMA 9 < EMA 15Minimum 2 bearish Renko bricksIf EMA 44 filter ON → brick must close below EMA 44
5) Stop Loss (Selectable Mode)User must be able to select ONE option:Option A: Opposite Box SL2 opposite Renko bricks → Close tradeOption B: EMA SL (9 & 15)Sell: Brick closes above EMA 9 & EMA 15 → CloseBuy: Brick closes below EMA 9 & EMA 15 → Close
6) Special Rule – EMA SL ActivationEMA SL should activate only after 1:1 Risk-Reward is achievedBefore 1:1 → EMA SL should remain inactive
7) Risk-Reward (RR)Configurable:1:11:21:3
8) Trailing Profit Booking (Important)Inputs:RR Target (e.g., 1:3)Reverse Box CountPartial Exit %Final Exit Mode:EMA basedReverse signalLogic:When RR target is reached → activate trailingAfter defined reverse Renko boxes → partial exitRemaining quantity exit based on selected final exit condition
9) Max Drawdown ControlInput: Max Drawdown %If total loss reaches limit → EA must stop taking new trades
10) Pyramiding SystemON/OFF optionLogic:Base lot (user input)After loss → increase lot (1 → 2 → 4 → …)Inputs:Max Pyramiding StepsLot Multiplier (default 2x)Rules:After profit → reset to base lotStop increasing after max steps
11) Execution RulesAll entries and exits must be based on Renko brick closeNo execution on incomplete brick
12) Logging / TrackingEA should track:EntryExitSLPartial exitDrawdown stop
💡 Expected Result:Fully automated EA with accurate Renko behaviorSame logic as TradingView strategyStable execution with proper risk control🚀
Developer Requirement:Strong experience in MQL5 / MT5 EA developmentExperience with Renko logic implementationAbility to handle advanced trade management systems