grid assistant
Info
The grid assistant is a Expert Advisor for MetaTrader 4 that semi-automatic grid assistant the expert advisor is designed for placing managing grids. expert buttons "buy stop" — open a grid of buy stop pending orders "sell stop" — open a grid of sell stop pending orders "buy limit" — open a grid of buy limit pending orders "sell limit" — open a grid of sell limit pending orders "close buy" — close the entire grid and all opened buy positions "close sell" — close the entire grid and all opened sell positions "close" — close the entire grid and all opened positions "tral profit" — trail profit of all positions starting from profitstart expert settingsordersbuystop — number of orders in buystop grid orderssellstop — number of orders in sellstop grid ordersbuylimit — number of orders in buylimit grid ordersselllimit — number of orders in selllimit grid stepbuystop — step between orders in buystop grid stepsellstop — step between orders in sellstop grid stepbuylimit — step between orders in buylimit grid stepselllimit — step between orders in selllimit grid lot — lot of the first order based on the price, lot sizes of subsequent orders are based on formula lotplus — addition to the initial lot sizefor example: lot = 0.
Usage
This tool is typically used for automated trading on major forex pairs and gold.
Platform
This Expert Advisor works exclusively on MetaTrader 4 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL4/Experts folder via File ? Open Data Folder in MetaTrader 4.
How to Install and Use grid assistant
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
semi-automatic grid assistant the expert advisor is designed for placing managing grids.
Typical Use Case
This Expert Advisor excels in automated trading and technical analysis on MetaTrader 4.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 4. Place the file in the MQL4/Experts folder and restart the terminal.
Description & Settings
Related: moving average grid ea - another powerful expert for MetaTrader 4 traders.
semi-automatic grid assistant
the expert advisor is designed for placing managing grids.
expert buttons
Also recommended: 204060 Program AI Grid System - similar expert with strong performance on MetaTrader 4.
"buy stop" — open a grid of buy stop pending orders
"sell stop" — open a grid of sell stop pending orders
"buy limit" — open a grid of buy limit pending orders
"sell limit" — open a grid of sell limit pending orders
"close buy" — close the entire grid and all opened buy positions
"close sell" — close the entire grid and all opened sell positions
"close" — close the entire grid and all opened positions
"tral profit" — trail profit of all positions starting from profitstart
expert settings
ordersbuystop — number of orders in buystop grid
orderssellstop — number of orders in sellstop grid
ordersbuylimit — number of orders in buylimit grid
ordersselllimit — number of orders in selllimit grid
stepbuystop — step between orders in buystop grid
stepsellstop — step between orders in sellstop grid
stepbuylimit — step between orders in buylimit grid
stepselllimit — step between orders in selllimit grid
lot — lot of the first order based on the price, lot sizes of subsequent orders are based on formula
lotplus — addition to the initial lot sizefor example:
lot = 0.1
lotplus = 0.1
first lot: 0.1
second: 0.1+0.1=0.2
third: 0.2+0.1=0.3
fourth: 0.3+0.1=0.4
firstlevel — distance from th price to the first order (if 0, opened at the stop level). it can be changed in the top right corner of the panel.2 profit taking methods:
profitclose — profit in the deposit currency (for example: set to $100, when the total grid profit reaches $100, it will be closed).
profitstart — profit in the deposit currency to start trailing, for example: $50.
tralclose — close when profit decreases, for example: $20.
profit reached 50, trailing was activated, profit continued to grow to 60, then rolled back to 20 and everything was closed with $40 of profit. the pending orders are deleted, and an alert with the "continue operation?" question pops up. if you answer ОК — grid is placed again.
features of closing orders
first, the ea attempts to close all orders by opposite ones, then closes the market positions and pending orders.
the ea can be tested and customized in the strategy tester, but strictly in visual mode, as the ea does not press buttons on its own!
You may also like: Order Management Assistant - excellent alternative for expert users on MetaTrader 4.
Source Code
#property copyright "robotfx"
#property link "https://robotfx.org"
#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"
/*
"buy stop" -
"sell stop" -
"buy limit"-
"sell limit" -
"close buy" -
.......
⚠ 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.