GridTrendMultiplier MT4 Expert Advisor Users Guide
GridTrendMultiplier MT4 Expert Advisor Users Guide
EA for MT4
April 5, 2023
| Contents | ii
Contents
Chapter 5: Knowledgebase................................................................. 40
5.1 How to Download MT4......................................................................................................... 40
5.2 How to Download the Setup Application.............................................................................. 40
5.3 How to Install the GridTrendMultiplier EA............................................................................ 41
5.4 How to Upgrade the EA....................................................................................................... 43
5.5 How to Attach the GridTrendMultiplier Expert Advisor to a Chart....................................... 44
5.6 For Mac Users...................................................................................................................... 47
5.6.1 How to Download the Setup Application on Mac....................................................48
5.6.2 How to Install the GridTrendMultiplier EA on Mac.................................................. 49
5.6.3 How to make the Library folder visible on Mac.......................................................53
5.6.4 Download & Install the GridTrendMultiplier EA on Mac.......................................... 55
5.7 Buy or Sell Only Mode Grid................................................................................................. 61
5.8 MetaViewer dll could not be found....................................................................................... 63
5.9 GridTrendMultiplier Expert Advisor First Time Activation.................................................... 64
5.10 Frown Face Instead of Smiley Face After Attach............................................................... 68
5.11 What is the Leverage of My Account................................................................................. 69
5.12 How to Figure Out My Broker's GMT Offset?.....................................................................69
5.13 EA Is Not Starting Up After Attach to Chart....................................................................... 70
5.14 No Updates to Chart...........................................................................................................71
5.15 Enable Full Trade History For Grid P&L Calculations........................................................ 72
5.16 Grid Initial Tickets Not Found Message Box...................................................................... 73
5.17 Prompted for Access ID at Service Access Settings.......................................................... 74
5.18 How to Edit the EA Input Values........................................................................................75
5.19 Not Enough Memory For Bar History Or Indicator............................................................. 75
5.20 No Trades Due to Trade Disabled..................................................................................... 76
5.21 Backtest In Visual Mode Not Working................................................................................ 76
5.22 Backtest Not Working......................................................................................................... 77
5.23 Connection Down Message................................................................................................ 78
5.24 Suspended Message...........................................................................................................79
5.25 Computer Always-on........................................................................................................... 80
5.26 Backtest - MT4 no history data error messages.................................................................80
5.27 No Trades During Backtesting............................................................................................81
5.28 Visual Mode Checkbox Missing in Strategy Tester............................................................ 83
5.29 No Result in Optimization................................................................................................... 85
5.30 Step-by-step Installation of Expert4x EAs and Indicators................................................... 86
5.31 How to download an EA setup in VPS environment.......................................................... 91
5.32 How to enable JavaScript in your Internet Explorer......................................................... 103
5.33 How to Enable Download in your Internet Explorer..........................................................105
1
Copyright Notices
Copyright©2023 – Expert4x, all rights reserved. This eBook is intended for the purchaser’s personal
use only. No part of this eBook may be reproduced or transmitted in any form whatsoever, electronic,
or mechanical, including photocopying, recording, or by any informational storage or retrieval system
without expressed written permission from Expert4x.
Copyright©2023 EAfactory, all rights reserved. All title, including but not limited to copyrights, in
and to the GridTrendMultiplier EA and any copies thereof are owned by EAfactory or its suppliers.
All title and intellectual property rights in and to the content which may be accessed through use of
the GridTrendMultiplier EA is the property of the respective content owner and may be protected by
applicable copyright or other intellectual property laws and treaties. All rights not expressly granted are
reserved by EAfactory. For the full details please refer to the End-User License Agreement ("EULA").
| Getting Started with the GridTrendMultiplier EA | 6
Chapter
2
Getting Started with the GridTrendMultiplier EA
Getting Started provides a guided exploration of the GTM EA. It is geared for an audience that has little
or no knowledge of installing an MT4 EA. It walks the novice user through downloading and installing
the GTM EA.
4. Click on the Download EA Setup button to download the EA setup for the MT4 terminal.
5. Run the downloaded setup application. Select the MT4 instance through the setup wizard pages
to where you want the EA to be installed.
6. When the setup completes start the MT4 up. The GridTrendMultiplier EA entry should appear
under the Expert Advisors node in the Navigator window (View > Navigator)
The setup application lists the available MT4 instances. Select one or multiple of them for installation
target and click on the Next.
Note:
If you see an empty list then you probably need to install an MT4 first. In that case download
and run the MT4 setup application from your preferred broker's web site. After that run again
this EA setup application.
If you are an advanced user and you run the MT4 in portable mode from a custom location
then copy this EA setup application into the Data Folder of the MT4, then run the EA setup
application from that Data Folder. In order to find the Data Folder of the MT4 select the File >
Open Data Folder in the MT4's menu.
When the installation is complete start the MT4 up and check that the EA appears in the Navigator
window (View > Navigator):
| Getting Started with the GridTrendMultiplier EA | 9
Now everything is set up for the first activation of the GridTrendMultiplier Expert Advisor .
The following pictures demonstrate the first time activation of the GridTrendMultiplier Expert Advisor in
a few steps.
1. Drag & drop the GridTrendMultiplier Expert Advisor from the Navigator window (View >
Navigator) to a chart window and select the Common tab:
Note:
Ensure that the
• Allow live trading,
• Allow DLL import and
• Allow import of external experts
are ticked.
| Getting Started with the GridTrendMultiplier EA | 11
This lists the parameters of the EA where the operational aspect of the GridTrendMultiplier EA
can be set up. For more details see the GridTrendMultiplier EA Configuration Guide – for now
click on the OK button and let the EA start up with default settings.
Note:
At the very first time the EA may prompt for the Access ID to verify that the usage of
product is licensed.
The Access ID is pre-configured and is the same as the login name to the web support
site. Feel free to change your Access ID at the Web Support Centre and ensure not to
share it with anyone else. Enter the Access ID and click on the Save button:
Tip: If you do not remember your Access ID then click on the Help! What is my Access
ID? to see it on your Web Support Centre user profile.
The GridTrendMultiplier Expert Advisor has been attached to the chart. The smiley face in the top-right
corner shows that the initialisation of the GridTrendMultiplier Expert Advisor was successful and the
EA is now looking for trading opportunities.
See the smiley face in the corner:
In case of a problem getting the EA up and running please refer to the Knowledgebase section.
Chapter
3
System Requirements
Important: On broker accounts mandating the FIFO this configuration option must be set
before the first start of the EA. Late re-configuration of this option may result in FIFO related
trading issues. In this case the only resolution could be to close off all the trades of the ongoing
grid and start a new grid from scratch.
The Lot line shows Min:0.01 which tells that the minimum lot size requirement is 0.01 on this broker
account.
Chapter
4
GridTrendMultiplier EA Configuration Guide
The GridTrendMultiplier EA configuration guide.
In order to activate the GridTrendMultiplier EA attach it to a chart window – for more details see
GridTrendMultiplier EA First Time Activation section.
The GridTrendMultiplier EA manages only those tickets (a.k.a positions) on the account which belong
to the GridTrendMultiplier EA: every order submitted to the account is marked with the Magic Number
and, in return, only those tickets on the account will be considered by the GridTrendMultiplier EA which
are marked with this Magic Number.
In general it is recommended to run on an account one EA at a time. This helps understanding the
ongoing trades and troubleshoot situation if and when needed.
While this maybe feasible for demo accounts this may not be feasible for live accounts where there
could be the need to execute multiple expert advisors on the same account at the same time.
Using multiple expert advisors on the same account is only viable if each and all expert advisor will
follow the above Magic Number principle and they manage only their own tickets on the account.
IMPORTANT: If you plan to use multiple expert advisors (other than the GridTrendMultiplier EA)
on the same account please ensure upfront with the expert advisor providers that their EA's are
suitable for that as per the above.
If you plan to use multiple GridTrendMultiplier EA's on the same account at the same time please
ensure that the Magic Number is set to different and unique number for each chart of the same market.
Here are few examples:
Market MagicNumber
Grid Trading & The EA performs start of new grids and grid trades as normal according
Planning Mode to its configuration. On top of the running grid trades the Forecast Tool
is available to visualize the impact of future price point. The Forecast
Tool takes into consideration the starting point of the existing buy and
sell grids and their open positions.
Planning Mode Only The EA does not enter any new trades, but still closes any existing
(No New Trade open grid trades when they reach their next grid level in this mode. The
Entries) Forecast Tool is available for planning and analysis purposes while no
trading is performed. If there were any existing grid trades on the pair
of the chart then those are considered by the Forecast Tool.
| GridTrendMultiplier EA Configuration Guide | 18
Note: This feature can be configured in combination of any other grid exit trigger at the
Combined Profit & Risk Settings section. The EA will track each of them independently and will
trigger the close-out when any one of the exit conditions is fulfilled.
Example:
• Target Profit Amount is set to 100
The EA trades buy and sell grids until the sum of the closed and floating tickets' profit reaches 100.
Percent
Profit
Target
| GridTrendMultiplier EA Configuration Guide | 19
Note: This feature can be configured in combination of any other grid exit trigger at the
Combined Profit & Risk Settings section. The EA will track each of them independently and will
trigger the close-out when any one of the exit conditions is fulfilled.
Example:
• Target Profit Percent is set to 2
• Account balance is 5000
The EA trades buy and sell grids until the sum of the closed and floating tickets' profit reaches 5000 x
2% = 100.
Pips
Profit
Target
Target Profit Pips
Combined buy and sell profit target in pips by the EA trades. The EA will keep trading the buy and sell
grids, cash-in at grid levels, until the overall profit of cashed-in and floating buy and sell trades reaches
this number of pips. When this combined target is reached then all open buy and sell trades get closed
off and (if Reentry After Grid Closure is set to Reentry Allowed) a new cycle of grid trades is started off.
Note: This feature can be configured in combination of any other grid exit trigger at the
Combined Profit & Risk Settings section. The EA will track each of them independently and will
trigger the close-out when any one of the exit conditions is fulfilled.
Example:
• Target Profit Pips is set to 100
The EA trades buy and sell grids until the sum of the closed and floating tickets' profit reaches 100
pips.
Note: In the case of 5-digit data feed (a.k.a fractional pips) 1 pips is equal to 10 points. The EA
expects this input in pips, not in points.
Note: This feature can be configured in combination of any other grid exit trigger at the
Combined Profit & Risk Settings section. The EA will track each of them independently and will
trigger the close-out when any one of the exit conditions is fulfilled.
Example:
• Max Loss Amount is set to 100
The EA trades buy and sell grids until the sum of the closed and floating tickets' loss reaches 100.
| GridTrendMultiplier EA Configuration Guide | 20
Percent
Loss
Max
Max Loss Percent
Combined buy and sell maximum loss as a percentage of balance decrease by the EA trades. The EA
will keep trading the buy and sell grids, cash-in at grid levels, until the overall loss of cashed-in and
floating buy and sell trades reaches the percent drop of account balance. When this combined loss
is reached then all open buy and sell trades get closed off and (if Reentry After Grid Closure is set to
Reentry Allowed) a new cycle of grid trades is started off.
Note: This feature can be configured in combination of any other grid exit trigger at the
Combined Profit & Risk Settings section. The EA will track each of them independently and will
trigger the close-out when any one of the exit conditions is fulfilled.
Example:
• Max Loss Percent is set to 2
• Account balance is 5000
The EA trades buy and sell grids until the sum of the closed and floating tickets' loss reaches 5000 x
2% = 100.
Pips
Loss
Max
Max Loss Pips
combined buy and sell maximum loss in pips by the EA trades. The EA will keep trading the buy and
sell grids, cash-in at grid levels, until the overall loss of cashed-in and floating buy and sell trades
reaches this number of pips. When this combined loss is reached then all open buy and sell trades get
closed off and (if Reentry After Grid Closure is set to Reentry Allowed) a new cycle of grid trades is
started off.
Note: This feature can be configured in combination of any other grid exit trigger at the
Combined Profit & Risk Settings section. The EA will track each of them independently and will
trigger the close-out when any one of the exit conditions is fulfilled.
Example:
• Max Loss Pips is set to 100
The EA trades buy and sell grids until the sum of the closed and floating tickets' loss reaches 100 pips.
Note: In the case of 5-digit data feed (a.k.a fractional pips) 1 pips is equal to 10 points. The EA
expects this input in pips, not in points.
Important: When this Close Grid On or Above Price is configured with a price then the EA
will not start a new grid after this type of closure, regardless of the selected Reentry After Grid
Closure option.
| GridTrendMultiplier EA Configuration Guide | 21
Note: This feature can be configured in combination with any other grid exit trigger at the
Combined Profit & Risk Settings section. The EA will track each of them independently and will
trigger the closeout when any one of the exit conditions is fulfilled.
Examples:
• Close Grid On or Above Price is set to 0
There is no upper price limit to running the grid trades, i.e. this feature is turned off.
• Close Grid On or Above Price is set to 1.2345
The EA trades buy and sell grids until the actual price reaches, or goes above the 1.2345 value.
When the 1.2345 is reached the EA closes off all open grid trades and no new grid is started off.
Price
Below
or
On
Grid
Close
Close Grid On or Below Price
The lower price limit for running the grid. When the actual price reaches or goes below this level the EA
closes off all open grid trades, regardless of the overall grid profit and loss value. After the grid closure
the EA does not start up a new grid even if the price goes back above this Close Grid On or Below
Price.
Important: When this Close Grid On or Below Price is configured with a price value then the
EA will not start a new grid after this type of closure, regardless of the selected Reentry After
Grid Closure option.
Note: This feature can be configured in combination with any other grid exit trigger at the
Combined Profit & Risk Settings section. The EA will track each of them independently and will
trigger the closeout when any one of the exit conditions is fulfilled.
Examples:
• Close Grid On or Below Price is set to 0
There is no lower price limit to running the grid trades, i.e. this feature is turned off.
• Close Grid On or Below Price is set to 1.2345
The EA trades buy and sell grids until the actual price reaches, or goes below the 1.2345 value.
When the 1.2345 is reached the EA closes off all open grid trades and no new grid is started off.
Attention: It may take some time before the buy side and the sell side loss amounts would becom
Trade With Trend The EA allows for new trade only in that direction which has the less
Only number of open grid trades. By enlarge this means that the new trades
will be entered in the direction of a prevailing trend.
Prune Highest Loss The EA allows for new trade in any direction, but also closes off the
Trade previous open trade with the highest loss amount in the direction with
the higher number of open trades when the max gap is breached.
Examples:
• Max Gap of Buy vs Sell Open Trades is set to 6
• Max Gap Resolution is set to Trade With Trend Only
• There are more open buy trades in place than open sell trades.
The EA trades buy and sell grids until the gap between the number of open buy and sell trades
reaches 6. Because there are more open buy trades than sell trades, only an upcoming new sell trade
entry is considered and will be performed, but no upcoming buy trade is considered. In a falling market
this will allow for sell trades but not for buy trades.
• One open BUY where the price is the most distant from its entry point.
Typically the pair would consists of one open trade in one direction with the most losses and another
open trade in the opposite direction with the most losses.
There could be different number of buy and sell trades open.
Example 1: I want the EA to start closing a hedged buy and sell pair of open trades when there are
more than 5 open buy and sell pair of trades.
Here is an EA configuration to achieve the above:
1. Target Max Count of Buy or Sell Open Trades = 5
Based on the above setting, when there are 6 pairs of open buy and sell trades on the account then the
EA closes 1 pair, resulting in 5 pairs left open on the account after the pruning.
Example 2: I have 5 buys and 2 sells open on the account. I want the EA to close the hedged pair of
open trades when there is more than 1 pair.
Here is an EA configuration to achieve the above:
1. Target Max Count of Buy or Sell Open Trades = 1
After the above setting the EA closes 1 hedged pair of open trades, leaving 4 buy and 1 sell open
trades on the account.
Note: The EA does not close further more trades at this stage, because the Target Max is set
to 1. Closing another pair would result in 3 buys and 0 sells which would be less sells than the
target of 1.
Position Sizing
EA
This
for
Reserved
Amount
Equity
Equity Amount Reserved for This EA
The amount of money allocated for this EA for trading purposes. This reserved amount should be
less than the account equity. Also, when multiple EAs are running on the account, their total reserved
amounts should be less than the account equity.
Example: I want the EA to trade $2000 part or share of the account equity.
Here is an EA configuration to achieve the above:
1. Equity Amount Reserved for This EA = 2000
Level
Warning
Drawdown
Drawdown Warning Level
The drawdown level, as a percentage of the Equity Amount Reserved for This EA, when the EA should
display a warning message. When the actual drawdown breaches this level then it displays a warning
message in its dasboard in the chart area. The EA carries on with the trading as usual even when this
drawdown level has been breached.
Example: I want the EA to trade $2000 part of the account equity and warn me with a message in the
chart area when the drawdown becomes 30% or more of this $2000.
Here is an EA configuration to achieve the above:
1. Equity Amount Reserved for This EA = 2000
2. Drawdown Warning Level = 30
Method
Sizing
Position
Position Sizing Method
The position sizing mechanism used for new trades at grid level entry.
| GridTrendMultiplier EA Configuration Guide | 24
Position Description
Sizing Method
Manual Lot The lots for the new position is not calculated by the EA, instead it is fixed
Size and set to the user-defined value from BUY/SELL Lots for 'Manual Lot
Size'.
The position sizing calculation takes place at the time of market entry, when all the entry criteria are
met.
Percent
Risk
Position
Position Risk Percent
Determines the risk amount allocated to a new grid level trade as a percent of the broker account
value. For more details see the Position Sizing Method.
| GridTrendMultiplier EA Configuration Guide | 25
Note: This BUY/SELL Stop Loss facility is provided for safety purposes. Should the connection
to the broker go down, or during power outage the server side can have this stop loss set up to
limit potential losses until normal EA operation resumes.
gap scaling), however the exit of the open trades are triggered only when they reach their BUY/SELL
Take Profit pips target.
Note: The lot scaling is applied to both the Manual Lot Size and the Percent of Account ... lot
sizing options. See Position Sizing.
See examples at BUY/SELL Counter-Trend Gap Scaling Percent and BUY/SELL Counter-Trend Lot
Scaling Percent.
Percent
Scaling
Gap
Counter-Trend
BUY/SELL
BUY/SELL Counter-Trend Gap Scaling Percent
When the market price goes against the direction of the grid trades the Gap Size is scaled up or down.
The scaling starts when the price moves against the initial grid trade by the configured grid level and
applied to all the subsequent levels.
The scaling is applied based on the positive or negative value of this BUY/SELL Counter-Trend Gap
Scaling Percent parameter:
• Positive BUY/SELL Counter-Trend Gap Scaling Percent value, higher than zero: the gap size is
scaled UP and it becomes bigger.
• Zero BUY/SELL Counter-Trend Gap Scaling Percent value: the gap size is not scaled and it
remains the same.
• Negative BUY/SELL Counter-Trend Gap Scaling Percent value, less than zero: the gap size is
scaled DOWN and it becomes smaller.
Example: I want to start with 20 pips gap size and I want the EA to start scaling up the gap size when
the price moves against the grid by 2 or more grid levels. In that case I want to make bigger the gap
sizes by 50%, compounding for each subsequent level.
Here is an EA configuration to achieve the above:
1. BUY/SELL Gap Size = 20
2. BUY/SELL Counter-Trend Scaling After Grid Level = 2
3. BUY/SELL Counter-Trend Gap Scaling Percent = 50
Below shows the according gaps to be used for the BUY and the SELL grid trading directions:
Up 5 20 67.5
Up 4 20 45
Up 3 20 30
Up 2 20 20
Up 1 20 20
Start 20 20
Down 1 20 20
Down 2 20 20
| GridTrendMultiplier EA Configuration Guide | 28
Down 3 30 20
Down 4 45 20
Down 5 67.5 20
Example: I want to start with 20 pips gap size and I want the EA to start scaling down the gap size
when the price moves against the grid by 2 or more grid levels. In that case I want to make smaller
the gap sizes by 30%, compounding for each subsequent level, however I do not want the gap size to
become less than 10 pips.
Here is an EA configuration to achieve the above:
1. BUY/SELL Gap Size = 20
2. BUY/SELL Counter-Trend Scaling After Grid Level = 2
3. BUY/SELL Counter-Trend Gap Scaling Percent = -30
4. Minimum Grid Gap Size = 10
Below shows the according gaps to be used for the BUY and the SELL grid trading directions:
Up 5 20 10
Up 4 20 10
Up 3 20 14
Up 2 20 20
Up 1 20 20
Start 20 20
Down 1 20 20
Down 2 20 20
Down 3 14 20
Down 4 10 20
Down 5 10 20
Percent
Scaling
Lot
Counter-Trend
BUY/SELL
BUY/SELL Counter-Trend Lot Scaling Percent
When the market price goes against the direction of the grid trades the Lot Size is scaled up or down.
The scaling starts when the price moves against the initial grid trade by the configured grid level and
applied to all the subsequent levels.
The scaling is applied based on the positive or negative value of this BUY/SELL Counter-Trend Lot
Scaling Percent parameter:
• Positive BUY/SELL Counter-Trend Lot Scaling Percent value, higher than zero: the lot size is
scaled UP and it becomes bigger.
• Zero BUY/SELL Counter-Trend Lot Scaling Percent value: the lot size is not scaled and it
remains the same.
• Negative BUY/SELL Counter-Trend Lot Scaling Percent value, less than zero: the lot size is
scaled DOWN and it becomes smaller.
Example: I want to start with 0.10 lot size and I want the EA to start scaling up the lot size when the
price moves against the grid by 2 or more grid levels. In that case I want to make bigger the lot sizes by
50%, compounding for each subsequent level.
Here is an EA configuration to achieve the above:
| GridTrendMultiplier EA Configuration Guide | 29
Up 5 0.10 0.34
Up 4 0.10 0.23
Up 3 0.10 0.15
Up 2 0.10 0.10
Up 1 0.10 0.10
Start 0.10 0.10
Down 1 0.10 0.10
Down 2 0.10 0.10
Down 3 0.15 0.10
Down 4 0.23 0.10
Down 5 0.34 0.10
Example: I want to start with 0.10 lot size and I want the EA to start scaling down the lot size when
the price moves against the grid by 2 or more grid levels. In that case I want to make smaller the lot
sizes by 30%, compounding for each subsequent level.
Here is an EA configuration to achieve the above:
1. Position Sizing Method = Manual Lot Size
2. BUY/SELL Lots for 'Manual Lot Size' = 0.10
3. BUY/SELL Counter-Trend Scaling After Grid Level = 2
4. BUY/SELL Counter-Trend Lot Scaling Percent = -30
Below shows the according lots to be used for the BUY and the SELL grid trading directions:
Up 5 0.10 0.03
Up 4 0.10 0.05
Up 3 0.10 0.07
Up 2 0.10 0.10
Up 1 0.10 0.10
Start 0.10 0.10
Down 1 0.10 0.10
Down 2 0.10 0.10
Down 3 0.07 0.10
Down 4 0.05 0.10
Down 5 0.03 0.10
| GridTrendMultiplier EA Configuration Guide | 30
Note: The EA observes the minimum and maximum lot sizes allowed by the broker for the
market and automatically applies them if and when necessary.
Important: The SELL side has its own EA parameter to control the boundary of the sell
grid, independent from the BUY side.
Important: The BUY side has its own EA parameter to control the boundary of the buy
grid, independent from the SELL side.
Price
Above
or
On
Buy/Sell
New
No
BUY/SELL
BUY/SELL No New Buy/Sell On or Above Price
The maximum price limit to enter new grid trades. When the actual price approaches or goes above
this level the EA does not open new trades at the corresponding grid levels. Once the actual price
reverses back below this maximum price limit the EA resumes opening new grid trades as per the
normal grid trading rules.
Examples:
• SELL No New Sell On or Above Price is set to 0
There is no upper price limit to the sell grid trades, i.e. this feature is turned off.
Important: The BUY side has its own EA parameter to control the boundary of the buy
grid, independent from the SELL side.
Important: The SELL side has its own EA parameter to control the boundary of the sell
grid, independent from the BUY side.
Tip: For examples how to configure the EA in buy only or sell only mode see the Buy or Sell
Only Mode Grid topic.
Level Sensitivity
Level Sensitivity
Allocates a pip range at the grid levels the price action must fall within to trigger order management
actions. If the price crosses the grid level and falls within this range beyond the level then the EA will
close off appropriate open tickets and open new tickets for the level. However if the price crosses
the grid level and jumps over the range (e.g. price gapping at news announcements) then the
EA will suppress any level specific order actions. This is to avoid unwanted effects of quick price
movements that would put the integrity of the grid at risk. Next time when the price crosses the grid
level “appropriately” the order management actions will be performed.
| GridTrendMultiplier EA Configuration Guide | 33
Tip: Set this minimum gap size higher than the Max Spread to Allow Trade to avoid immediate
position closure after a new entry.
Normal Position No FIFO specific lot adjustment takes place. New trade's lot sizing is
Sizing determined by the Position Sizing.
Apply FIFO When the market price goes against the existing grid trade, i.e. during
Adjustments pullback, the EA alternates the lot size for the new trades around the
configured manual lot size. This will results in a sequence of trades
with lot sizes like 0.09, 0.11, 0.08, 0.12 etc based on a starting manual
lot size of 0.10. This varying lot sizes will allow the closure of these
trades in reversed order when the pullback turns around.
The minimum lot size stepping allowed by the broker is used for the
purpose of FIFO adjustments. Some brokers and markets allow for
as small as 0.01 lot size stepping, but some only allows for 0.10
or even 1.00 lot stepping. The Manual Lot Size should always be
above the broker required minimum lot size plus a couple of times
the minimum lot size stepping.
Examples:
| GridTrendMultiplier EA Configuration Guide | 34
Colour
Level
Below
Close
Grid
Grid Close Below Level Colour
The colour of the horizontal line on the chart marking the lower limit for grid trades if configured at
Close Grid On or Below Price parameter.
Colour
Level
Below
BUY/SELL
New
No
No New BUY/SELL Below Level Colour
The colour of the horizontal line on the chart marking the lower limit for BUY grid trades if configured at
No New Buy On or Below Price parameter.
Colour
Level
Above
BUY/SELL
New
No
No New BUY/SELL Above Level Colour
The colour of the horizontal line on the chart marking the upper limit for SELL grid trades if configured
at No New Sell On or Above Price parameter.
Colour
Text
Summary
Closeout
Grid
Grid Closeout Summary Text Colour
The colour of the text on the chart describing in a single line summary of the grid closure. The grid gets
closed off when one of the exit conditions configured at the section Combined Profit & Risk Settings
gets fulfilled.
Selects the colours for the various graphical elements presented by the Forecast Tool in the chart.
Future Target Price The colour of the price marker for the planned grid closeout.
Colour Drag&Drop this marker in the chart to highlight the planned closeout
price for the grid.
| GridTrendMultiplier EA Configuration Guide | 37
Initial Entry Price The colour of the price marker for the planned grid start. Drag&Drop
Colour this marker in the chart to highlight the planned entry price for the
new grid.
Realized Existing Colour represents trades which are already open as part of the
Trade Colour ongoing grid, and get closed before the planned closeout at the
future price.
Open Existing Colour represents trades which are already open as part of the
Trade Colour ongoing grid, and remain open by the planned closeout at the future
price.
Realized Future Colour represents trades to be entered and also closed off as price
Trade Colour moves to the planned closeout at the future price.
Open Future Trade Colour represents trades to be entered but remaining open as price
Colour moves to the planned closeout at the future price.
Note: The EA always deals with the fractional pip values therefore there is no need to increase
the 'pip' values for brokers with 1, 3 or 5-digit data feed.
Examples:
| GridTrendMultiplier EA Configuration Guide | 38
The EA
scales
Auto the 100
Scale 'pips'
Index for Index parameter
market Markets to market
US30 100 26123.90 26023.90
with price of
$1.00 unit Alternative: 100.00
Always US dollar
Scale units (i.e.
100.00
points)
Auto
Scale The EA
FOREX for Index keeps the
pair with Markets
EURUSD 100 1.13412 1.12412 100 'pips'
0.0001
Alternative: parameter
unit
Never as it is
Scale
Auto
Scale The EA
Gold for Index maps the
market Markets 100 'pips'
XAUUSD 100 1288.23 1287.23
with parameter
$0.01 unit Alternative: to 100
Never cent units
Scale
The EA
maps the
Gold
100 'pips'
market Always
XAUUSD 100 1288.23 1188.23 parameter
with Scale
to 100
$1.00 unit
dollar
units
Auto
Scale The EA
Oil for Index maps the
market Markets 100 'pips'
USOil 100 56.752 55.752
with parameter
$0.01 unit Alternative: to 100
Never cent units
Scale
The EA
maps the
Oil
10 'pips'
market Always
USOil 10 56.752 46.752 parameter
with Scale
to 10
$1.00 unit
dollar
units
| GridTrendMultiplier EA Configuration Guide | 39
Auto
Scale The EA
Copper for Index maps the
market Markets 100 'pips'
COPPER 100 2.9245 1.9245
with parameter
$0.01 unit Alternative: to 100
Never cent units
Scale
Auto
Scale The EA
Cocoa for Index maps the
market Markets 100 'pips'
COCOA 100 2160 2060
with parameter
$0.01 unit Alternative: to 100
Never cent units
Scale
Auto
Scale The EA
Natural
for Index maps the
gas
Markets 100 'pips'
market NGAS 100 2.843 1.843
parameter
with Alternative: to 100
$0.01 unit Never cent units
Scale
Magic Number
Magic Number
The EA marks its orders with this value when submitting to the broker account, and picks up orders
which are marked with this magic number value and belong to the chart of the EA. In the case of
multiple EA's running on the same market ensure that they get unique Magic Number allocations to
avoid cross-impact between the EA instances handling the orders. See Configuration and Operation
Principles section for more explanation and setup examples.
Related information
Configuration and Operation Principles on page 16
The GridTrendMultiplier EA operational overview.
| Knowledgebase | 40
Chapter
5
Knowledgebase
Answer
The way to get and install MT4 is to download it directly from your broker.
Please download the MT4 setup application directly from one of your preferred brokers web site.
3. Click on the Download EA Setup button to download the EA setup for the MT4 terminal.
The setup application lists the available MT4 instances. Select one or multiple of them for installation
target and click on the Next.
Note:
If you see an empty list then you probably need to install an MT4 first. In that case download
and run the MT4 setup application from your preferred broker's web site. After that run again
this EA setup application.
If you are an advanced user and you run the MT4 in portable mode from a custom location
then copy this EA setup application into the Data Folder of the MT4, then run the EA setup
application from that Data Folder. In order to find the Data Folder of the MT4 select the File >
Open Data Folder in the MT4's menu.
| Knowledgebase | 43
When the installation is complete start the MT4 up and check that the EA appears in the Navigator
window (View > Navigator):
Now everything is set up for the first activation of the GridTrendMultiplier Expert Advisor .
Answer
In order to upgrade the EA please follow these steps:
1. Download the latest GridTrendMultiplier EA from the Web Support Centre. For detailed steps
refer to the How to Download the Setup Application.
| Knowledgebase | 44
IMPORTANT If you are upgrading from the GTM 4.13.0 or earlier version: The lot
scaling feature of the EA has been changed with the GTM v5.0.0. If
you have a chart running the GTM v4.13 or earlier EA with the 'BUY/
SELL Counter-Trend Lot Scaling' set to a positive value then please
change it to the same but negative value right after the upgrade to
the GTM v5.0.0.
For example:
• Before upgrade: 'BUY/SELL Counter-Trend Lot Scaling' = 30
• After upgrade: 'BUY/SELL Counter-Trend Lot Scaling' = -30
Observe the '-' sign before the 30 above.
Note: if you have zero value in this field then no action is needed, no
need to change this field at all.
The upgraded GridTrendMultiplier EA will pick up and carry on managing any existing trades created
by the previous EA version.
Related tasks
Step-by-step Installation of Expert4x EAs and Indicators on page 86
How to download an EA setup in VPS environment on page 91
Related information
How to Download the Setup Application on page 40
The following pictures demonstrate the first time activation of the GridTrendMultiplier Expert Advisor in
a few steps.
1. Drag & drop the GridTrendMultiplier Expert Advisor from the Navigator window (View >
Navigator) to a chart window and select the Common tab:
Note:
Ensure that the
• Allow live trading,
• Allow DLL import and
• Allow import of external experts
are ticked.
| Knowledgebase | 46
This lists the parameters of the EA where the operational aspect of the GridTrendMultiplier EA
can be set up. For more details see the GridTrendMultiplier EA Configuration Guide – for now
click on the OK button and let the EA start up with default settings.
Note:
At the very first time the EA may prompt for the Access ID to verify that the usage of
product is licensed.
The Access ID is pre-configured and is the same as the login name to the web support
site. Feel free to change your Access ID at the Web Support Centre and ensure not to
share it with anyone else. Enter the Access ID and click on the Save button:
| Knowledgebase | 47
Tip: If you do not remember your Access ID then click on the Help! What is my Access
ID? to see it on your Web Support Centre user profile.
The GridTrendMultiplier Expert Advisor has been attached to the chart. The smiley face in the top-right
corner shows that the initialisation of the GridTrendMultiplier Expert Advisor was successful and the
EA is now looking for trading opportunities.
See the smiley face in the corner:
In case of a problem getting the EA up and running please refer to the Knowledgebase section.
3. Click on the Download EA Setup button to download the EA setup for the MT4 terminal.
1. Move the download file from the Downloads folder to your desktop:
2. Start up your MT4 terminal application and select the File > Open Data Folder menu item:
3. Double-click on the My Mac Desktop in the appearing Windows File Manager window:
and double-click on the downloaded EA Setup file (Important: double-click within this Windows
File Manager window, not in the Finder)
| Knowledgebase | 50
5. If you see the 'No valid MT4 application...' message then click on its OK button:
8. Once clicked on the Choose button the Setup wizard page shows the selected folder:
9. Click on the Next buttons to complete all the rest of the EA Setup. Click on the Finish button:
| Knowledgebase | 53
10. In the MT4 Navigator window right-click on the Expert Advisors node and select Refresh or
restart your MT4:
Now attach the GridTrendMultiplier Expert Advisor to a chart as usual. When you attach the EA
the very first time it may ask for your Access ID.
To review your Access ID visit your Web Support Centre User Profile page (ensure you logged
in to the site).
3. Press and hold down the Control key while you click inside of the appeared window. Select the
Show View Options menu item:
| Knowledgebase | 55
4. In the appearing window tick the Show Library Folder box. See (1) below.
The Library folder will appear in the Home folder once the Show Library Folder got ticked. See
(2) below.
3. Click on the Download EA Setup button to download the EA setup for the MT4 terminal.
4. Move the download file from the Downloads folder to your desktop:
| Knowledgebase | 57
5. Start up your MT4 terminal application and select the File > Open Data Folder menu item:
6. Double-click on the My Mac Desktop in the appearing Windows File Manager window:
and double-click on the downloaded EA Setup file (Important: double-click within this Windows
File Manager window, not in the Finder)
7. Click on the Next of the Setup wizard pages:
| Knowledgebase | 58
8. If you see the 'No valid MT4 application...' message then click on its OK button:
11. Once clicked on the Choose button the Setup wizard page shows the selected folder:
12. Click on the Next buttons to complete all the rest of the EA Setup. Click on the Finish button:
| Knowledgebase | 61
13. In the MT4 Navigator window right-click on the Expert Advisors node and select Refresh or
restart your MT4:
Now attach the GridTrendMultiplier Expert Advisor to a chart as usual. When you attach the EA
the very first time it may ask for your Access ID.
To review your Access ID visit your Web Support Centre User Profile page (ensure you logged
in to the site).
Solution
From the EA installation perspective you can ignore this message.
The installer was at the very last step to start up the Users Manual PDF viewer. This is a request to the
Windows operating system to start the registered PDF reader application and looks like Windows could
not start up the PDF reader for some reason. This is probably a Windows or an MT4 settings problem.
Please double check that the EA appears in the MT4 terminal Navigator window (press Ctrl+N), it
should be listed at the section Expert Advisors.
The following pictures demonstrate the first time activation of the GridTrendMultiplier Expert Advisor in
a few steps.
1. Drag & drop the GridTrendMultiplier Expert Advisor from the Navigator window (View >
Navigator) to a chart window and select the Common tab:
Note:
Ensure that the
• Allow live trading,
• Allow DLL import and
• Allow import of external experts
are ticked.
| Knowledgebase | 66
This lists the parameters of the EA where the operational aspect of the GridTrendMultiplier EA
can be set up. For more details see the GridTrendMultiplier EA Configuration Guide – for now
click on the OK button and let the EA start up with default settings.
Note:
At the very first time the EA may prompt for the Access ID to verify that the usage of
product is licensed.
The Access ID is pre-configured and is the same as the login name to the web support
site. Feel free to change your Access ID at the Web Support Centre and ensure not to
share it with anyone else. Enter the Access ID and click on the Save button:
| Knowledgebase | 67
Tip: If you do not remember your Access ID then click on the Help! What is my Access
ID? to see it on your Web Support Centre user profile.
The GridTrendMultiplier Expert Advisor has been attached to the chart. The smiley face in the top-right
corner shows that the initialisation of the GridTrendMultiplier Expert Advisor was successful and the
EA is now looking for trading opportunities.
See the smiley face in the corner:
In case of a problem getting the EA up and running please refer to the Knowledgebase section.
| Knowledgebase | 68
Autotrading is disabled
The AutoTrading might be disabled
| Knowledgebase | 69
Click to enable:
Answer
The GridTrendMultiplier EA displays the MT4 account leverage on its dashboard, at the section
Account Level Info.
See the reported leverage value at the end of the first line:
In the above picture the leverage is reported as 400, which represents 400:1 account leverage.
1. The Market Watch window's header shows the broker's server time, press Ctrl+M in the MT4
terminal:
This time can be compared to the GMT+0 time to calculate the GMT offset of the broker, as per
the next step.
2. In a web browser search for gmt time keywords to see the current GMT time.
3. Calculate now the broker GMT offset = 'Market Wacth time' - 'GMT time'.
Note: For broker servers located in Europe the GMT offset is likely to be in the range of 0 and
3, i.e. a zero or positive number. For broker servers located in the US the GMT offset might be
in the range of -5 and -6, i.e. a negative number. Keep in mind that these figures may get further
adjusted by the daylight savings.
Based on past experience, with no guarantee that the information is correct, these are a few sample
broker GMT offsets observed as of July 2015:
Autotrading is disabled
The AutoTrading might be disabled
• Verify that the toolbar button AutoTrading is pressed.
Toolbar button when Expert Advisors disabled:
Click to enable:
Connection Lost
MetaTrader should be connected to the broker's server.
1. Check the bottom right corner of MetaTrader, this is when it has lost connection to the server:
2. If connection is lost then login again or restart MT to force reconnection. Try again activating the
GridTrendMultiplier EA when connection is back.
• When this happens open a new demo account (right click Accounts in Navigator window and
select Open an Account).
Market is closed
New tick information and updates to chart happens when markets are open.
• Double check that markets are meant to be open currently.
Disk is full
There should be at least 50MB free disk space available on the drive MetaTrader is installed on.
• If the free disk space is low then free up space.
trading a grid started in the previous month, this message will pop up because the MT4 terminal
drops the details of the closed grid trades for the past months. The solution is to enable full
account history for the MT4 terminal: see Enable Full Trade History For Grid P&L Calculations
illustrating the steps to achieve that.
• MetaTrader should be connected to the broker's server. Check the bottom right corner of
MetaTrader, this is when it has lost connection to the server:
Tip: If you do not remember your Access ID then click on the Help! What is my Access
ID? to see it on your Web Support Centre user profile.
Please do not share out to others your Access ID. That is against the licence agreement terms
and conditions and also all 3rd party usages will count when checking the number of EA copies
being used. Sharing out your Access ID can result in licence check failure and the EA may stop
functioning.
Keep your Access ID secure, change it away from the its default value at any time on the Web
Support Centre site.
| Knowledgebase | 75
Answer
In order to edit the input parameters of an EA which is already attached to a chart follow these steps
1. Select the chart with the EA: click inside the chart area which hosts the GridTrendMultiplier EA in
your MT4 application.
2. Press F7 on your keyboard, or alternatively click on the smiley (or frown) icon in the top-right
corner of the chart.
3. Edit the GridTrendMultiplier EA input values in the appearing EA properties window: double-click
on the current value you want to change then type in the new value.
4. Click OK when editing is complete
Issue
Some of the market bar history data or an indicator fails to load because the MT4 runs out of memory.
An error message similar to the below is reported:
Solution
The bar history data takes up too much memory when loaded into RAM and the charts. The MT4
application needs to be configured to keep less number of bars on the charts.
1. In the MT4 application menu select Tools > Options then select the Charts tab.
2. Enter 512000 into the Max bars in history, and 65000 into the edit box Max bars in chart:
| Knowledgebase | 76
3. Attach the EA to the chart now. If the issue is still there then go back to the previous step and
enter half of the previous values. Keep repeating these two steps - halving the values every time -
until the EA attaches successfully.
The broker server reports the MT4 error code 133, which means that the trade is disabled on the
account. This is not an EA issue, instead, this is an issue with the broker account. For some reason the
broker account does not allow you to trade that market.
Solution
Go through the following checklist to resolve this issue:
1. Restart the MT4 terminal to see if the restart and reconnect to the broker resolves this: In the MT4
menu select File > Exit, wait 5 seconds then start the MT4 up again.
2. Identify another symbol for the same market which is enabled for trading: In the MT4 menu select
View > Symbols and search for symbol with different/extra suffix in the name, like EURUSDecn.
Add that symbol to the Market Watch window then attach the EA to this new symbol.
3. Logging into your MT4 broker account with the investor login credentials disables trading.
Ensure that you log in to your broker account with the full trader login credentials.
4. Create another demo account with the broker.
5. Contact your broker and ask their support team to enable trading on the symbol or account
a. Your broker account may have reached some trade limits (e.g. overall maximum lots).
b. Your broker may have put (temporarily) trading limitations on your account for some reason.
c. Your broker may have to enable trading by EAs.
Issue
In the Strategy Tester using the visual mode DLL imports not allowed message appears on the
chart. No result after the Strategy Tester finished its run.
| Knowledgebase | 77
4. Restart the MT4: exit the MT4 application, wait 5 seconds then start it up again.
Issue
After the backtest finished no result showing.
| Knowledgebase | 78
4. Restart the MT4: exit the MT4 application, wait 5 seconds then start it up again.
In the above screenshot the last connection issue happened at 14:19 broker server time (chart time).
This means that somewhere along the Internet connection path from your computer to the broker
server, including your home networks, the Internet and your brokers remote networks, there was some
temporary issue resulting in data transfer interruption.
During this time the GTM EA cannot receive price feed from the broker, i.e. no ticks are coming in. This
also means that, due to the lack of price feed and ticks, the EA is not activated and cannot perform
trading or managing open trades. When the MT4 re-establishes the connection to the broker server
and price feed comes in again then the EA automatically resumes its trading operations.
Solution
In order to minimize the downtime, please ensure the following:
1. Your computer is connected to your home networks over a wire, i.e. cabled to your modem or
router. Note that wireless connectivity is more prone to connection issues.
2. Use a cable based Internet service provider, if feasible. Wireless based Internet service providers,
like mobile or cellular based Internet providers could have more connectivity issues.
3. Turn off the sleep or hibernation mode on your computer. When your computer goes into sleep or
hibernation the Internet connection would be lost.
4. If in doubt, restart your home networks: shutdown your computer, turn off your modem or router,
wait 10 seconds then turn back on the modem/router then your computer.
The suspended message simply tells you that the actual market spread got higher than the configured
Max Spread to Allow Trade for a period of time.
Solution
Here is an example screenshot where the Max Spread to Allow Trade is set to 5 pips:
| Knowledgebase | 80
The EA temporarily holds back trading activities while the market spread goes higher than the
configured 5 pips, but will automatically resume the trading once the market spread drops back to or
below the Max Spread value. This provides a protection against trading during high spread periods like
over night or during news or announcements.
If you do not want trades to take place during high market spread periods then no change is needed.
If you trade a market which has higher spread even during peak of the trading sessions then you may
want to adjust the Max Spread settings accordingly higher.
For more information please refer to the Max Spread to Allow Trade topic.
Solution
The bar history database could be in inconsistent state. Try to run the backtest in visual mode, and
start with a recent and short calendar period, say for this week. If that works then you may want to
expand the calendar period, say to the last two weeks. In iterations then you could expand the calendar
period until you hit the first issue of the bar history.
| Knowledgebase | 81
Use the MT4 Strategy Tester controls highlighted to run the visual backtest over a calendar period:
Issue
After the backtest finished no trades are showing.
If you see no trades during backtesting then usually it is down to either EA settings issue or MT4 bar
history issue.
Tip: In the event of no Visual mode box is visible then follow the steps in the Visual Mode
Checkbox Missing in Strategy Tester topic.
Now run the backtesting in visual mode: click on the Start button. The Visual mode would make visible
any potential EA messages in the backtesting chart, giving hints for next steps.
Watch out for any red messages in the chart area.
You may find these knowledge based topics useful to resolve them:
• Backtest In Visual Mode Not Working, and
• Backtest Not Working
And double check that you get 90% modeling quality when you run the backtest (Results tab):
If you get less than 90% then the bar history in your MT4 is not complete for the calendar period you
test, and the test results are not valid.
In this case you could download bar history from MetaQuotes: select in the MT4 menu the Tools >
History Center point, navigate in the symbols tree to the pair you test, double click on the 1 Minute
(M1) node for that pair then click on the Download button:
| Knowledgebase | 83
Note that the downloaded bar history will be from MetaQuotes, not from your broker. There could be
some differences in the bar history therefore your backtesting results may somewhat differ from your
own broker.
Once you downloaded the bar history a good practice is to restart the MT4: exit the MT4, wait 5
seconds then start it up again.
Now re-run the backtest with Every tick mode and check if you get the 90% modeling quality, and see
the trading results.
Solution
The Strategy Tester window hides some control elements when the window itself is not tall enough, i.e.
the Visual mode checkbox could become hidden. Make the Strategy Tester window taller in order to
make all the control elements visible, like the Visual mode checbox.
Hover the mouse over the top edge of the Strategy Tester window and drag the edge upwards:
1.
2.
3.
4.
5.
| Knowledgebase | 85
Issue
After the optimization finished no result is showing in the Optimization Results tab in the Tester
The following message was found in the Tester Journal tab There were X passes done during
optimization, X results have been discarded as insignificant.
Solution
To resolve the "insignificant" issue before you start the optimization you may need to uncheck the Skip
Useless Results in the Optimization Result tab.
and you see the origin.txt or the origin file go to the standard installation page.
• If the File Explorer shows a folder like this one below
and you see the terminal.exe or terminal file go to the non-standard installation page.
1. Double click the origin.txt file and take a note of the MetaTrader location.
2. Start the EA or indicator setup program. Follow through the setup until you reach the Select
Target MetaTrader Directory window.
3. In this window select your targeted MetaTrader's Data Folder, as per the origin.txt noted earlier,
and click Next
4. Follow through the rest of the setup application.
5. In the end click Install
| Knowledgebase | 89
3. Follow through the application until you reach the Select Target MetaTrader Directory window.
4. Click Add target directory... button
| Knowledgebase | 90
4. Type in: https://my.eafactory.com/expert4x and press Enter to start the Internet Explorer
If yes, please select the address bar in the Internet Explorer and type in: https://
my.eafactory.com/UserInterface/index.zul?p=1
If you got this message below you may need to adjust temporary your Internet security settings.
6. Select the EA name from the Product List and click Product Download in the Release List
If you got this message below you may need to adjust temporary your Internet security settings to
enable downloads.
isn't "commonly downloaded." It doesn't necessarily mean the website is fraudulent or that
the program is malware, but you probably shouldn't download or install the program unless
you trust the website and the publisher."
Source: http://windows.microsoft.com/en-US/windows7/SmartScreen-Filter-frequently-
asked-questions-IE9?SignedIn=1
These are the steps if you'd like to continue installing the GridTrendMultiplier EA EA:
a. Click the Action button in the displayed message
b. In the dialog box click the down arrow to the left of More options, and click Run
anyway
7. After the successful download the Internet Explorer may show this message
7. Click OK
8. Click OK
7. Click OK
8. Click OK
5. Click OK
7. Click OK
8. Click OK
8. Click OK
6
Operational Messages
The GridTrendMultiplier EA operational messages and resolution guide.
Configuration setting is
Setup problem: DLL imports not
missing to allow the EA to use
allowed. Tick Allow DLL imports
1001 Error dynamicaly loaded libraries
in Common tab of the properties
(DLLs). Enable the load of DLLs
window.
and restart the EA. More...
Product installation is not
Incomplete EA installation:
complete or damaged. Run the
Run setup application for MT4
1002 Error setup application for the MT4
instance "<MT4DataPath>'s
terminal instance as displayed.
Data Folder"
More...
MT4 Expert Advisors are EA does not perform its
disabled: click AutoTrading icon operations, not monitoring nor
1006 Error
on MT4 toolbar to execute the reacting to price movements of
EA. the market. More...
Live trading is not allowed (no The EA is unable to perform
smiley face): press F7 and trading operations, there is a
1007 Error
tick Allow live trading box on frown icon in the top right corner
Common tab. of the chart. More...
Authentication failed or
The EA is not able to
interrupted (<Stopped>,
authenticate the user access to
1008 Error <Status>, <Response>,
the service at its start up time.
<Reason>, <FlipOverCount>,
More...
<Latency>)
Market spread was higher than
1161 Warning Suspended - X times Last time... the configured maximum spread
allowed. More...
Connection - Down X times Last The MT4 lost connection to the
1163 Warning
time... broker's server. More...
2101 Error Initialization failed Initialization failed More...
| Operational Messages | 110
Configuration setting is
Setup problem: DLL imports not
missing to allow the EA to use
allowed. Tick Allow DLL imports
1001 Error dynamicaly loaded libraries
in Common tab of the properties
(DLLs). Enable the load of DLLs
window.
and restart the EA. More...
Product installation is not
Incomplete EA installation:
complete or damaged. Run the
Run setup application for MT4
1002 Error setup application for the MT4
instance "<MT4DataPath>'s
terminal instance as displayed.
Data Folder"
More...
MT4 Expert Advisors are EA does not perform its
disabled: click AutoTrading icon operations, not monitoring nor
1006 Error
on MT4 toolbar to execute the reacting to price movements of
EA. the market. More...
Live trading is not allowed (no The EA is unable to perform
smiley face): press F7 and trading operations, there is a
1007 Error
tick Allow live trading box on frown icon in the top right corner
Common tab. of the chart. More...
| Operational Messages | 112
Authentication failed or
The EA is not able to
interrupted (<Stopped>,
authenticate the user access to
1008 Error <Status>, <Response>,
the service at its start up time.
<Reason>, <FlipOverCount>,
More...
<Latency>)
Market spread was higher than
1161 Warning Suspended - X times Last time... the configured maximum spread
allowed. More...
Connection - Down X times Last The MT4 lost connection to the
1163 Warning
time... broker's server. More...
2101 Error Initialization failed Initialization failed More...
The user quits the
Service access disabled authentication process, or the
2118 Error (<AccessID>, <ConfirmationID>) EA is not able to authenticate
- shutting down... the user access to the service.
More...
Broker server rejects orders
9104 Error Order submit failed at bid ...
submitted by the EA. More...
'Max Open Ticket Count' must Automated position sizing
50001 Error be 1 or higher for the selected requires maximum ticket count
Position Sizing Method. to be defined. More...
Position sizing failed, too Automated position sizing
50002 Error small derived Stop Loss of derived stop loss is too small.
<DerivedStopLoss>. More...
Current price <Bid> is already Market price is outside the
50003 Error on or above the configured limit upper limit allowed for grid
<GridCloseOnOrAbovePrice>. trading. More...
Current price <Bid> is already Market price is outside the lower
50004 Error on or below the configured limit limit allowed for grid trading.
<GridCloseOnOrBelowPrice>. More...
BUY entry <BuyEntryPrice> is The configured buy entry price
50005 Error on or above the configured limit is outside the upper limit allowed
<GridCloseOnOrAbovePrice>. for grid trading. More...
BUY entry <BuyEntryPrice> is The configured buy entry price
50006 Error on or below the configured limit is outside the lower limit allowed
<GridCloseOnOrBelowPrice>. for grid trading. More...
SELL entry <SellEntryPrice> is The configured sell entry price is
50007 Error on or above the configured limit outside the upper limit allowed
<GridCloseOnOrAbovePrice>. for grid trading. More...
SELL entry <SellEntryPrice> is The configured sell entry price
50008 Error on or below the configured limit is outside the lower limit allowed
<GridCloseOnOrBelowPrice>. for grid trading. More...
Missing grid initial tickets
(Sell:<SellTicket>,
Initial grid start tickets are no
Buy:<BuyTicket>) on broker
50112 Error longer available on broker
account, EA is shut down.
account. More...
Press F7 and click OK for more
instructions.
| Operational Messages | 113
Incomplete Installation
Issue
The EA is not able to start up when gets attached to a chart because some of its dependencies could
not be found on the file system.
Possible root cause
• The EA setup application was not able to perform all its steps, not completed in full.
• The product was installed manually and some of the steps were missed.
• The MT4 instance's file system got damaged, some files got corrupted or deleted.
Resolution
Download the EA setup application and execute it to get the product installed for the MT4 instance:
1. Download the setup application from Web Support Centre.
2. Execute the setup application to get the product installed. For installation guide refer to any of the
following:
• Getting Started with the GridTrendMultiplier EA
• Step-by-step Installation of EAs and Indicators
MT4 Expert Advisors are disabled: EA does not perform its operations,
1006 Error click AutoTrading icon on MT4 not monitoring nor reacting to price
toolbar to execute the EA. movements of the market. More...
EA AutoTrading Disabled
Issue
The EA is not responding to price movements, not performing its logic upon data ticks coming in from
the broker. The MT4 toolbar button AutoTrading is disabled.
Possible root cause
• The AutoTrading button on the MT4 toolbar is disabled.
Resolution
Press the AutoTrading button on the MT4 toolbar.
| Operational Messages | 115
Failed Authentication
Issue
The EA is not able to authenticate the user access to the service at attach or restart time and does not
start up.
Possible root cause
• The EA could not connect to the authentication server.
• The user quit the authentication process.
• There is a typo in the Access ID entered by the user.
• The GridTrendMultiplier EA is not yet purchased by the user.
• The GridTrendMultiplier EA was purchased, but not yet activated by the user.
• The GridTrendMultiplier EA was purchased or a trial started, but the licensed period (e.g.
calendar days) has lapsed.
• The GridTrendMultiplier EA was purchased, but the licensed usage limit (e.g. number of parallel
accesses) is breached by the user.
Resolution
Double check the following items to find resolution to the issue.
1. Ensure that the computer has working Internet connection. For example, go to the Web Support
Centre and see if the page loads with no issues. When the Internet connection is working, restart
the EA by pressing F7 and clicking the OK button of the Expert property window.
2. Ensure you enter the correct Access ID, case sensitive, without any typo, and click the Save
button of the Service Access Settings authentication window.
3. Ensure you have purchased the product. Log in to the Web Support Centre and select the
GridTrendMultiplier EA from the product list. If the product is not available for download then it is
yet to be purchased at the Web Support Centre.
4. Count the number of computers you are running the GridTrendMultiplier EA on. If it is more than
what the purchased EA licence copies allow then either shut down on the excess number of the
computers all the running GridTrendMultiplier instances, or purchase more licence at the Web
Support Centre.
| Operational Messages | 117
Issue
The GTM EA got attached to a chart and the EA is up and running. After a while the dashboard shows
the suspended message:
The suspended message simply tells you that the actual market spread got higher than the configured
Max Spread to Allow Trade for a period of time.
Resolution
Here is an example screenshot where the Max Spread to Allow Trade is set to 5 pips:
The EA temporarily holds back trading activities while the market spread goes higher than the
configured 5 pips, but will automatically resume the trading once the market spread drops back to or
below the Max Spread value. This provides a protection against trading during high spread periods like
over night or during news or announcements.
If you do not want trades to take place during high market spread periods then no change is needed.
If you trade a market which has higher spread even during peak of the trading sessions then you may
want to adjust the Max Spread settings accordingly higher.
For more information please refer to the Max Spread to Allow Trade topic.
Related information
No Updates to Chart on page 71
Issue
The GTM EA got attached to a chart and the EA is up and running. The EA monitors the connection
between the MT4 terminal and the broker server. When the MT4 loses connection to the broker server
then the EA presents this Connection Down message in its dashboard - see the orange message as an
example:
In the above screenshot the last connection issue happened at 14:19 broker server time (chart time).
This means that somewhere along the Internet connection path from your computer to the broker
server, including your home networks, the Internet and your brokers remote networks, there was some
temporary issue resulting in data transfer interruption.
During this time the GTM EA cannot receive price feed from the broker, i.e. no ticks are coming in. This
also means that, due to the lack of price feed and ticks, the EA is not activated and cannot perform
trading or managing open trades. When the MT4 re-establishes the connection to the broker server
and price feed comes in again then the EA automatically resumes its trading operations.
Resolution
In order to minimize the downtime, please ensure the following:
1. Your computer is connected to your home networks over a wire, i.e. cabled to your modem or
router. Note that wireless connectivity is more prone to connection issues.
2. Use a cable based Internet service provider, if feasible. Wireless based Internet service providers,
like mobile or cellular based Internet providers could have more connectivity issues.
3. Turn off the sleep or hibernation mode on your computer. When your computer goes into sleep or
hibernation the Internet connection would be lost.
4. If in doubt, restart your home networks: shutdown your computer, turn off your modem or router,
wait 10 seconds then turn back on the modem/router then your computer.
Note: Even the best Internet connection could see a handful of connection issues on a daily
basis. When you see more than a handful, like into 100 or more a day then your attention is
needed.
Related information
No Updates to Chart on page 71
Initialization failed
Issue
The EA dashboard shows that Initialization failed.
| Operational Messages | 119
Aborted Authentication
Issue
The EA is not able to authenticate the user access to the service at attach or restart time and does not
start up.
Possible root cause
• The user quit the authentication process.
• The EA could not connect to the authentication server.
• There is a typo in the Access ID entered by the user.
• The GridTrendMultiplier EA is not yet purchased by the user.
• The GridTrendMultiplier EA was purchased, but not yet activated by the user.
• The GridTrendMultiplier EA was purchased or a trial started, but the licensed period (e.g.
calendar days) has ellapsed.
• The GridTrendMultiplier EA was purchased, but the licensed usage limit (e.g. number of parallel
accesses) is breached by the user.
Resolution
Double check the following items to find resolution to the issue.
| Operational Messages | 120
1. Ensure that the computer has working Internet connection. For example, go to the Web Support
Centre and see if the page loads with no issues. When the Internet connection is working, restart
the EA by pressing F7 and clicking the OK button of the Expert property window.
2. Ensure you enter the correct Access ID, case sensitive, without any typo, and click the Save
button of the Service Access Settings authentication window.
3. Ensure you have purchased the product. Log in to the Web Support Centre and select the
GridTrendMultiplier EA from the product list. If the product is not available for download then it is
yet to be purchased at the Web Support Centre.
4. Count the number of computers you are running the GridTrendMultiplier EA on. If it is more than
what the purchased EA licence copies allow then either shut down on the excess number of the
computers all the running GridTrendMultiplier instances, or purchase more licence at the Web
Support Centre.
2. In the MT4 terminal switch back to the broker account the grid was started off.
Note: Best practice is to dedicate an MT4 instance to a single broker account when any
EA is active and performing trading. This is to avoid confusion and any potential trading
issues. If desired make multiple installations of the MT4 terminal for other purposes.
3. If, after enabling the full trade history, the EA is still not able to find the missing trades on the right
broker account then it could be a broker side limitation as of how much and for how long the trade
history is kept on the broker server. Talk to the broker to clarify their policy regarding availability of
the trade history.
The EA dashboard shows that there is a 'common error' on the MT4 level which blocks the
communication or trading with the broker server. This may occur after a lost connection over the
Internet to the broker server where the reconnection did not succeed properly, or due to some other
account or market related issue.
Resolution
Restart your MT4: In the MT4 menu select File > Exit, wait 5 seconds then start it up again. Hopefully
the EA 'code 2, common error' would get cleared and the MT4 would be able to operate fully again.
When the demo broker account expires this message may turn up. In this case create a new demo
account with the broker.
The EA dashboard shows that the order failed because of the market price moved on by the time the
order reached the broker, which can happen in trading on a daily basis.
Resolution
In this case the EA automatically sends a new order according to the new market price and recovers
from this issue on its own.
Watch out for the 'Count:' figure at the end of the red error message. Only if the Count figure would
keep increasing every few seconds or so for longer than 5 - 10 minutes then a closer look would
be needed. That could be an indication of a permanent issue which may need investigation and
intervention. In this case send a screenshot of the chart showing the EA dashboard including the error
message in full to support.
The EA dashboard shows that the root cause of the issue was that the broker closed the trading of the
market at around midnight GMT broker time.
Resolution
This is probably due to the practice the broker switches liquidity providers (banks) at around midnight
GMT when the EU/US session ends and the Asian session kicks in. The switchover period could be
just a few minutes but may last up to an hour or so around midnight GMT. As the Count: figure is
increasing only over this short switchover period this is only a temporary issue.
The EA automatically recovers from this situation on its own and sends new orders to the broker when
the market becomes open for trading again.
Watch out for the 'Count:' figure at the end of the red error message. If the Count figure increases only
during the midnight GMT switchover period then no further action or intervention is needed. However,
if the Count figure would keep increasing at any time of the day (not only around midnight GMT) every
few seconds or so for longer than 5 - 10 minutes then a closer look would be needed. That could be
an indication of a permanent issue which may need investigation and intervention. In this case send a
screenshot of the chart showing the EA dashboard including the error message in full to support.
The broker server reports the MT4 error code 133, which means that the trade is disabled on the
account. This is not an EA issue, instead, this is an issue with the broker account. For some reason the
broker account does not allow you to trade that market.
Resolution
Go through the following checklist to resolve this issue:
1. Restart the MT4 terminal to see if the restart and reconnect to the broker resolves this: In the MT4
menu select File > Exit, wait 5 seconds then start the MT4 up again.
| Operational Messages | 129
2. Identify another symbol for the same market which is enabled for trading: In the MT4 menu select
View > Symbols and search for symbol with different/extra suffix in the name, like EURUSDecn.
Add that symbol to the Market Watch window then attach the EA to this new symbol.
3. Logging into your MT4 broker account with the investor login credentials disables trading.
Ensure that you log in to your broker account with the full trader login credentials.
4. Create another demo account with the broker.
5. Contact your broker and ask their support team to enable trading on the symbol or account
a. Your broker account may have reached some trade limits (e.g. overall maximum lots).
b. Your broker may have put (temporarily) trading limitations on your account for some reason.
c. Your broker may have to enable trading by EAs.
The EA dashboard shows that the order failed because of the current market prices are not available
due to connectivity issues, or because some of the broker constraints got breached by the order, like
quotes got outdated or moved too far away.
Resolution
The EA automatically sends a new order according to the new market conditions and recovers from
this issue on its own. There is no need for any intervention.
MT4 Message: Amount of open and pending orders has reached the limit
Issue
Based on the MT4 error code 148 the number of open trades reached the limit of the broker account,
i.e. there are too many open trades on the account and no more trade can be entered. This is a broker
account limitation, not an EA limitation.
Resolution
The number of open trades needs to be reduced on the broker account. If you run multiple EAs on the
account then close some of those charts with the EAs and close the corresponding trades off. You may
consider to open another broker account and start those EAs up on that new broker account.
You could also limit the number of trades this EA can open on the account - see the
The MT4 Expert tab shows that there is a 'internal error' in the MT4.
The 4024 comes up when the MT4 is busy, and some request from the EA, like to refresh the chart
area, cannot be processed without delay. This is an internal issue to the MT4 due to a busy or
overloaded environment. The impact of this issue is that the chart area may get refreshed with some
delay. However, in extreme cases this may become an issue impacting the trading as well.
Resolution
If you get this 4024 only occasionally, a couple of times a day then you may ignore this message.
However, if you get this message very regularly, then your MT4 or computer could be overloaded or
its performance degraded. In this case exit your MT4, reboot your computer, and only start the MT4
up and no other applications which you do not use. If you still get 4024 messages then close some of
the charts, detach some of the EAs in your MT4. This is to reduce the load on your computer and to
eliminate this message.
Chapter
7
Support
Please contact [email protected] if you require any further assistance. Please copy
[email protected] on your email.
| Index | 132
Index
Numerics AutoTrading Disabled
EA Not Starting Up 68, 70
1001
Message 113
1002
B
Message 113 Backtest
1006 Allow DLL Imports 77, 81
Message 114 No Result 76, 77, 81
1007 No Trades 81
Message 115 Backtest - MT4 no history data error messages
1008 Knowledgebase 80
Message 115 Balance of Buy & Sell Grid Trades
1161 parameters 22
Message 117 Broker GMT Offset
1163 Knowledgebase 69
Message 117 Buy or Sell Only Mode Grid
2101 Knowledgebase 61
Message 118 BUY/SELL Counter Trend Scaling
2118 Parameters 27, 30
Message 119 BUY/SELL Counter-Trend Gap Scaling Percent
50001 Parameters 27, 27
Message 121 BUY/SELL Counter-Trend Lot Scaling Percent
50002 Parameters 27, 28
Message 121 BUY/SELL Counter-Trend Scaling After Grid Level
50003 Parameters 27, 27
Message 122 BUY/SELL Gap Scaling After Grid Level
50004 parameters 25
Message 122 BUY/SELL Gap Scaling Percent
50005 parameters 25
Message 123 BUY/SELL Gap Size
50006 parameters 25, 26
Message 123 BUY/SELL Grid On-Chart Colour Scheme
50007 parameters 31, 35, 35
Message 124 BUY/SELL Grid Settings
50008 parameters 25, 25, 26, 26, 26, 26, 30
Message 124 BUY/SELL Grid Trading Allowed
50112 parameters 25, 25
Message 125 BUY/SELL Initial Entry Price
9104 parameters 25, 26
Message 120 BUY/SELL Lots for 'Manual Lot Size'
parameters 26
A BUY/SELL No New Buy/Sell On or Above Price
parameters 25, 30, 30
Access ID BUY/SELL Stop Loss
Knowledgebase 74 parameters 25, 26
Account Type Requirements BUY/SELL Take Profit
System Requirements 14 parameters 26
Activation
Access ID 9, 44, 64
Attach 9, 44, 64
C
First Time Activation 9, 44, 64 Clean up after the download in the Internet Explorer
MT4 Common Tab 9, 44, 64 Download 100
MT4 Inputs Tab 9, 44, 64 Knowledgebase 100
Service Access Settings 9, 44, 64 Close Grid On or Above Price
Allow DLL Imports parameters 18, 20
Backtest 77, 81 Close Grid On or Below Price
Amount of open and pending orders has reached the limit parameters 18, 20
Message 129 Closure at Loss Level
Automatic vs Manual Sell Settings parameters 19
parameters 25, 30
| Index | 133
Insignificant L
Knowledgebase 85
Install Level Sensitivity
GTM EA 6, 41 parameters 31, 32
Non-standard Installation 89 Library folder
Standard Installation 87 Mac 47, 53
Install on Mac Machintos 47
GTM EA 47, 49, 55 Machintosh 53
Install on Macintosh Lot Adjustment for FIFO
GTM EA 49, 55 parameters 31, 33
Internal error
Message 130 M
Invalid price
Message 127 Mac
Library folder 47, 53
Machintos
K
Library folder 47
Knowledgebase Machintosh
Access ID 74 Library folder 53
Backtest - MT4 no history data error messages 80 Magic Number
Broker GMT Offset 69 parameters 31, 39
Buy or Sell Only Mode Grid 61 Market is closed
Clean up after the download in the Internet Explorer Message 127
100 Max Gap of Buy vs Sell Open Trades
Computer Always-on 80 parameters 18, 22, 22
Connection Down Message 78 Max Gap Resolution
DLL Imports Not Allowed 76 parameters 18, 22, 22
Max Loss Amount
EA Non-standard Installation 89
parameters 18, 19, 19
EA Not Starting Up 70
Max Loss Percent
EA Standard Installation 87
parameters 18, 19, 20
Enable Full Trade History 72
Max Loss Pips
Frown face 68
parameters 18, 19, 20
Grid Initial Tickets Not Found 73 Max Open Ticket Count
How to download an EA setup in VPS environment 91 parameters 31, 32
How to Download MT4 40 Max Open Trade Duration
How to Download the Setup Application from the Web parameters 31, 32
Support Centre 40 Max Spread Pips
How to Download the Setup Application from the Web parameters 31
Support Centre on Mac 47, 48 Max Spread to Allow Trade
How to Edit the EA Input Values 75 parameters 32
How to enable Download in your Internet Explorer 97, Message 109, 109, 111, 111, 126, 126
105 1001 113
How to enable JavaScript in your Internet Explorer 95, 1002 113
103 1006 114
How to Upgrade the EA 43 1007 115
Indicator Non-standard Installation 89 1008 115
Indicator Standard Installation 87 1161 117
Insignificant 85 1163 117
MetaViewer dll could not be found 63 2101 118
No Result in Optimization 85 2118 119
No Trades 76, 78, 79, 83 50001 121
No Trades Due to Trade Disabled 76 50002 121
No Updates to Chart 71 50003 122
Not Enough Memory For Bar History Or Indicator 75 50004 122
Sadface 71, 72, 80 50005 123
Skip Useless Results 85 50006 123
Step-by-step Installation Guide 86 50007 124
Suspended Message 79 50008 124
Visual Mode Checkbox Missing in Strategy Tester 83 50112 125
What is My Account Leverage 69 9104 120
Amount of open and pending orders has reached the
limit 129
| Index | 135
S
Sadface
Knowledgebase 71, 72, 80
Skip Useless Results
Knowledgebase 85
Startup & Operation Mode
parameters 17
Parameters 17
Step-by-step Installation Guide
Knowledgebase 86
Support
Support 131
Suspended Message
Knowledgebase 79
System Requirements
Account Type Requirements 14
ECN/STP Broker Accounts 14
FIFO Support 13
Forex Broker Requirements 13
Hardware Requirements 13
Hedging Support Requirements 13
MetaTrader (MT4) Requirements and Settings 13
Minimum Lot Size Requirements 14
Operating System Requirements 13