MT4 Expert Advisor (Renko-Based)

Specification

Overview
I am looking for an experienced MQL4 developer to create a Renko Candle Expert Advisor (EA) for MetaTrader 4 that functions on offline Renko charts. The EA will execute trades based on consecutive same-color Renko candles and a trend direction filter using a Simple Moving Average (SMA). This EA must strictly follow Renko candle logic and not time-based price bars.


⚙️ Core Functionality

🔁 1. Trade Entry Logic

  • The EA must check for 2 or 3 consecutive Renko candles of the same color (based on input setting: EntryOnCandle = 2 or 3).
  • Once the condition is met, the EA should:
    • Open a trade at the open of the next Renko candle in the same direction.

Entry Rules:

  • Buy Trade:
    • If the last 2 or 3 Renko candles are Green (Bullish) → Open Buy at the open of the next Green candle.
  • Sell Trade:
    • If the last 2 or 3 Renko candles are Red (Bearish) → Open Sell at the open of the next Red candle.
  • Only one trade per valid signal should be executed.

📈 2. Trend Filter (Optional) The EA should have an optional trend filter based on a Simple Moving Average (SMA).

Inputs:

  • UseTrendFilter = true/false
  • TrendMAPeriod = integer (SMA period)

Logic:

  • If UseTrendFilter = true:
    • Buy trades are allowed only if price > SMA(TrendMAPeriod)
    • Sell trades are allowed only if price < SMA(TrendMAPeriod)

🟡 Important Note:
SMA crossover must not be used as a signal for trade entry.
It is only a directional filter to determine if buy/sell trades are allowed.
Actual trade signals must still be based on Renko candle conditions only.


🔄 3. Trade Management – Close on Opposite Signal

Input:

  • CloseOnNextEntry = true/false

Logic:

  • If CloseOnNextEntry = true:
    • Close the current open trade when a valid opposite Renko signal appears (based on EntryOnCandle setting).
    • Even if the opposite trade is blocked by the trend filter, still close the current trade.
    • Only place the new opposite trade if allowed by the trend filter.

4. Trading Hours Filter (also add true and false)

Inputs:

  • StartHour = int (e.g., 8 for 08:00)
  • EndHour = int (e.g., 20 for 20:00)

Logic:

  • EA should only allow new entries within the defined time range, using the broker's server time.
  • No new trades should be initiated outside this range.
  • Existing trades may continue to run and be closed as per logic above.

⚙️ 5. General Settings

  • LotSize – Define fixed lot size for orders.
  • StopLoss – SL in pips (optional, if set > 0).
  • TakeProfit – TP in pips (optional, if set > 0).
  • Only one trade per signal.
  • Prevent multiple entries on the same Renko candle.

🆕 🔁 6. Persistent Signal Hold (Missed Entry Recovery)
To handle cases where trades are skipped due to high volatility, the EA should remember a valid signal for a limited number of Renko candles, and place the trade if the condition remains valid during that time.

Inputs:

  • MaxSignalHoldCandles = 3 — Number of Renko candles to hold and reuse a missed signal.

Logic:

  • When a valid trade signal occurs but no trade is executed (e.g., due to volatility), set a flag to remember the signal.
  • If the same direction candles continue forming (and all filters allow), the EA should place the trade on the next available candle.
  • After MaxSignalHoldCandles, the signal is discarded.
  • Once a trade is placed, the signal is cleared.

Purpose:
This ensures that missed signals during fast moves are still acted upon if the market direction remains unchanged shortly after.


 

🔒 7. Spread Control

Inputs:

  • EnableSpreadControl = true/false
  • MaxAllowedSpread = 20 (points)
  • DelayEntryIfSpreadHigh = true/false

Logic:

  • If spread higher than MaxAllowedSpread when a valid signal appears:
    • No trade will be placed.
    • If DelayEntryIfSpreadHigh = true, EA will hold the signal up to MaxSignalHoldCandles.
    • If spread returns to acceptable range and signal remains valid and no another trade, the trade is placed.
    • Otherwise, the signal is discarded.

Purpose: Avoids poor trade entries during high spread and allows missed signals to be re-entered if conditions normalize.

 

📎 Technical Requirements

  • EA must work on Renko offline charts, not on time-based charts.
  • All logic should be applied based on Renko bricks/candles, not standard candles.
  • Code must be clean, optimized, and well-commented for future edits or enhancements.

📩 Deliverables

  • Final .mq4 and compiled .ex4 files.
  • Source code must be fully open and not protected or obfuscated.
  • Documentation for input parameters and basic usage.

🧪 Optional (If feasible)

  • On-chart labels (current trend direction, active trade, etc.)
  • Alerts on new trade signals (popup, email, push notifications)
Trade logging to file or terminal

Responded

1
Developer 1
Rating
(613)
Projects
953
46%
Arbitration
30
40% / 33%
Overdue
95
10%
Free
Published: 6 codes
2
Developer 2
Rating
(4)
Projects
7
0%
Arbitration
3
67% / 33%
Overdue
1
14%
Working
3
Developer 3
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(5)
Projects
7
0%
Arbitration
4
25% / 75%
Overdue
0
Free
Similar orders
Modification 30+ USD
Hello I need a developer who can modify my ea. the ea should not open trades when stop loss is hit or trailing stop is hit and wait for the next signal to begin opening trades again. The ea keeps opening trades after stop loss or trailing stop is hit using the old signal making it less profitable. The developer should ensure the news filter is working correctly with options of lot size, trailing start, step, and stop
I want to a professional developer who is expert in creating the EA using Heikin Ashi candles. I am already having a simple trading view strategy, and just want to convert it to MT4 bot for auto execution of orders. Option for Changing SL and TP percentage in MT4 required. All other is mentioned in my simple strategy. [attached in txt file] Note: 1. The developer should back test the strategy on MT4 before accepting
I'm looking for a skilled MQL4 developer to create both an Expert Advisor (EA) and a Custom Indicator based on my Elite Sniper Strategy . The solution is for MetaTrader 4 , not MT5. Strategy Rules: 1. Trend Direction Confirmation Price must be above (for buys) or below (for sells) the 200 EMA on the current timeframe. The D1 (daily) EMA must match the direction (e.g., both trending up for buys). 2. Momentum
Existing MQL5 EA uses MA and Smoothed Heiken Ashi for entry conditions. Architectural design is as follows: 1. Modified smoothed HA indicator to write/update global variable to indicate direction change which is picked up by the EA. 2. 21 period LWMA used to confirm trend direction for entry. After reading articles on MQL5 (see especially "Neural Networks for Algorithmic Trading" by Dmitriy Gizlyk ) I have included
I’m looking for a skilled MQL5 developer with strong experience in Forex trading and a proven, profitable strategy to build a fully automated trading bot (Expert Advisor) for the MetaTrader 5 (MT5) platform that work on all time frames. Must be able to open lot size of 0.01 to 99.00 trading forex, currency pairs, indices, crypto currencies also precious metals. Once starts the project i will explain in detail
Fast 1 30 - 150 USD
Job Title: MT5 Expert Advisor for ICT Strategy with Fair Value Gap and Risk Management Job Description: I’m looking for a skilled MQL5 developer to create an MT5 Expert Advisor (EA) based on an ICT-style strategy that trades XAUUSD using multi-timeframe market structure and Fair Value Gap detection. Key features: 4H market direction using BOS/CHOCH 2H/1H detection of FVGs (gap between candle 1’s high and candle 3’s
Hi programmer, create me the best ever trading robot that works on all brokers and platforms MT4 & MT5 works on all timeframes, must be able to open lot size of 0.01 to 5.00 trading forex, currency pairs,indices,crypto currencies also precious metals.The bot should be able to open 500 positions just in 10minutes 99.9% accurate buy and sell 100% automated hands free, trading robot auto TP & SL should able to trade
I’m looking for a skilled MQL5 developer with strong experience in Forex trading and a proven, profitable strategy to build a fully automated trading bot (Expert Advisor) for the MetaTrader 5 (MT5) platform. The ideal candidate should: Have a deep understanding of Forex markets, price action, and technical indicators. Be able to recommend or provide a successful trading strategy that can be coded into the bot
Create an EA based on trend following where entries are triggered on new highs and lows for the day based on 15 min candles. Include an input to limit the number of entries, also EA should trade 2 pairs xauusd and u30
📌 Key requirements: Maintain 100% accuracy of logic: All entry/exit conditions, signal filtering, EMA, ADX, ATR calculations, and confirming candles must be implemented without changes. Signals must appear exactly as they do on TradingView: On the same candles, with the same direction. Optimization for Deriv indices Boom/Crash on the M1 timeframe. User-friendly interface: Ability to adjust parameters: EMA length

Project information

Budget
36+ USD
Deadline
from 1 to 2 day(s)

Customer

Placed orders1
Arbitrage count0