GDS Renko Trade Manager for MetaTrader 5
Info
The GDS Renko Trade Manager for MetaTrader 5 is a Expert Advisor for MetaTrader 5 that gds renko trade manager is an expert advisor for traders who open positions manually and seek systematic, transparent stop management. It monitors eligible positions on the chart symbol, constructs classic fixed-size Renko bricks from broker Bid ticks, and utilizes only completed bricks to update management thresholds.
Usage
This tool is typically used for automated trading on major forex pairs and gold.
Platform
This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use GDS Renko Trade Manager for MetaTrader 5
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
What this tool does
GDS Renko Trade Manager is an Expert Advisor for traders who open positions manually and seek systematic, transparent stop management.
Typical Use Case
This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.
Description & Settings
Related: Partial Close Multi TP Manager for MetaTrader 5 - another powerful expert for MetaTrader 5 traders.
GDS Renko Trade Manager is an Expert Advisor for traders who open positions manually and seek systematic, transparent stop management. It monitors eligible positions on the chart symbol, constructs classic fixed-size Renko bricks from broker Bid ticks, and utilizes only completed bricks to update management thresholds.Also recommended: Strategy Tester Report Parser for Deals and Trades - similar expert with strong performance on MetaTrader 5.
The EA does not generate entries, place pending orders, or automatically open positions. This initial release also does not include partial close or exit position modules, which will be added once broker-execution and restart cases are verified. Existing TP values are retained when SL is adjusted.
Main features
- Break-even: After N favorable completed bricks since position observation, the EA can move the Stop Loss toward the entry (with an optional brick-based offset).
- Renko trailing: After M favorable completed bricks, it proposes a trailing Stop Loss at a configurable distance from the best completed Renko close. Existing stops are never intentionally loosened.
- Manual position filter: By default, the EA verifies manually opened deals. Alternatively, manage positions with an exact positive Magic Number.
- Multi-position dashboard: Track separate BUY/SELL tickets, current broker-reported SL, progress, and thresholds. Pagination ensures usability with multiple positions.
- Renko inset: Display the last completed bricks inside the information panel; green/red colors indicate direction. The horizontal axis represents brick sequence, not candle time.
- Visual history replay: Bounded visual-only replay from broker tick history is checked against a saved stream checkpoint. Unverified reconstruction is not presented as matched history and does not affect the trading Renko engine.
- State/recovery safety: Terminal Global Variables hold Renko and per-position checkpoints. If tick data, state, or instance ownership is uncertain, the EA can suspend trade requests instead of silently rebuilding trading state.
Important before use
1. Use GDS_TM_MONITOR_ONLY initially; this is the default and sends no trade requests.
2. Active management requires an MT5 hedging account with enabled Algo Trading and GDS_TM_MANAGE_LIVE. When active, SL modifications are real broker requests on the account running the EA.
3. Set an initial protective Stop Loss manually. This manager does not set a stop immediately after entry and is not a comprehensive loss-limiting system.
4. A newly discovered position is observed from that moment forward. Historical favorable bricks before observation do not count toward management.
5. Reaching a brick threshold does not guarantee modification acceptance. Current price, spread, stop/freeze distance, market conditions, and broker permissions can prevent it. Confirm the actual SL in MT5 and check the Experts journal.
6. Do not attach multiple active copies to manage the same symbol/filter. A per-account/symbol/filter single-instance lock is used.
Selected inputs
| Input | Default | Purpose |
| --- | --- | --- |
| InpMode | GDS_TM_MONITOR_ONLY | Monitoring only, or enable SL management. |
| InpBrickSize | 2.0 | Renko brick size in price units, rounded if tick-aligned. Adapt to the symbol. |
| InpManualOnly | true | Track manually originated positions. |
| InpMagicFilter | 0 | Positive exact Magic Number when manual-only mode is disabled. |
| InpBEAfterBricks | 3 | Start break-even after N favorable completed bricks; 0 disables. |
| InpBEOffsetBricks | 0.0 | Optional offset for break-even level. |
| InpTrailStartBricks | 5 | Start Renko trailing after M favorable completed bricks; 0 disables. |
| InpTrailGapBricks | 2 | Distance behind the best favorable completed Renko close. |
| InpTrailStepBricks | 1 | Minimum proposed SL improvement, in bricks. |
| InpRecoveryMaxHours | 24 | Maximum time gap for state recovery. |
| InpShowDashboard | true | Display the information panel. |
| InpShowRenkoBricks | true | Show completed Renko bricks. |
| InpVisibleBricks | 28 | Number of bricks displayed (12–36). |
| InpReplayVisualTicks | true | Bounded, visual-only historical Bid-tick scan. |
| InpAvoidOneClickOverlap | true | Avoid overlap with MT5 One Click Trading controls. |
How Renko-based progress works
The manager constructs a shared classic Renko sequence for the symbol from broker Bid ticks. A completed reversal requires a two-brick movement in the opposite direction (standard fixed-brick convention). Large price jumps completing multiple bricks in one tick are processed sequentially. Trading progress is based on completed closes, not live candle shapes.
PEAK indicates the best favorable Renko movement from the saved first-observation reference. It is not the total bricks on screen or floating profit. The panel displays thresholds as MET when the brick count is reached, not confirming SL updates.
Compatibility and limitations
- Designed for MetaTrader 5, preferably on hedging accounts for position management. Active trading is disabled on unsupported account modes.
- Utilizes broker tick history; quote availability and tick continuity are essential.
- Existing positions are recognized, but brick progress starts on discovery, not at the original entry.
- Stops are evaluated on Bid/Ask quotes, symbol tick size, and stop/freeze rules. Broker execution may differ from requested levels.
- Closing a position at its Stop Loss may incur costs or slippage. The EA does not guarantee a zero-net result at break-even.
- The EA relies on broker-reported SL for stop existence; calculated targets and on-screen labels are not proof of execution.
- Does not provide a profitable entry strategy. No trading results are guaranteed.
Suggested first test
Attach to an MT5 chart, keep the default monitoring mode, and open a small manual position on a demo account with an initial protective SL. Observe the position's Renko PEAK progress and visual bricks. For a controlled test on a hedging demo account, enable live management and verify the actual SL change and Experts log after a favorable confirmed brick movement.
Release scope: break-even, trailing SL, manual/Magic filtering, dashboard, tick-based Renko, and state recovery. Future releases will include automatic entries, partial close, and reversal exit.
You may also like: Programmatically Attach Expert Advisors with Custom Inputs to MetaTrader 5 Charts - excellent alternative for expert users on MetaTrader 5.
Source Code
#property copyright "RobotFX"
#property version "1.000"
#property strict
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
enum ENUM_GDS_TM_MODE
{
GDS_TM_MONITOR_ONLY=0,
GDS_TM_MANAGE_LIVE=1
};
input ENUM_GDS_TM_MODE InpMode=GDS_TM_MONITOR_ONLY;
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.