Grid Assistant Expert Advisor
Info
The Grid Assistant Expert Advisor is a Expert Advisor for MetaTrader 4 that semi-automatic grid assistant expert advisor designed for placing and managing grids. This Expert Advisor provides a set of buttons for easy grid management:- "Buy Stop" - Open a grid of buy stop pending orders.
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 Expert Advisor
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 Expert Advisor designed for placing and 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: Semi-HFT Grid Bot: Two-Sided Martingale Grid with Basket Take Profit - another powerful expert for MetaTrader 4 traders.
Semi-automatic grid assistant Expert Advisor designed for placing and managing grids.Also recommended: moving average grid ea - similar expert with strong performance on MetaTrader 4.
This Expert Advisor provides a set of buttons for easy grid management:
- "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.
- "Trail Profit" - Trail profit of all positions starting from the specified profit level.
Expert Settings:
- OrdersBuyStop - Number of orders in the Buy Stop grid.
- OrdersSellStop - Number of orders in the Sell Stop grid.
- OrdersBuyLimit - Number of orders in the Buy Limit grid.
- OrdersSellLimit - Number of orders in the Sell Limit grid.
- StepBuyStop - Step between orders in the Buy Stop grid.
- StepSellStop - Step between orders in the Sell Stop grid.
- StepBuyLimit - Step between orders in the Buy Limit grid.
- StepSellLimit - Step between orders in the Sell Limit grid.
- Lot - Lot size of the first order based on the price. Subsequent order lot sizes are calculated using a formula.
- LotPlus - Addition to the initial lot size. For example:
Lot = 0.1
LotPlus = 0.1
First order: 0.1
Second order: 0.1 + 0.1 = 0.2
Third order: 0.2 + 0.1 = 0.3
Fourth order: 0.3 + 0.1 = 0.4
- FirstLevel - Distance from the price to the first order. If set to 0, orders are opened at the stop level. This can be adjusted in the panel.
Profit Taking Methods:
- ProfitClose - Profit in the deposit currency to close the grid. For example, if set to $100, the grid will close when the total profit reaches $100.
- ProfitStart - Profit in the deposit currency to start trailing. For instance, set to $50.
- TrailClose - Close when profit decreases by a certain amount. For example, set to $20. If profit reaches $50, trailing is activated, and if profit decreases to $30, the grid is closed with a profit of $20.
Features of Closing Orders:
The EA first attempts to close orders by opening opposite ones, then closes market positions and pending orders.
The EA can be tested and optimized in the Strategy Tester, but only in visual mode, as it does not automatically press buttons.
You may also like: 204060 Program AI Grid System - 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.