0% found this document useful (0 votes)
28 views

GridTrendMultiplier MT4 Expert Advisor Users Guide

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

GridTrendMultiplier MT4 Expert Advisor Users Guide

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 136

Expert4x GridTrendMultiplier

EA for MT4
April 5, 2023
| Contents | ii

Contents

Chapter 1: Copyright Notices................................................................5

Chapter 2: Getting Started with the GridTrendMultiplier EA..............6


2.1 Installing the GridTrendMultiplier EA...................................................................................... 6
2.2 GridTrendMultiplier Expert Advisor First Time Activation...................................................... 9

Chapter 3: System Requirements.......................................................13


3.1 Operating System Requirements.......................................................................................... 13
3.2 Hardware Requirements....................................................................................................... 13
3.3 MetaTrader (MT4) Requirements and Settings.................................................................... 13
3.4 Forex Broker Requirements..................................................................................................13
3.5 Hedging Support Requirements............................................................................................13
3.6 FIFO Support........................................................................................................................ 13
3.7 Account Type and Minimum Lot Size Requirements............................................................14
3.8 ECN/STP Broker Accounts................................................................................................... 14
3.9 Full Trade History Must Be Enabled.....................................................................................14

Chapter 4: GridTrendMultiplier EA Configuration Guide..................16


4.1 Configuration and Operation Principles................................................................................ 16
4.2 GridTrendMultiplier EA Parameter Descriptions................................................................... 16
4.2.1 Trading vs Planning Mode...................................................................................... 17
Startup & Operation Mode................................................................................... 17
4.2.2 Combined Profit & Risk Settings.............................................................................18
Closure at Profit Level..........................................................................................18
Closure at Loss Level.......................................................................................... 19
Closure at Price Level..........................................................................................20
Closure by Optimum Restart................................................................................21
Balance of Buy & Sell Grid Trades...................................................................... 22
Closure of Buy + Sell Trades in Hedged Pairs.................................................... 22
Position Sizing...................................................................................................... 23
4.2.3 BUY/SELL Grid Settings......................................................................................... 25
BUY/SELL Grid Trading Allowed......................................................................... 25
BUY/SELL Initial Entry Price................................................................................ 26
BUY/SELL Lots for 'Manual Lot Size'.................................................................. 26
BUY/SELL Gap Size............................................................................................ 26
BUY/SELL Stop Loss........................................................................................... 26
BUY/SELL Take Profit..........................................................................................26
BUY/SELL Counter-Trend Scaling....................................................................... 27
BUY/SELL Trading Boundary...............................................................................30
Automatic vs Manual Sell Settings.......................................................................30
4.2.4 Operations Settings................................................................................................. 31
Reentry After Grid Closure...................................................................................31
Max Open Ticket Count....................................................................................... 32
Max Open Trade Duration....................................................................................32
Max Spread to Allow Trade................................................................................. 32
Level Sensitivity....................................................................................................32
Minimum Grid Gap Size.......................................................................................33
Lot Adjustment for FIFO.......................................................................................33
Visual Grid Feedback on Chart............................................................................35
Planning Mode Visual Feedback..........................................................................36
| Contents | iii

Tick Scaling for CFD Markets.............................................................................. 37


Magic Number...................................................................................................... 39

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

Chapter 6: Operational Messages.................................................... 109


6.1 Operational Messages........................................................................................................ 111
6.1.1 Message 1001....................................................................................................... 113
6.1.2 Message 1002....................................................................................................... 113
6.1.3 Message 1006....................................................................................................... 114
6.1.4 Message 1007....................................................................................................... 115
6.1.5 Message 1008....................................................................................................... 115
6.1.6 Message 1161....................................................................................................... 117
6.1.7 Message 1163....................................................................................................... 117
6.1.8 Message 2101....................................................................................................... 118
6.1.9 Message 2118....................................................................................................... 119
6.1.10 Message 9104..................................................................................................... 120
6.1.11 Message 50001................................................................................................... 121
6.1.12 Message 50002................................................................................................... 121
6.1.13 Message 50003................................................................................................... 122
6.1.14 Message 50004................................................................................................... 122
6.1.15 Message 50005................................................................................................... 123
6.1.16 Message 50006................................................................................................... 123
6.1.17 Message 50007................................................................................................... 124
6.1.18 Message 50008................................................................................................... 124
6.1.19 Message 50112................................................................................................... 125
6.2 MetaTrader Operational Messages.....................................................................................126
6.2.1 MT4 Message 2.................................................................................................... 126
6.2.2 MT4 Message 129................................................................................................ 127
6.2.3 MT4 Message 132................................................................................................ 127
6.2.4 MT4 Message 133................................................................................................ 128
6.2.5 MT4 Message 136................................................................................................ 129
6.2.6 MT4 Message 148................................................................................................ 129
6.2.7 MT4 Message 4024.............................................................................................. 130

Chapter 7: Support............................................................................. 131


Index......................................................................................................................... 132
Chapter

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.

2.1 Installing the GridTrendMultiplier EA


The GTM EA comes with a setup application to provide a wizard based installation process to the selected
MT4 terminal.

Before you start...


• Ensure that you have the login credentials to the Web Support Centre.
• Ensure that you have an MT4 terminal version 4.00 build 1380 or later installed.

1. Exit the MT4 if it was running.


2. Visit the GridTrendMultiplier EA Web Support Centre page.
3. Read the Web Support Centre Terms and Conditions and Privacy Policy then tick the checkbox to
accept them.
| Getting Started with the GridTrendMultiplier EA | 7

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)

These pictures highlight the steps how to install the EA.


| Getting Started with the GridTrendMultiplier EA | 8

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 .

2.2 GridTrendMultiplier Expert Advisor First Time Activation


Step by step guide to get the EA up and running on a chart for the first time.

The following pictures demonstrate the first time activation of the GridTrendMultiplier Expert Advisor in
a few steps.

Attach the EA to a chart


| Getting Started with the GridTrendMultiplier EA | 10

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

2. Select the Inputs tab:

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 EA is up and running


After successful authentication the GridTrendMultiplier EA starts up.

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

3.1 Operating System Requirements


In order to operate the GridTrendMultiplier EA a Microsoft Windows operating system is required which
supports MetaQuotes MetaTrader version 4.00 platform.
Note that the MetaQuotes MetaTrader software is also known and often referred to as MT4.

3.2 Hardware Requirements


The minimum Random Access Memory (RAM) requirement is 512MB (0.5GB), however 1024MB
(1GB) RAM is recommended to avoid extended virtual memory usage. Note that this memory
requirement is for MetaTrader application only, excluding other applications running at the same time
(e.g. MS Office). If other applications are running parallel with MetaTrader application please increase
the RAM requirement accordingly.

3.3 MetaTrader (MT4) Requirements and Settings


The EA is compatible with MetaQuotes MetaTrader platform version 4.00 build 1380 or higher. In
general this is referred to as MT4 terminal, build 1380 or newer.

3.4 Forex Broker Requirements


The GridTrendMultiplier EA is compatible with both 4 and 5-digit data feeds based brokers. The
GridTrendMultiplier EA automatically detects the type of the feed and adjusts the EA parameter pip
values if and when necessary.
Both fixed and variable spread broker platforms are supported.
The selected MetaTrader based broker should allow keeping open orders on the account for long
period of time, i.e. the broker should not close and re-open orders over night for swap calculation, or
should not merge open orders for any reason.
IMPORTANT: For smooth trade management the MetaTrader application and the EA should be on-
line, up and running during all market open hours (usually Sunday to Friday).

3.5 Hedging Support Requirements


The EA may open BUY as well as SELL positions at the same time on the same market. Because of
this the broker account must support the hedging of trades.

3.6 FIFO Support


By default the GridTrendMultiplier EA may open and close positions out of order of the First-In-First-
Out (FIFO) sequence. If your broker does not allow for this and requires to comply with the FIFO
rule then please ensure that you select the Apply FIFO Adjustments value for the EA parameter Lot
Adjustment for FIFO.
| System Requirements | 14

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.

3.7 Account Type and Minimum Lot Size Requirements


A so-called Micro broker account is necessary if the available funds for the EA trading is less than
approx. $1000. The micro account allows the EA to open a position with minimum lot size of 0.01. If
you plan to use a broker account with the above funding please ensure that your broker account offers
this minimum lot size.
An easy way to double check the minimum lot size available on the broker account is to attach the EA
to a chart and check the Market Info section on the chart:

The Lot line shows Min:0.01 which tells that the minimum lot size requirement is 0.01 on this broker
account.

3.8 ECN/STP Broker Accounts


Many brokers offer Electronic Communications Network (ECN) or Straight Through Processing (STP)
accounts. Common behaviour for these accounts is the variable spread and market orders where no
initial stop loss and take profit targets can be specified. In this case the market order must be submitted
with no SL and TP values, and these values are to be set in the second step using an additional order
to the opened ticket.
The GridTrendMultiplier EA is compatible with the above ECN/STP broker accounts and needs no
additional settings to operate on them.

3.9 Full Trade History Must Be Enabled


The GridTrendMultiplier EA tracks ongoing grid trade cycle's profit and loss since the start up of the
grid cycle. For this the EA needs to have visibility to past closed tickets listed in the Account History tab
of the MT4 Terminal window. Please ensure that this tab lists all past tickets, the full history, otherwise
the EA may not be able to operate:

1. Go to Terminal window (Ctrl+T)


2. Select Account History tab
3. Right-click inside the tab area
| System Requirements | 15

4. Select All History in the context menu


| GridTrendMultiplier EA Configuration Guide | 16

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.

4.1 Configuration and Operation Principles


The GridTrendMultiplier EA operational overview.

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

EURUSD chart 1 5000


EURUSD chart 2 5001
EURUSD chart 3 5002
GBPUSD chart 1 5010
GBPUSD chart 2 5011
GBPUSD chart 3 5012
USDCAD single chart EA default or any other
USDCHF single chart EA default or any other

4.2 GridTrendMultiplier EA Parameter Descriptions


The GridTrendMultiplier EA parameter descriptions.
| GridTrendMultiplier EA Configuration Guide | 17

4.2.1 Trading vs Planning Mode

Startup & Operation Mode

Startup & Operation Mode


Selects the desired level of trading available when the Forecast Tool is used for planning and analysis.
If one wants to analyze a new market which does not have an ongoing grid then the Planning Mode
Only allows to use the Forecast Tool on that market without entering any actual trades.

Startup & Description


Operation Mode

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

4.2.2 Combined Profit & Risk Settings

Closure at Profit Level


Amount
Profit
Target
Target Profit Amount
Combined buy and sell profit target as an amount of balance increase 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 the value of Target Profit Amount. 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 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

Target Profit Percent


Combined buy and sell profit target as a percentage of balance increase 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 the percent growth of account balance. 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 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.

Closure at Loss Level


Amount
Loss
Max
Max Loss Amount
Combined buy and sell maximum loss as an amount 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 value of Max Loss Amount. 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 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.

Closure at Price Level


Price
Above
or
On
Grid
Close
Close Grid On or Above Price
The upper price limit for running the grid. When the actual price reaches or goes above 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 below this Close Grid On or
Above Price.

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.

Closure by Optimum Restart


Count
Ticket
Minimum
Restart
Optimum
Optimum Restart Minimum Ticket Count
A long running grid may develop over time distant buy and sell open trades. It could be beneficial to
close off the ongoing grid at an optimum price point to allow for a new grid. The optimum price point
would be somewhere between the open buys and sells, depending on their overall lot sizes. This
parameter allows the EA to close off the ongoing grid if the number of open buy and sell positions
together reached this minimum count value while the buy side and the sell side losses are at about the
same amount.
Example:
• Optimum Restart Minimum Ticket Count is set to 10
The EA trades buy and sell grids and the total number of open buy and sell trades reaches 10. From
that point on the EA monitors the amount of losses of the open trades on the buy side as well as on the
sell side, independently from each other. Once the buy side floating losses and the sell side floating
losses become similar then the EA closes off all the open trades, on both the buy and the sell side.
| GridTrendMultiplier EA Configuration Guide | 22

Attention: It may take some time before the buy side and the sell side loss amounts would becom

Balance of Buy & Sell Grid Trades


Trades
Open
Sell
vs
Buy
of
Gap
Max
Max Gap of Buy vs Sell Open Trades
Keeps the difference between the number of open trades on the buy and sell side within a limit. This
parameter sets the maximum gap allowed as a difference before one of the resolution actions applied,
as selected at the Max Gap Resolution.
Resolution
Gap
Max
Max Gap Resolution
The type of action to be performed when the maximum gap between the open buy and sell trades is
breached.

Max Gap Resolution Description

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.

• Max Gap of Buy vs Sell Open Trades is set to 6


• Max Gap Resolution is set to Prune Highest Loss Trade
• There are more open buy trades in place than open sell trades.
The EA trades buy and sell grids and the gap between the number of open buy and sell trades
exceeds 6. Because there are more open buy trades than sell trades, the EA identifies the open buy
trade with the highest amount of loss and closes it off.

Closure of Buy + Sell Trades in Hedged Pairs


Trades
Open
Sell
or
Buy
of
Count
Max
Target
Target Max Count of Buy or Sell Open Trades
Keeps the number of buy and sell open trade pairs within a limit. When the count of open buy as
well as the open sell trades exceeds this limit the EA closes pairs of open buy and sell trades. A pair
consists of
• One open SELL where the price is the most distant from its entry point, and
| GridTrendMultiplier EA Configuration Guide | 23

• 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

Percent of EA The lots for new position is calculated based on


Equity
• Equity available on the EA level, and
• Position Risk Percent, and
• BUY/SELL Gap Size, and
• Max Open Ticket Count
The lots for the new position is calculated the following way:
1. Composite SL is determined as: BUY/SELL Gap Size x Max Open
Ticket Count
2. Risk amount is determined as: Position Risk Percent of EA Equity
3. Lots determined as: Risk Amount / (Composite SL x Pip Value)

Percent of EA The lots for new position is calculated based on


Balance
• Balance available on the EA level, and
• Position Risk Percent, and
• BUY/SELL Gap Size, and
• Max Open Ticket Count
The lots for the new position is calculated the following way:
1. Composite SL is determined as: BUY/SELL Gap Size x Max Open
Ticket Count
2. Risk amount is determined as: Position Risk Percent of EA Balance
3. Lots determined as: Risk Amount / (Composite SL x Pip Value)

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

4.2.3 BUY/SELL Grid Settings

BUY/SELL Grid Trading Allowed

BUY/SELL Grid Trading Allowed


Turns on or off the trade of the grid in the BUY or SELL direction.
| GridTrendMultiplier EA Configuration Guide | 26

BUY/SELL Initial Entry Price

BUY/SELL Initial Entry Price


When the EA is started off when no open grid trades are on the account, the EA enters the very first
grid trade only when the actual market price reaches this initial entry price. For any subsequent grid
trade, for the current grid or starting a new grid after a closure, or when the account already has open
grid trades when the EA is started off, this initial entry price has no effect, does not cause the EA to
wait with trades.

BUY/SELL Lots for 'Manual Lot Size'

BUY/SELL Lots for 'Manual Lot Size'


Sets the lot size for new positions to this user-defined value when the Manual Lot Size option is
selected for Position Sizing Method.

BUY/SELL Gap Size

BUY/SELL Gap Size


Defines the gap between grid levels in pips. The BUY/SELL Gap Size value should be minimum of 10
pips or more, and no fractional pips should be entered. To avoid confusion the BUY/SELL Gap Size
must always be at least twice of the Level Sensitivity value, or more.

BUY/SELL Stop Loss

BUY/SELL Stop Loss


Stop loss in pips for new buy or sell orders. No fractional pip value to be entered, e.g. for 200 pips stop
loss this parameter value should be set to 200 regardless of 4 or 5-digit broker feed. Value 0 (zero)
turns off stop loss for new orders.

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.

BUY/SELL Take Profit

BUY/SELL Take Profit


Take profit in pips for new buy or sell orders. No fractional pip value to be entered, e.g. for 200 pips
take profit this parameter value should be set to 200 regardless of 4 or 5-digit broker feed. Value 0
(zero) turns off the take profit for new orders.
When this BUY/SELL Take Profit is configured with higher than zero value, the entered trade is going
to get closed off at the configured take profit pips distance, instead of the next grid level. This means
that all the trade entries are executed at the grid levels as per grid gap size (observing the potential grid
| GridTrendMultiplier EA Configuration Guide | 27

gap scaling), however the exit of the open trades are triggered only when they reach their BUY/SELL
Take Profit pips target.

BUY/SELL Counter-Trend Scaling


Level
Grid
After
Scaling
Counter-Trend
BUY/SELL
BUY/SELL Counter-Trend Scaling After Grid Level
When the market price goes against the direction of the grid trades the gap size and the lots for new
entries are scaled by the EA. The scaling starts when the price moves against the initial grid trade by
this configured grid level and applied to all the subsequent levels. Value zero (0) turns off the scaling
feature of the EA.

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:

Grid Level Effective BUY Gaps Effective SELL Gaps

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

Grid Level Effective BUY Gaps Effective SELL Gaps

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:

Grid Level Effective BUY Gaps Effective SELL Gaps

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

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 = 50
Below shows the according lots to be used for the BUY and the SELL grid trading directions:

Grid Level Effective BUY Lots Effective SELL Lots

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:

Grid Level Effective BUY Lots Effective SELL Lots

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.

BUY/SELL Trading Boundary


Price
Below
or
On
Buy/Sell
New
No
BUY/SELL
BUY/SELL No New Buy/Sell On or Below Price
The minimum price limit to enter new grid trades. When the actual price approaches or goes below this
level the EA does not open new trades at the corresponding grid levels. Once the actual price reverses
back above this minimum price limit the EA resumes opening new grid trades as per the normal grid
trading rules.
Examples:
• BUY No New Buy On or Below Price is set to 0
There is no lower price limit to the buy grid trades, i.e. this feature is turned off for the BUY side.

Important: The SELL side has its own EA parameter to control the boundary of the sell
grid, independent from the BUY side.

• SELL No New Sell On or Below Price is set to 1.2345


The EA trades sell grid until the next sell entry level approaches, or is below, the 1.2345 value.
When the 1.2345 is approached the EA no longer enters new sell grid trades. Should the actual
next sell entry level go back above the 1.2345 then the EA resumes entering new sell grid trades.

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.

• BUY No New Buy On or Above Price is set to 1.2345


The EA trades buy grid until the next buy entry level approaches, or is above, the 1.2345 value.
When the 1.2345 is approached the EA no longer enters new buy grid trades. Should the actual
next buy entry level go back below the 1.2345 then the EA resumes entering new buy grid trades.

Important: The SELL side has its own EA parameter to control the boundary of the sell
grid, independent from the BUY side.

Automatic vs Manual Sell Settings


| GridTrendMultiplier EA Configuration Guide | 31

Automatic vs Manual Sell Settings


If sell grid settings should be the same as already configured for buy leg then set this to Automatic vs
Manual Sell Settings. If the sell grid would have different settings compared to the buy grid then set this
to Manual Sell Settings and use the subsequent SELL xxxxx parameters to configure the sell grid.

Tip: For examples how to configure the EA in buy only or sell only mode see the Buy or Sell
Only Mode Grid topic.

4.2.4 Operations Settings

Reentry After Grid Closure


| GridTrendMultiplier EA Configuration Guide | 32

Reentry After Grid Closure


The EA performs the buy and sell grid trades until either the combined profit target or maximum losses
reached. Upon that the EA closes off all ongoing trades. A new grid trading cycle is started off only if
this Reentry After Grid Closure parameter is set to Reentry Allowed.

Max Open Ticket Count

Max Open Ticket Count


Limits the maximum number of open buy and sell trades together. When the total number of open buy
plus sell trades reaches this limit then the EA does not enter new trades, neither buy or sell. When
the total number of open buy plus sell trades drops below this limit then the EA resumes entering new
trades.

Max Open Trade Duration

Max Open Trade Duration


Observing this maximum duration the EA closes open trades after this period of time. The maximum
duration is measured and configured in days. Once this maximum number of days elapsed since the
entry time of an open trade then the EA closes off that trade. This maximum duration is applied to both
open buy and open sell trades in the same manner.
In order to turn off this feature set this maximum duration to zero.
Example: I want the EA to close an open grid trade if it was entered a week ago or more.
Here is an EA configuration to achieve the above:
1. Max Open Trade Duration = 7
When the EA is running on a Monday at 11am: The EA closes off open trades which were entered on
or before 11am last week Monday. The EA does not close off any open trades which were entered
after 11am last week Monday.

Max Spread to Allow Trade

Max Spread to Allow Trade


During market periods when the spread goes up beyond this Max Spread to Allow Trade value the EA
stops trading activity, i.e. no new order is submitted nor existing order gets closed off. When spread
falls below the Max Spread to Allow Trade value the EA resumes trading operations as normal.

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

Minimum Grid Gap Size

Minimum Grid Gap Size


Sets the required minimum gap size for the grid. In general this minimum gap size should be higher
than the high end of the market spread in order to avoid immediate position closure after a new entry.
The EA uses this minimum gap size value during the following operations:
• At EA startup the BUY/SELL Gap Size are checked against this minimum gap size and an error is
raised if the BUY/SELL Gap Size is lower than the minimum.
• During counter-trend gap scaling the gap size may get scaled down. The EA ensures that the
scaled down gap size will never go below this minimum gap size.

Tip: Set this minimum gap size higher than the Max Spread to Allow Trade to avoid immediate
position closure after a new entry.

Lot Adjustment for FIFO

Lot Adjustment for FIFO


Activates a FIFO specific operation mode of the trade position sizing. The FIFO adjustment requires
the use of manual lot sizing - see Position Sizing.

Lot Adjustment Description


for FIFO

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.

Note: The FIFO Adjustments requires the Manual Lot Size


option to be selected for the Position Sizing.

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.

Important: The FIFO adjustments will require the increase


of the lot sizes used for the grid trades. The increased lot
sizes result in higher account funding requirements, higher
margin requirements and overall higher risks. Please ensure
that your trading plan stays within your risk profile and is
supported by your broker account funding levels at all times.

Examples:
| GridTrendMultiplier EA Configuration Guide | 34

1. Lot Adjustment for FIFO is set to Normal Position Sizing


No FIFO specific lot adjustments take place. The lot for new grid trades is determined by the
settings at Position Sizing.
2. Lot Adjustment for FIFO is set to Apply FIFO Adjustments
• Position Sizing is set to Manual Lot Size (mandatory)
• Assuming a broker market with minimum lot size of 0.01 and stepping 0.01, catering for up
to 18 counter-trend grid levels during price pullback.
• BUY/SELL Lots for 'Manual Lot Size' is set to 0.10
The grid trades in the BUY direction get the following lot size allocations:

Grid Level Lots Entered

Up 1 Cash in & restart of grid.


Start 0.10
Down 1 0.09
Down 2 0.11
Down 3 0.08
Down 4 0.12
Down 5 0.07
Down 6 0.13
Down 7 0.06
Down 8 0.14
Down 9 0.05
Down 10 0.15
Down 11 0.04
Down 12 0.16
Down 13 0.03
Down 14 0.17
Down 15 0.02
Down 16 0.18
Down 17 0.01
Down 18 0.19
Down 19 and beyond No position entered.
| GridTrendMultiplier EA Configuration Guide | 35

Visual Grid Feedback on Chart


Grid
Active
Above/Below
Shown
Levels
Grid
Grid Levels Shown Above/Below Active Grid
The number of grid levels to be displayed on the chart above and below the current active grid levels.
Controls how many grid levels get visualized on the chart marking future trade activities.
Scheme
Colour
On-Chart
Grid
BUY/SELL
BUY/SELL Grid On-Chart Colour Scheme
Offers various grid level visualization profiles on the chart in terms of colours to be used for grid levels.
Value zero (0) turns off grid visualization on the chart, other value in the range of 1 to 7 provides
different colour scheme for the grid levels.
Colour
Level
Above
Close
Grid
Grid Close Above Level Colour
The colour of the horizontal line on the chart marking the upper limit for grid trades if configured at
Close Grid On or Above Price parameter.
| GridTrendMultiplier EA Configuration Guide | 36

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.

Planning Mode Visual Feedback

Planning Mode Visual Feedback

Selects the colours for the various graphical elements presented by the Forecast Tool in the chart.

Planning Mode Visual Description


Feedback

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

Planning Mode Visual Description


Feedback

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.

Tick Scaling for CFD Markets

Tick Scaling for CFD Markets


Provides a consistent tick, pip, cent and point values across various markets and brokers. This is
specific to stock indices, metal, commodity etc markets keeping the cent or dollar unit consistently
applied. Wherever the EA is configured with a 'Pip' value then it is consistently mapped to the cent or
dollar unit for those non-FOREX markets.

Tick Scaling for


Description
CFD Markets

Based on the characteristics of the market the EA automatically


recognizes if the underlying market was a stock index market,
Auto Scale for Index
like the US30, GER30 or JP225 etc. In this case the 'pip' values
Markets
configured for the EA are scaled up to the 'dollar' value of the index:
12345.67
The EA does not scale up the 'pip' values even if the market could be
Never Scale
recognized as a stock index market.
The EA applies the scaling up of the 'pip' values to the 'dollar' value
even if the market could not be recognized as stock index market.
Always Scale
This option is useful if the 'dollar' based approach is desired for
trading.

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

Stop Tick Scaling


Calculated
Trading Chart of Loss EA for CFD Buy Entry
Stop Loss Description
Approach Market Parameter Markets Fill Price
Value
Value Value

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

Stop Tick Scaling


Calculated
Trading Chart of Loss EA for CFD Buy Entry
Stop Loss Description
Approach Market Parameter Markets Fill Price
Value
Value Value

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

5.1 How to Download MT4


Question
How can I install the MT4 platform?
I checked the MetaQuotes site and it looks like I can only download the MT5 platform.

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.

5.2 How to Download the Setup Application


Question
How to download the GridTrendMultiplier EA Setup application?

1. Visit the GridTrendMultiplier EA Web Support Centre page.


2. Read the Web Support Centre Terms and Conditions and Privacy Policy then tick the checkbox to
accept them.
| Knowledgebase | 41

3. Click on the Download EA Setup button to download the EA setup for the MT4 terminal.

5.3 How to Install the GridTrendMultiplier EA


The GTM EA comes with a setup application to provide a wizard based installation process to the selected
MT4 terminal.

Before you start...


• Ensure that you have the login credentials to the Web Support Centre.
• Ensure that you have an MT4 terminal version 4.00 build 1380 or later installed.

1. Exit the MT4 if it was running.


2. Download the latest version of the GridTrendMultiplier EA for MT4 from the Web Support Centre
page.
3. Run the downloaded setup application. Select the MT4 instance through the setup wizard pages
to where you want the EA to be installed.
4. 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)

These pictures highlight the steps how to install the EA.


| Knowledgebase | 42

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 .

5.4 How to Upgrade the EA


Question
How to upgrade the GridTrendMultiplier EA?

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

2. Exit the MT4 terminal if it was running.


3. Execute the downloaded GridTrendMultiplier EA setup application. Follow through all of the
wizard pages to complete the EA installation.
4. Start up the MT4 terminal.

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

5.5 How to Attach the GridTrendMultiplier Expert Advisor to a Chart


Step by step guide to get the EA up and running on a chart for the first time.

The following pictures demonstrate the first time activation of the GridTrendMultiplier Expert Advisor in
a few steps.

Attach the EA to a chart


| Knowledgebase | 45

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

2. Select the Inputs tab:

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 EA is up and running


After successful authentication the GridTrendMultiplier EA starts up.

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.

5.6 For Mac Users


| Knowledgebase | 48

5.6.1 How to Download the Setup Application on Mac


Question
How to download the GridTrendMultiplier EA Setup application on Mac?

1. Visit the GridTrendMultiplier EA Web Support Centre page.


2. Read the Web Support Centre Terms and Conditions and Privacy Policy then tick the checkbox to
accept them.

3. Click on the Download EA Setup button to download the EA setup for the MT4 terminal.

The file is saved into your Downloads folder:


| Knowledgebase | 49

5.6.2 How to Install the GridTrendMultiplier EA on Mac


The GTM EA comes with a setup application to provide a wizard based installation process to the selected
MT4 terminal.

Before you start...


• Ensure that you have the login credentials to the Web Support Centre.
• Ensure that you have macOS 11 Big Sur or later installed.
• Ensure that you have an MT4 terminal version 4.00 build 1380 or later installed.

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

4. Click on the Next of the Setup wizard pages:

5. If you see the 'No valid MT4 application...' message then click on its OK button:

6. Then click on the Add target directory... button:


| Knowledgebase | 51

7. Select the folder [/Users/your_name/]Library/Application Support/MetaTrader 4/Bottles/


metatrader4/drive_c/Program Files/MetaTrader 4
If the Library folder is not visible then follow through the How to make the Library folder visible
on Mac topic before you go further in the installation process.

Important: do not go into any subfolder of the Program Files/Metatrader 4


| Knowledgebase | 52

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:

11. The EA name appears in the Navigator window:

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).

5.6.3 How to make the Library folder visible on Mac


By default the Library folder is hidden on Mac computers. Follow the steps below to make the Library
folder visible.

1. Start the Finder app


| Knowledgebase | 54

2. In the Finder select the Go > Home menu item:

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.

5.6.4 Download & Install the GridTrendMultiplier EA on Mac


The GTM EA comes with a setup application to provide a wizard based installation process to the selected
MT4 terminal.

Before you start...


• Ensure that you have the login credentials to the Web Support Centre.
• Ensure that you have macOS 11 Big Sur or later installed.
• Ensure that you have an MT4 terminal version 4.00 build 1380 or later installed.

1. Visit the GridTrendMultiplier EA Web Support Centre page.


2. Read the Web Support Centre Terms and Conditions and Privacy Policy then tick the checkbox
to accept them.
| Knowledgebase | 56

3. Click on the Download EA Setup button to download the EA setup for the MT4 terminal.

The file is saved into your Downloads folder:

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:

9. Then click on the Add target directory... button:


| Knowledgebase | 59

10. Select the folder [/Users/your_name/]Library/Application Support/MetaTrader 4/Bottles/


metatrader4/drive_c/Program Files/MetaTrader 4
If the Library folder is not visible then follow through the How to make the Library folder visible
on Mac topic before you go further in the installation process.

Important: do not go into any subfolder of the Program Files/Metatrader 4


| Knowledgebase | 60

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:

14. The EA name appears in the Navigator window:

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).

5.7 Buy or Sell Only Mode Grid


Question
How can I configure the GridTrendMultiplier EA to run in Buy only or Sell only mode? I.e. trading in one
direction only.
In buy only mode the GridTrendMultiplier EA enters only buy grid trades, in sell only mode the
GridTrendMultiplier EA enters only sell grid trades.

BUY only mode


Set the following three EA parameters as highlighted below for BUY only mode.
| Knowledgebase | 62

1. Turn ON buy direction


Set the BUY Grid Trading Allowed parameter to Enabled

2. Turn OFF sell direction


Set the Automatic vs Manual Sell Settings parameter to Manual Sell Settings: Fill in SELL...
Fields Below
Set the SELL Grid Trading Allowed parameter to Disabled

SELL only mode


Set the following three EA parameters as highlighted below for SELL only mode.
| Knowledgebase | 63

1. Turn OFF buy direction


Set the BUY Grid Trading Allowed parameter to Disabled

2. Turn ON sell direction


Set the Automatic vs Manual Sell Settings parameter to Manual Sell Settings: Fill in SELL...
Fields Below
Set the SELL Grid Trading Allowed parameter to Enabled

5.8 MetaViewer dll could not be found


Issue
After the EA setup application finished the following error message was popped up:
There was a problem starting C:\Windows\system32\MetaViewer.dll The specified module could
not be found.
There was a problem starting C:\Windows\system32\MetaViewer64.dll The specified module
could not be found.
| Knowledgebase | 64

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.

5.9 GridTrendMultiplier Expert Advisor First Time Activation


Step by step guide to get the EA up and running on a chart for the first time.

The following pictures demonstrate the first time activation of the GridTrendMultiplier Expert Advisor in
a few steps.

Attach the EA to a chart


| Knowledgebase | 65

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

2. Select the Inputs tab:

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 EA is up and running


After successful authentication the GridTrendMultiplier EA starts up.

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

5.10 Frown Face Instead of Smiley Face After Attach


Issue
After attaching to chart the EA is not managing trades, a frown face appears in the top right corner of
the chart.

EA's common parameters might be not enabled


The Allow live trading, Allow DLL imports and Allow import of external experts might be not
enabled
• Press F7 key and verify that the Allow live trading, Allow DLL imports and Allow import of
external experts are checked in the EA property dialog.

Autotrading is disabled
The AutoTrading might be disabled
| Knowledgebase | 69

• Verify that the toolbar button AutoTrading is pressed.


Toolbar button when Expert Advisors disabled:

Click to enable:

5.11 What is the Leverage of My Account


Question
What is the leverage of my MT4 broker account?
I am logged in to my demo or live MT4 account and want to know the leverage available on the
account.

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.

5.12 How to Figure Out My Broker's GMT Offset?


The MT4 platform presents its chart using the time of its broker server. The various brokers configure
their server time according to their own choice, many of them are in one of the European timezone
ranging from GMT+0 to GMT+3, but some brokers opt to have their server in the US Estern timezone,
which is GMT-5. These GMT offsets may get further adjusted for the daylight savings from March till
October of every year.
The GridTrendMultiplier EA uses the time for trading decisions therefore its time input parameters need
to be adjusted by the GMT offset of the broker's server. This article describes how to figure out the
GMT offset specific to the MT4 broker account.
| Knowledgebase | 70

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'.

For an example, assuming the following:


• Market Watch time: 18:29
• GMT time as per the search result: 15:29
Then the calculated GMT offset is 18:29 - 15:29 = 3:00 hours. In practice - in the limited context of
the forex broker servers - it is sufficient to calculate the difference between the hour parts: 18 - 15 = 3
hours.

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:

MT4 Terminal Broker GMT Offset

AxiTrader AxiCorp Financial Services Pty Ltd +3


IC Markets International Capital Markets Pty Ltd +3
InstaForex InstaForex Companies Group +3
FXCM Forex Capital Markets Inc +3
ThinkForex TF Global Markets (Aust) Pty Ltd +3
RoboForex EU RoboForex (CY) Ltd +3
Tallinex Tallinex Ltd 0
Oanda OANDA Corporation -4
MB Trading FX MB Trading Futures Inc -4

5.13 EA Is Not Starting Up After Attach to Chart


Issue
The EA reports successful initialisation and advises about disabled Expert Advisors.
| Knowledgebase | 71

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:

5.14 No Updates to Chart


Issue
The GridTrendMultiplier EA does not update information on the chart for several minutes.

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.

Demo account is expired


MT4 will not be able to connect to the demo account if it's expired. In this case MT4 will keep asking for
the login details and fail all login attempt.
| Knowledgebase | 72

• 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.

5.15 Enable Full Trade History For Grid P&L Calculations


Issue
The GridTrendMultiplier EA displays a message that it cannot find the buy or sell trade which started off
the ongoing grid run.

Full trade history is not enabled in MT4


The GridTrendMultiplier EA periodically calculates the total profit & loss of all the grid trades since
the start of the grid. In the case the grid was started off in the previous calendar months the default
MT4 terminal settings will not keep the details of past closed tickets, which in turn may block the EA to
calculate the grid P&L, and it has to stop.
1. Go to Terminal window (Ctrl+T)
2. Select Account History tab
3. Right-click inside the tab area
| Knowledgebase | 73

4. Select All History in the context menu

5.16 Grid Initial Tickets Not Found Message Box


Issue
The GridTrendMultiplier EA displays a message box similar to the one below:

Initial tickets not found


The GridTrendMultiplier EA periodically calculates the total profit & loss of all the grid trades since the
start of the grid. The first buy and sell tickets of the grid are the initial tickets, and the EA adds up profit
and losses of all closed and open tickets since those initial tickets . This message appears when those
initial tickets could not be found on the broker account, which prevents the EA to calculate the grid
profit and loss.
• The default MT4 terminal setting, after its installation, is to keep the details of closed trades only
for the current calendar month. If roll-over to next calendar month took place while the EA was
| Knowledgebase | 74

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:

If connection is lost then login again or restart MT4 to force reconnection.

5.17 Prompted for Access ID at Service Access Settings


Issue
After attaching to chart the GridTrendMultiplier EA asks for my Access ID in the Service Access
Settings window.

Type in your Access ID


The GridTrendMultiplier EA checks that the usage of product is appropriately licensed. After product
purchase a user profile is created on our web support site and the product can be downloaded
from that web site. The support site allows to set up an Access ID which is required by the
GridTrendMultiplier EA to validate the product licence. By default this Access ID is configured to be the
same as your selected login name to the web support site.
• When prompted, please enter your Access ID to the window and click Save:

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

5.18 How to Edit the EA Input Values


Question
How can I edit or change the settings of the GridTrendMultiplier EA once it is attached to a chart?

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

5.19 Not Enough Memory For Bar History Or Indicator

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.

5.20 No Trades Due to Trade Disabled


Issue
The GTM EA got attached to a chart, the EA is up and running. It keeps submitting market orders to
the broker server. However, the broker's server does not execute these market orders, instead, the
broker says the trade on this broker account is disabled:

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.

5.21 Backtest In Visual Mode Not Working

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

Global Allow DLL imports is not enabled


You may need to enable the DLL imports in the MT4 for terminal global parameters to run the
GridTrendMultiplier EA in the backtest environment.
1. Open the MT4 global Options by selecting Tools > Option (CTRL+O)
2. Select the Expert Advisors tab
3. Check the Allow DLL import

4. Restart the MT4: exit the MT4 application, wait 5 seconds then start it up again.

5.22 Backtest Not Working

Issue
After the backtest finished no result showing.
| Knowledgebase | 78

Global Allow DLL imports is not enabled


You may need to enable the DLL imports in the MT4 for terminal global parameters to run the
GridTrendMultiplier EA in the backtest environment.
1. Open the MT4 global Options by selecting Tools > Option (CTRL+O)
2. Select the Expert Advisors tab
3. Check the Allow DLL import

4. Restart the MT4: exit the MT4 application, wait 5 seconds then start it up again.

5.23 Connection Down Message


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:
| Knowledgebase | 79

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.

5.24 Suspended Message


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.

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.

5.25 Computer Always-on


Question
How to ensure that Windows does not go into sleep or hibernation mode?

How to Turn off Sleep & Hibernation


Ensure that your computer is turned on throughout the FOREX market hours from Monday to Friday,
and your computer is running the MT4 application and the EA is attached to a chart. Simply leave your
computer and the MT4 up and running at all times. Please ensure that your Windows does not go into
sleep or hibernation mode:
1. Go to Start > Windows Settings > Power & Sleep
2. Select Never in the dropdown:

5.26 Backtest - MT4 no history data error messages


Issue
After the backtest finished no result showing.
Error message: The message is : ERROR 1101 Start - past exception - MT4 no history data

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:

5.27 No Trades During Backtesting

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.

Run a Backtest in Visual Mode


In order to see any settings issue with the the GridTrendMultiplier EA I would suggest to run a backtest
in Visual mode. This would give a chance to see the EA dashboard and any error message in it.
Go to the MT4 Strategy Tester window and tick the Visual mode box:

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.

Do not forget to clear the Optimization box if it was ticked before:


| Knowledgebase | 82

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

Check the Bar History Quality


Once no errors are reported in the EA dashboard then you may turn off the visual mode and run the
backtest. Ensure that you use the Every tick mode during the backtest (Settings tab):

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.

5.28 Visual Mode Checkbox Missing in Strategy Tester


Issue
Visual mode checkbox is missing in the Strategy Tester.
| Knowledgebase | 84

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

5.29 No Result in Optimization

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.

1. Click the Optimization Results tab in the Tester.


2. Right click in the empty area for the menu above.
3. Uncheck the Skip Useless Result menu
| Knowledgebase | 86

4. Rerun the optimization.

5.30 Step-by-step Installation of Expert4x EAs and Indicators


In this tutorial the name of MetaTrader is used as an example. Replace the MetaTrader with your
broker specific MetaTrader name.
1. Start your MT4 terminal and select the File > Open Data Folder menu

The menu opens a File Explorer.


2. Close your MT4
| Knowledgebase | 87

3. Check the File Explorer


• If the File Explorer shows a folder like this one below

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.

5.30.1 Standard EA, Indicator installation


In the opened File Explorer the origin.txt or the origin file was found.
Please follow through the steps below to install the Expert4x EA or Indicator on your MT4
| Knowledgebase | 88

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

6. Check the EA or Indicator in the MetaTrader after installation


a. Start your MetaTrader
b. In the Navigator panel open the Expert Advisors section if you installed an EA or the
Indicators section if you installed an Indicator and look for the EA or Indicator.

5.30.2 Non-standard EA, Indicator installation


In the opened File Explorer the terminal.exe or terminal file was found.
Please follow through the steps below to install the EA or Indicator on your MT4
1. Right click on the name of the Setup application
2. Select Run as administrator (You may get a few security warning or you may need to type in the
Windows administrator password)

3. Follow through the application until you reach the Select Target MetaTrader Directory window.
4. Click Add target directory... button
| Knowledgebase | 90

5. Navigate to your MetaTrader folder

and click OK.


6. Scroll down to the end of the list. Select the target directory. Click Next.

7. Follow through the rest of the setup application.


| Knowledgebase | 91

8. In the end click Install

9. Check the EA or Indicator in the MetaTrader after installation


a. Start your MetaTrader
b. In the Navigator panel open the Expert Advisors section if you installed an EA or the
Indicators section if you installed an Indicator and look for the EA or Indicator.

5.31 How to download an EA setup in VPS environment


In this topic we guide you through the EA setup application download in VPS environment.
1. Start the File Explorer: Click the File Explorer
| Knowledgebase | 92

2. The File Explorer started.

3. Select the address bar section


| Knowledgebase | 93

4. Type in: https://my.eafactory.com/expert4x and press Enter to start the Internet Explorer

Did you get blank screen? As you see below:

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.

5. When the Web support Site is appeared please log in


| Knowledgebase | 94

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.

Warning messages related to the download


• Do you want to save GridTrendMultiplier EA_v5.4.0_Setup.exe ...?

Click Save to resolve this warning


• If you use Internet Explorer 9.0 you may get this message:
GridTrendMultiplier EA_v5.4.0_Setup.exe is not commonly downloaded and could
harm your computer
This message is a new features in Internet Explorer 9.0. IE 9.0 has increased user security.
"When you download a program from the Internet, SmartScreen Filter will check the
program against a list of programs that are downloaded by a significant number of other
Internet Explorer users and a list of programs that are known to be unsafe. If the program
you're downloading isn't on either list, SmartScreen Filter will display a warning that the file
| Knowledgebase | 95

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

To start the installation process after the download click Run


8. Clean up after the download in the Internet Explorer

5.31.1 How to enable JavaScript in your Internet Explorer


Issue
I tried to load the Web Support Centre in the Internet Explorer But the following error message
popped up.

JavaScripts are disabled in the Internet Explorer


To load the Web Support Centre you may need to enable the usage of JavaScript in the Internet
Explorer
1. In the Inter Explorer click Tools icon
2. Select Internet options

3. Go to the Security tab


| Knowledgebase | 96

4. Select Custom level

5. Scroll down until you see Scripting


6. Under the Active scripting select Enable
| Knowledgebase | 97

7. Click OK

8. Click OK

9. Refresh the https://my.eafactory.com/UserInterface/index.zul?p=1 page ang login

5.31.2 How to Enable Download in your Internet Explorer


Issue
I tried to download the EA setup application in the Internet Explorer But the following error message
popped up.
| Knowledgebase | 98

File download is disabled in the Internet Explorer


To download a file you may need to enable the Download in the Internet Explorer
1. In the Inter Explorer click Tools icon
2. Select Internet options

3. Go to the Security tab


| Knowledgebase | 99

4. Select Custom level

5. Scroll down until you see Downloads


6. Under the File download select Enable
| Knowledgebase | 100

7. Click OK

8. Click OK

9. click the Product Download button again

5.31.3 Clean up after the download in the Internet Explorer


In this topic we guide you through how to clean up after download in VPS environment.
1. In the Inter Explorer click Tools icon
| Knowledgebase | 101

2. Select Internet options

3. Go to the Security tab


| Knowledgebase | 102

4. Click the Default level


| Knowledgebase | 103

5. Click OK

5.32 How to enable JavaScript in your Internet Explorer


Issue
I tried to load the Web Support Centre in the Internet Explorer But the following error message
popped up.

JavaScripts are disabled in the Internet Explorer


To load the Web Support Centre you may need to enable the usage of JavaScript in the Internet
Explorer
1. In the Inter Explorer click Tools icon
| Knowledgebase | 104

2. Select Internet options

3. Go to the Security tab


4. Select Custom level

5. Scroll down until you see Scripting


6. Under the Active scripting select Enable
| Knowledgebase | 105

7. Click OK

8. Click OK

9. Refresh the https://my.eafactory.com/UserInterface/index.zul?p=1 page ang login

5.33 How to Enable Download in your Internet Explorer


Issue
I tried to download the EA setup application in the Internet Explorer But the following error message
popped up.
| Knowledgebase | 106

File download is disabled in the Internet Explorer


To download a file you may need to enable the Download in the Internet Explorer
1. In the Inter Explorer click Tools icon
2. Select Internet options

3. Go to the Security tab


| Knowledgebase | 107

4. Select Custom level

5. Scroll down until you see Downloads


6. Under the File download select Enable
7. Click OK

8. Click OK

9. click the Product Download button again


Chapter

6
Operational Messages
The GridTrendMultiplier EA operational messages and resolution guide.

Expert Advisors Operational Messages


Observe the message number displayed in red in the EA dashboard. Find that EA code in the table
below and click on that number to see the details and possible resolutions:

EA Code Severity Message Description

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

EA Code Severity Message Description

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.

MetaTrader Operational Messages


Observe the message number displayed in white in the EA dashboard. Find that MT4 code in the table
below and click on that number to see the details and possible resolutions:

MT4 Code Severity Message Description

Connection, broker account or


2 Error Common error.
market related error. More...
| Operational Messages | 111

MT4 Code Severity Message Description

The market price moved in the


129 Error Invalid price. meanwhile making the price in
the order not feasible. More...
Market is closed, trading is not
132 Error Market is closed.
available. More...
Broker disabled trading on this
133 Error Trade is disabled.
account. More...
No current prices available
136 Error Off quotes. or a broker configured limit
breached. More...
The broker account does not
Amount of open and pending
148 Error allow for more open or pending
orders has reached the limit.
orders on the account. More...
MT4 terminal internal issue.
4024 Error Internal error.
More...

6.1 Operational Messages


Expert Advisor Operational Messages.

Expert Advisors Operational Messages


Observe the message number displayed in red in the EA dashboard. Find that EA code in the table
below and click on that number to see the details and possible resolutions:

EA Code Severity Message Description

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

EA Code Severity Message Description

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

6.1.1 Message 1001

Code Severity Message Description

Configuration setting is missing to


Setup problem: DLL imports not
allow the EA to use dynamicaly
allowed. Tick Allow DLL imports
1001 Error loaded libraries (DLLs). Enable the
in Common tab of the properties
load of DLLs and restart the EA.
window.
More...

Setup problem: DLL imports not allowed


Issue
The EA is not able to start up when gets attached to a chart because some of its dependencies could
not be loaded into memory. The EA requires some dynamically loaded libraries (DLL) to be loaded
into memory from disks. When the EA configuration settings do not allow the load of DLLs then the EA
cannot start up and reports this error message.
Possible root cause
• The EA configuration does not allow for the load of DLLs.
Resolution
Enable the load of DLLs in the EA configuration dialog.
1. Attach the EA to a chart, or if already attached then select the chart and
• In case of an EA: press F7
• In case of an indicator: press Ctrl+I and double-click the name of the indicator in the list.
2. Go to the Common tab of the Property window.
3. Tick the checkbox Allow DLL imports.
4. Click OK.

6.1.2 Message 1002


| Operational Messages | 114

Code Severity Message Description

Product installation is not complete


Incomplete EA installation: Run
or damaged. Run the setup
1002 Error setup application for MT4 instance
application for the MT4 terminal
"<MT4DataPath>'s Data Folder"
instance as displayed. More...

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

6.1.3 Message 1006

Code Severity Message Description

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

6.1.4 Message 1007

Code Severity Message Description

The EA is unable to perform trading


Live trading is not allowed (no smiley
operations, there is a frown icon
1007 Error face): press F7 and tick Allow live
in the top right corner of the chart.
trading box on Common tab.
More...

Live Trading Not Allowed


Issue
The EA is unable to perform trading operations, there is a frown icon in the top right corner of the chart.
Possible root cause
• The Allow live trading checkbox is not ticked at the EA properties window.
Resolution
Enable live trading in the EA properties window.
1. Go to the chart and press F7.
2. Go to the Common tab of the Expert properties window.
3. Tick the checkbox Allow live trading.
4. Click OK

6.1.5 Message 1008


| Operational Messages | 116

Code Severity Message ToDo

Authentication failed or interrupted


The EA is not able to authenticate
(<Stopped>, <Status>, <Response>,
1008 Error the user access to the service at its
<Reason>, <FlipOverCount>,
start up time. More...
<Latency>)

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

6.1.6 Message 1161

Code Severity Message Description

Market spread was higher than


1161 Warning Suspended - X times Last time... the configured maximum spread
allowed. More...

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

6.1.7 Message 1163

Code Severity Message Description

Connection - Down X times Last The MT4 lost connection to the


1163 Warning
time... broker's server. More...
| Operational Messages | 118

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

6.1.8 Message 2101

Code Severity Message Description

2101 Error Initialization failed Initialization failed More...

Initialization failed
Issue
The EA dashboard shows that Initialization failed.
| Operational Messages | 119

Possible root cause


• Your computer slowed down for some reason, and the EA could not start up in a timely manner.
• The EA shut down itself in order to reduce the load on your computer, and allow you to gain back
responsiveness of the computer, so you can free up some resources.
Resolution
Sometimes this can be associated with heavy swap usage by the operating system, which could be
caused by RAM shortage, or cycles of hibernation (close the lid of the laptop). The best way to clean
this up is to simply to reboot your computer: exit the MT4, shut your computer down and boot it up
again. Do not start up any other application just the MT4 and see if the EA can start up now, after the
reboot.

6.1.9 Message 2118

Code Severity Message ToDo

The user quits the authentication


Service access disabled
process, or the EA is not able to
2118 Error (<AccessID>, <ConfirmationID>) -
authenticate the user access to the
shutting down...
service. More...

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.

6.1.10 Message 9104

EA Code Severity Message Description

Broker server rejects orders


9104 Error Order submit failed at bid ...
submitted by the EA. More...

Order submit failed at bid


Issue
The GTM EA sends a trading request to the broker server which rejects the request due to an issue on
the broker side. The details of the broker side issue is described by the MT4 error code presented in
the EA dashboard right below the red error message - here is an example:

Possible root cause


In your MT4 chart, observe the MT4 error code displayed in the EA dashboard. Find that MT4 code in
the below table and click on that number to see the details and possible resolutions:
| Operational Messages | 121

MT4 Code Severity Message Description

Connection, broker account or


2 Error Common error.
market related error. More...
The market price moved in the
129 Error Invalid price. meanwhile making the price in
the order not feasible. More...
Market is closed, trading is not
132 Error Market is closed.
available. More...
Broker disabled trading on this
133 Error Trade is disabled.
account. More...
No current prices available
136 Error Off quotes. or a broker configured limit
breached. More...
The broker account does not
Amount of open and pending
148 Error allow for more open or pending
orders has reached the limit.
orders on the account. More...

6.1.11 Message 50001

Code Severity Message Description

'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...

Maximum Open Ticket Count Too Low


Issue
The automated position sizing feature of the EA estimates the maximum loss based on the maximum
number of open tickets allowed for a grid and the gap size. However, the Max Open Ticket Count is set
to zero.
Possible root cause
• The Position Sizing Method is set to one of the 'Percent of Account Margin/Equity/Balance' while
the Max Open Ticket Count is set to zero.
Resolution
Consider one of the following items to find resolution to the issue.
1. Keep the selected Position Sizing Method as it is, and enter value 1 or higher to Max Open Ticket
Count.
2. Alternatively, select 'Manual Lot Size' for Position Sizing Method and enter the desired lot size to
BUY/SELL Lots for 'Manual Lot Size'. In this case the automated position sizing is turned off and
the manual lot sizing is activated.

6.1.12 Message 50002

Code Severity Message Description

Position sizing failed, too Automated position sizing


50002 Error small derived Stop Loss of derived stop loss is too small.
<DerivedStopLoss>. More...
| Operational Messages | 122

Derived Stop Loss Too Small


Issue
The automated position sizing feature of the EA estimates the maximum loss based on the maximum
number of open tickets allowed for a grid and the gap size. However, either the Max Open Ticket Count
or the BUY/SELL Gap Size is set to zero.
Possible root cause
• The Position Sizing Method is set to one of the 'Percent of Account Margin/Equity/Balance' while
the Max Open Ticket Count or BUY/SELL Gap Size is set to zero.
Resolution
Consider one of the following items to find resolution to the issue.
1. Keep the selected Position Sizing Method as it is, and enter value 1 or higher to Max Open Ticket
Count and BUY/SELL Gap Size.
2. Alternatively, select 'Manual Lot Size' for Position Sizing Method and enter the desired lot size to
BUY/SELL Lots for 'Manual Lot Size'. In this case the automated position sizing is turned off and
the manual lot sizing is activated.

6.1.13 Message 50003

Code Severity Message Description

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...

Price Already On Or Above Limit


Issue
The EA does not start up because the market price is above the configured upper limit. This is to avoid
flipping between start up a new grid and close it off immediately because the market price is on or
above the limit triggering grid closure.
Possible root cause
• The current market price is already on or above the configured upper limit Close Grid On or
Above Price.
Resolution
Adjust the value of Close Grid On or Above Price to be below the current market price.
1. Attach the EA to a chart; or if already attached then select the chart and press F7.
2. Go to the Inputs tab of the Expert Property window.
3. Select the Close Grid On or Above Price entry, press F2 and enter the new value.
4. Click OK.

6.1.14 Message 50004

Code Severity Message Description

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...
| Operational Messages | 123

Price Already On Or Below Limit


Issue
The EA does not start up because the market price is below the configured lower limit. This is to avoid
flipping between start up a new grid and close it off immediately because the market price is on or
below the limit triggering grid closure.
Possible root cause
• The current market price is already on or below the configured lower limit Close Grid On or Below
Price.
Resolution
Adjust the value of Close Grid On or Below Price to be above the current market price.
1. Attach the EA to a chart; or if already attached then select the chart and press F7.
2. Go to the Inputs tab of the Expert Property window.
3. Select the Close Grid On or Below Price entry, press F2 and enter the new value.
4. Click OK.

6.1.15 Message 50005

Code Severity Message Description

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 Price On Or Above Limit


Issue
The EA does not start up because the configured buy entry price is on or above the Close Grid On or
Above Price. This is to avoid flipping between start up a new grid and close it off immediately because
the market price will be on or above the limit triggering grid closure.
Possible root cause
• The configured buy entry price is on or above the configured upper limit Close Grid On or Above
Price.
Resolution
Adjust the value of BUY Initial Entry Price to be below the Close Grid On or Above Price.
1. Attach the EA to a chart; or if already attached then select the chart and press F7.
2. Go to the Inputs tab of the Expert Property window.
3. Select the BUY Initial Entry Price entry, press F2 and enter the new value.
4. Click OK.

6.1.16 Message 50006

Code Severity Message Description

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...
| Operational Messages | 124

Buy Entry Price On Or Below Limit


Issue
The EA does not start up because the configured buy entry price is on or below the Close Grid On or
Below Price. This is to avoid flipping between start up a new grid and close it off immediately because
the market price will be on or below the limit triggering grid closure.
Possible root cause
• The configured buy entry price is on or below the configured lower limit Close Grid On or Below
Price.
Resolution
Adjust the value of BUY Initial Entry Price to be below the Close Grid On or Below Price.
1. Attach the EA to a chart; or if already attached then select the chart and press F7.
2. Go to the Inputs tab of the Expert Property window.
3. Select the BUY Initial Entry Price entry, press F2 and enter the new value.
4. Click OK.

6.1.17 Message 50007

Code Severity Message Description

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 Price On Or Above Limit


Issue
The EA does not start up because the configured sell entry price is on or above the Close Grid On or
Above Price. This is to avoid flipping between start up a new grid and close it off immediately because
the market price will be on or above the limit triggering grid closure.
Possible root cause
• The configured sell entry price is on or above the configured upper limit Close Grid On or Above
Price.
Resolution
Adjust the value of SELL Initial Entry Price to be below the Close Grid On or Above Price.
1. Attach the EA to a chart; or if already attached then select the chart and press F7.
2. Go to the Inputs tab of the Expert Property window.
3. Select the SELL Initial Entry Price entry, press F2 and enter the new value.
4. Click OK.

6.1.18 Message 50008

Code Severity Message Description

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...
| Operational Messages | 125

Sell Entry Price On Or Below Limit


Issue
The EA does not start up because the configured sell entry price is on or below the Close Grid On or
Below Price. This is to avoid flipping between start up a new grid and close it off immediately because
the market price will be on or below the limit triggering grid closure.
Possible root cause
• The configured sell entry price is on or below the configured lower limit Close Grid On or Below
Price.
Resolution
Adjust the value of SELL Initial Entry Price to be below the Close Grid On or Below Price.
1. Attach the EA to a chart; or if already attached then select the chart and press F7.
2. Go to the Inputs tab of the Expert Property window.
3. Select the SELL Initial Entry Price entry, press F2 and enter the new value.
4. Click OK.

6.1.19 Message 50112

Code Severity Message Description

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.

Grid Start Tickets No Longer Available


Issue
The EA cannot find the initial grid start tickets on the broker account and therefore halts. The EA
requires access to all grid related tickets on the broker account since the start of the grid in order to
track the profit and loss status of the grid and to manage the trades at the grid levels. When access to
the tickets on the broker account is not available the EA cannot operate and has to stop.
Possible root cause
• Calendar rolled over to the next month and the MT4 terminal is configured to keep the trade
history only for the current month. If the grid was started off in the previous month then the details
of the initial grid trades no longer get downloaded from the broker server causing this issue.
• User switched to another broker account in the MT4 terminal while the EA was running. The EA
will not be able to find the grid tickets on the new broker account as those were created on the
other broker account.
• The broker server keeps trade history only for a limited number of trades or for a limited calendar
days duration. When these limits are exceeded and the grid is still ongoing then the information to
track the grid trades gets lost.
Resolution
Consider one of the following items to find resolution to the issue.
1. Reconfigure the MT4 terminal to download the full history of trades, i.e. have trades history not
only for the current month but for previous ones as well to allow long grid cycles being tracked by
the EA. Follow the steps described at Full Trade History Must Be Enabled.
| Operational Messages | 126

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.

6.2 MetaTrader Operational Messages


MetaTrader Operational Messages.

MetaTrader Operational Messages


Observe the message number displayed in white in the EA dashboard. Find that MT4 code in the table
below and click on that number to see the details and possible resolutions:

MT4 Code Severity Message Description

Connection, broker account or


2 Error Common error.
market related error. More...
The market price moved in the
129 Error Invalid price. meanwhile making the price in
the order not feasible. More...
Market is closed, trading is not
132 Error Market is closed.
available. More...
Broker disabled trading on this
133 Error Trade is disabled.
account. More...
No current prices available
136 Error Off quotes. or a broker configured limit
breached. More...
The broker account does not
Amount of open and pending
148 Error allow for more open or pending
orders has reached the limit.
orders on the account. More...
MT4 terminal internal issue.
4024 Error Internal error.
More...

6.2.1 MT4 Message 2

MT4 Code Severity Message Description

Connection, broker account or


2 Error Common error.
market related error. More...
| Operational Messages | 127

MT4 Message: Common error


Issue

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.

6.2.2 MT4 Message 129

MT4 Code Severity Message Description

The market price moved in the


129 Error Invalid price. meanwhile making the price in the
order not feasible. More...

MT4 Message: Invalid price


Issue

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.

6.2.3 MT4 Message 132


| Operational Messages | 128

MT4 Code Severity Message Description

Market is closed, trading is not


132 Error Market is closed.
available. More...

MT4 Message: Market is closed


Issue

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.

6.2.4 MT4 Message 133

MT4 Code Severity Message Description

Broker disabled trading on this


133 Error Trade is disabled.
account. More...

MetaTrader Message: Trade is disabled


Issue
The GTM EA got attached to a chart, the EA is up and running. It keeps submitting market orders to
the broker server. However, the broker's server does not execute these market orders, instead, the
broker says the trade on this broker account is disabled:

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.

6.2.5 MT4 Message 136

MT4 Code Severity Message Description

No current prices available or a


136 Error Off quotes. broker configured limit breached.
More...

MT4 Message: Off quotes


Issue

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.

6.2.6 MT4 Message 148

MT4 Code Severity Message Description

The broker account does not allow


Amount of open and pending orders
148 Error for more open or pending orders on
has reached the limit.
the account. More...

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

6.2.7 MT4 Message 4024

MT4 Code Severity Message Description

4024 Error Internal error. MT4 terminal internal issue. More...

MT4 Message: Internal error


Issue

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

Closure at Price Level Forex Broker Requirements


parameters 20 System Requirements 13
Closure at Profit Level Frown face
parameters 18 Knowledgebase 68
Closure by Optimum Restart
parameters 21
Closure of Buy + Sell Trades in Hedged Pairs
G
parameters 18, 22 Grid Close Above Level Colour
Combined Profit & Risk Settings parameters 31, 35, 35
parameters 17, 18, 18, 18, 19, 19, 20, 20, 20, 21, 22, Grid Close Below Level Colour
33, 37 parameters 31, 35, 36
Common error Grid Close On or Above
Message 126 parameters 20
Computer Always-on Grid Close On or Below
Knowledgebase 80 parameters 21
Configuration Grid Closeout Summary Text Colour
Configuration Principles 16 parameters 31, 35, 36
Operation Principles 16 Grid Initial Tickets Not Found
Configuration Principles Knowledgebase 73
Configuration 16 Grid Levels Shown Above/Below Active Grid
Connection Down Message parameters 31, 35, 35
Knowledgebase 78 GridTrendMultiplier EA
Copyright Notices Initial Ticket 73
Copyright Notices 5 GTM EA
Installation 6, 41
D Installation on Mac 47, 49, 55
Installation on Macintosh 49, 55
DLL Imports Not Allowed
Knowledgebase 76
H
Visual Mode 76
Download Hardware Requirements
Clean up after the download in the Internet Explorer System Requirements 13
100 Hedging Support Requirements
How to enable Download in your Internet Explorer 97, System Requirements 13
105 How to download an EA setup in VPS environment
How to enable JavaScript in your Internet Explorer 95, Knowledgebase 91
103 How to Download MT4
VPS 91 Knowledgebase 40
Drawdown Warning Level How to Download the Setup Application from the Web
Parameters 18, 18, 23, 23 Support Centre
Knowledgebase 40
How to Download the Setup Application from the Web
E Support Centre on Mac
EA Non-standard Installation Knowledgebase 47, 48
Knowledgebase 89 How to Edit the EA Input Values
EA Not Starting Up Knowledgebase 75
AutoTrading Disabled 68, 70 How to enable Download in your Internet Explorer
EA Standard Installation Downloadn 97, 105
Knowledgebase 87 Knowledgebase 97, 105
ECN/STP Broker Accounts How to enable JavaScript in your Internet Explorer
System Requirements 14 Downloadn 95, 103
Enable Full Trade History Knowledgebase 95, 103
Knowledgebase 72 How to Upgrade the EA
Equity Amount Reserved for This EA Knowledgebase 43
Parameters 18, 18, 23, 23
I
F Indicator Non-standard Installation
FIFO Support Knowledgebase 89
System Requirements 13 Indicator Standard Installation
First Time Activation Knowledgebase 87
Activation 9, 44, 64 Initial Ticket
Sadface 73
| Index | 134

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

Common error 126 Operating System Requirements


Internal error 130 System Requirements 13
Invalid price 127 Operation Principles
Market is closed 127 Configuration 16
MT129 127 Operations Settings
MT132 127 parameters 31, 31, 32, 32, 32, 33, 35, 35, 35, 36, 36,
MT133 128 36, 36, 36, 39
MT136 129 Optimum Restart Minimum Ticket Count
MT148 129 parameters 18, 21, 21
MT2 126
MT4024 130 P
Off quotes 129
Trade disabled 128 parameters
MetaTrader (MT4) Requirements and Settings Automatic vs Manual Sell Settings 25, 30
System Requirements 13 Balance of Buy & Sell Grid Trades 22
MetaViewer dll could not be found BUY/SELL Gap Scaling After Grid Level 25
Knowledgebase 63 BUY/SELL Gap Scaling Percent 25
Minimum Grid Gap Size BUY/SELL Gap Size 25, 26
parameters 31, 33 BUY/SELL Grid On-Chart Colour Scheme 31, 35, 35
Minimum Lot Size Requirements BUY/SELL Grid Settings 25, 25, 26, 26, 26, 26, 30
System Requirements 14 BUY/SELL Grid Trading Allowed 25, 25
MT129 BUY/SELL Initial Entry Price 25, 26
Message 127 BUY/SELL Lots for 'Manual Lot Size' 26
MT132 BUY/SELL No New Buy/Sell On or Above Price 25, 30,
Message 127 30
MT133 BUY/SELL Stop Loss 25, 26
Message 128 BUY/SELL Take Profit 26
MT136 Close Grid On or Above Price 18, 20
Message 129 Close Grid On or Below Price 18, 20
MT148 Closure at Loss Level 19
Message 129 Closure at Price Level 20
MT2
Closure at Profit Level 18
Message 126
Closure by Optimum Restart 21
MT4024
Closure of Buy + Sell Trades in Hedged Pairs 18, 22
Message 130
Combined Profit & Risk Settings 17, 18, 18, 18, 19,
19, 20, 20, 20, 21, 22, 33, 37
N Grid Close Above Level Colour 31, 35, 35
Grid Close Below Level Colour 31, 35, 36
No New BUY/SELL Above Level Colour
Grid Close On or Above 20
parameters 35, 36
Grid Close On or Below 21
No New BUY/SELL Below Level Colour
parameters 36 Grid Closeout Summary Text Colour 31, 35, 36
No New BUY/SELL On or Below Grid Levels Shown Above/Below Active Grid 31, 35, 35
parameters 25, 30, 30 Level Sensitivity 31, 32
No New SELL Above Level Colour Lot Adjustment for FIFO 31, 33
parameters 31 Magic Number 31, 39
No Result in Optimization Max Gap of Buy vs Sell Open Trades 18, 22, 22
Knowledgebase 85 Max Gap Resolution 18, 22, 22
No Trades Max Loss Amount 18, 19, 19
Knowledgebase 78, 79 Max Loss Percent 18, 19, 20
No Trades Due to Trade Disabled Max Loss Pips 18, 19, 20
Knowledgebase 76 Max Open Ticket Count 31, 32
No Trades Since Max Open Trade Duration 31, 32
Knowledgebase 76, 83 Max Spread Pips 31
No Updates to Chart Max Spread to Allow Trade 32
Knowledgebase 71 Minimum Grid Gap Size 31, 33
Not Enough Memory For Bar History Or Indicator No New BUY/SELL Above Level Colour 35, 36
Knowledgebase 75 No New BUY/SELL Below Level Colour 36
No New BUY/SELL On or Below 25, 30, 30
O No New SELL Above Level Colour 31
Operations Settings 31, 31, 32, 32, 32, 33, 35, 35,
Off quotes 35, 36, 36, 36, 36, 36, 39
Message 129 Optimum Restart Minimum Ticket Count 18, 21, 21
| Index | 136

Planning Mode Visual Feedback 36 T


Position Risk Percent 18, 23, 24
Position Sizing 18, 23, 23, 24, 32 Target Max Count if Buy or Sell Open Trades
Position Sizing Method 18, 23, 23 parameters 18, 22
Reentry After Grid Closure 31, 31 Target Max Count of Buy or Sell Open Trades
Startup & Operation Mode 17 parameters 22
Target Profit Amount
Target Max Count if Buy or Sell Open Trades 18, 22
parameters 18, 18, 18
Target Max Count of Buy or Sell Open Trades 22
Target Profit Percent
Target Profit Amount 18, 18, 18
parameters 18, 18, 18
Target Profit Percent 18, 18, 18
Target Profit Pips
Target Profit Pips 18, 18, 19
parameters 18, 18, 19
Tick Scaling for CFD Markets 31, 37 Tick Scaling for CFD Markets
Visual Grid Feedback on Chart 35 parameters 31, 37
Parameters Trade disabled
BUY/SELL Counter-Trend Gap Scaling Percent 27, 27 Message 128
BUY/SELL Counter-Trend Lot Scaling Percent 27, 28 Trading vs Planning Mode
BUY/SELL Counter-Trend Scaling 27 Parameters 17
BUY/SELL Counter-Trend Scaling After Grid Level 27,
27
BUY/SELL Trading Boundary 30 V
Drawdown Warning Level 18, 18, 23, 23 Visual Grid Feedback on Chart
Equity Amount Reserved for This EA 18, 18, 23, 23 parameters 35
Startup & Operation Mode 17 Visual Mode
Trading vs Planning Mode 17 DLL Imports Not Allowed 76
Planning Mode Visual Feedback Visual Mode Checkbox Missing in Strategy Tester
parameters 36 Knowledgebase 83
Position Risk Percent VPS
parameters 18, 23, 24 Download 91
Position Sizing
parameters 18, 23, 23, 24, 32
Position Sizing Method W
parameters 18, 23, 23 What is My Account Leverage
Knowledgebase 69
R
Reentry After Grid Closure
parameters 31, 31

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

You might also like