FAQ & How to’s
What is Forex?
The Foreign Exchange market, also referred to as the “Forex” is the largest financial market in the world, with a volume of about $2 trillion a day. It also trade 24 hours/day.
What is Expert Advisor (EA)?
Expert Advisors – programs that allow you to automate completely both analyzing and trading processes in META TRADER platform. Expert Advisors can relieve you from the routine of analyzing financial markets and performing trades. Simply saying – EA is a robot who trades for you! Valuable: EA works under Meta Trader 4 trading platform!.
How to install Metatrader and an EA?
What is Expert Advisor (EA)?
Expert Advisors – programs that allow you to automate completely both analyzing and trading processes in METATRADER platform. Expert Advisors can relieve you from the routine of analyzing financial markets and performing trades. Simply saying – EA is a robot who trades for you! Valuable: EA works under Meta Trader 4 trading platform!
1. How to open demo account with MetaTrade4 platform?
You can download MetaTrader4 and use demo account here:
http://www.metaquotes.net/files/mt4setup.exe
After downloading You have file of mt4setup.exe, run this file.






Now You can use this demo account for trade!
2. How to use access to results in real time?
Start any MT4 platform. If you have not MetaTrader4 platform you can download and use demo account here:
http://www.metaquotes.net/files/mt4setup.exe
Please press on “File” —> “Login”:

And enter Login and Password. For example:
Login: 83394
and
Password: ********
(I can give you the password for viewing results of trade of the EA during of 12 hours, then the password will be changed) – To get access to account, please contact me
and
Server: 198.173.4.28:443

And You can see in real time of alls trades this EA and alls history of trade.
3. How to install of EA (Expert Advisor)?
For example You want install of EA_BIG-Trades_EUR-USD.
The file EA_BIG-Trades_EUR-USD.ex4 should be copied to the
C:\Program Files\MetaTrader\experts\
folder before opening MetaTrader.
After You go, file in folder, will be necessary to rerun MetaTrader 4, therefor that MetaTrader 4 has found the ne EA (Expert Advisor). If all are done it is right, that experts will come up for list as on pic (for You only EA_BIG-Trades_EUR-USD):

Choose or open new chart (M30), EUR/USD and in windows Navigator dual click expert EA_EasyDay_EUR-USD. In Common parameters make as shown on pic:

The Last that necessary, this allow trade an expert/am having pushed on button to panels MetaTrader 4:
![]()
If all is made correctly that in the right top corner chart will appear the symbol of the smile:

Next EA (Expert Advisor) all make automatically and does not demand your presence.
For right work EA_EasyDay, the notebook should be constantly included and connected to Internet.
Please click on
“Tools” —> ” History Center ” —> “Forex” —> “EURUSD” —> “Download”:


After downloading click on “Close” and You can test any EA for EURUSD pair.

On chart with EA, please click on the right button of the mouse —> “Expert Advisors” —> “Strategy Tester” or click “F6″

Choose the Model of testing: Every tick …….

and period of testing (for example, for EA_BIG-Trades_EUR-USD it M30 – time frame using 30 Minutes).
How to Register?
Go here and follow the steps.
Why Forex?
* Forex markets trade 24/5 a day.
* The forex market is the most liquid in the world.
* Forex offers up to 1:500 control
* We can automated our system using Expert Advisor (EA) on Meta Trading platform
Why using EA?
When You have a system that profitable in forex,
You will trade forex by that system manually.
But you have to stand by 24/5 day in front of the PC for trading.
Maybe you will missed it while you sleeping or take a shower.
Rather than that you can code your system become Expert Advisor.
The Expert Advisor will do 100% just like your system did (if you coding it right) and you won’t missed it while you sleeping.
So if your system failed or loss, than your Expert Advisor will loss too.
That’s what I called it Automated Forex.
They are tons of Expert Advisor such as Scalping EA, Trend Ea, Ea for ranging pair, etc…
You must choose the right EA for the right market condition, if you are using Trend EA on ranging market, Of course you will lose!
So don’t take Expert Advisor as holy grail. How excellent is your system is gonna loss too as market changing.
If that happened, you gonna have to make or find other Expert Advisor for the current market condition.
Expert Advisor is just a tool to make you trade forex simpler.
One other impartant reckon, Using EA to reduce human error (emotion, fatigue, greedy, etc)
Why should I trade Forex?
Forex trading is attractive because it offers supreme freedoms. You can live very nearly anywhere as long as you have access to the internet. Forex trading allows you to work from home or even trade while traveling! You choose when to trade and when not to. Best of all, it has a minimal time requirement.
What is traded on the Foreign Exchange?
What is a Pip?
Example: If the EUR/USD bid price rises from 1.4500 to 1.4501 this represents an increase of 1 pip.
What is the value of a Pip?
What is margin (control)?
Iam really new to Forex, who will teach me?
Where do i find a Broker?
Alpari Ltd. http://www.alpari-idc.com
APEX FX Trading http://www.apexfxtrading.com
Bull Trend Brokerage http://www.bulltrend-bg.com
FiboGroup http://www.fibogroup.com
EuroForex Development LLC. http://www.euroforex.net
fxTeam http://www.fxteam.ru/
Financial Arrangement Worldwide Ltd. http://www.forexservice.net
FinMarket Ltd. http://www.finmarket.com.ua
Forex Global Investment LLC http://www.forexgi.com
Forex Ltd. http://www.forexua.com
FX-Pro Ltd. http://www.fx-pro.com
IC Vector Securities Ltd. http://www.icvector.ru
Inforex Introducing Broker http://www.inforex.org
Integral Bank http://www.fxintegral.com.ua
Interbank FX http://www.interbankfx.com
Jaguars Investment LLC http://www.jaguarsinvestment.com
Joy Financial Group http://www.joyfg.com
KVB Kunlun New Zealand Limited http://www.kvbkunlun.com
Lefco Bank http://www.lefco.ru
Livingston Investment Inc. http://www.mytrustbank.com
Man Financial (S) Pte Ltd http://www.manfinancial.com.sg
MIG Investments Group LLC http://www.miginvest.com
Orion Global Financial Services http://www.orionbrokers.com
Routine Forex GmbH http://www.eforex-asia.com
Real Trade Ltd. http://www.realtrade.lv
STS Finance SC http://www.finance.sts.bg
Teletrade D.J. International Consulting Ltd. http://www.teletrade.ru
The Commercial Group http://www.cgtim.com
TradeFXDirect.com, Inc. http://www.tradefxdirect.com
Ukrsotsbank http://forex.ukrsotsbank.com
Windsor Brokers Ltd. http://www.windsorbrokers.biz
X-Trade Sp. z o.o. http://www.x-trade.biz
FXBest http://www.fxbest.ru
ManFinancial http://www.manfinancial.com.sg/en
SNC investment http://www.sncinvestment.com
FXDirectDealer http://fxdd.com
Neurex http://www.neurex.de
NorthFinance http://www.northfinance.com
Admiral Investments and Securities Ltd. http://www.forextrade.ru/
Alpari Ltd. http://www.alpari-idc.com/
APEX FX Trading http://www.apexfxtrading.com/
Bull Trend Brokerage http://www.bulltrend-bg.com/
FiboGroup http://www.fibogroup.com/
EuroForex Development LLC. http://www.euroforex.net/
fxTeam http://www.fxteam.ru/
Financial Arrangement Worldwide Ltd. http://www.forexservice.net/
FinMarket Ltd. http://www.finmarket.com.ua/
Forex Global Investment LLC http://www.forexgi.com/
Forex Ltd. http://www.forexua.com/
FX-Pro Ltd. http://www.fx-pro.com/
IC Vector Securities Ltd. http://www.icvector.ru/
Inforex Introducing Broker http://www.inforex.org/
Integral Bank http://www.fxintegral.com.ua/
Interbank FX http://www.interbankfx.com/
Jaguars Investment LLC http://www.jaguarsinvestment.com/
Joy Financial Group http://www.joyfg.com/
KVB Kunlun New Zealand Limited http://www.kvbkunlun.com/
Lefco Bank http://www.lefco.ru/
Livingston Investment Inc. http://www.mytrustbank.com/
Man Financial (S) Pte Ltd http://www.manfinancial.com.sg/
MIG Investments Group LLC http://www.miginvest.com/
Orion Global Financial Services http://www.orionbrokers.com/
Routine Forex GmbH http://www.eforex-asia.com/
Real Trade Ltd. http://www.realtrade.lv/
STS Finance SC http://www.finance.sts.bg/
Teletrade D.J. International Consulting Ltd. http://www.teletrade.ru/
The Commercial Group http://www.cgtim.com/
TradeFXDirect.com, Inc. http://www.tradefxdirect.com/
Ukrsotsbank http://forex.ukrsotsbank.com/
Windsor Brokers Ltd. http://www.windsorbrokers.biz/
X-Trade Sp. z o.o. http://www.x-trade.biz/
FXBest http://www.fxbest.ru/
ManFinancial http://www.manfinancial.com.sg/en/
SNC investment http://www.sncinvestment.com/
FXDirectDealer http://fxdd.com/
Neurex http://www.neurex.de/
North Finance http://www.northfinance.com/
Forex Service http://www.forexservice.net/
N Two Bank http://www.n2bank.com/
Velocity 4X http://www.velocity4x.com/
Crown Forex http://www.crownforex.com/
Tradex Swiss AG http://www.tradexfx.com/web/index.php?pid=1
Alpha Capital Markets http://www.alphacapitalmarkets.com/main.jsp
Strategy Draftsman FX http://www.strategybuilderfx.com/
How to apply experts and indicators and make them work?
C:\program files\metatrader\experts
Indicators go to
C:\program files\metatrader\experts\indicators
After you place the file in the appropriate directory, open it with MetaEditor.
MT4 you should use MT4 version of MedaEditor, and MT3 you should use the MT3 version.
Hit the enter key 4 or 5 times and then hit backspace the same digit of times and then hit
compile for MT4 and MT3 is a file check. This will compile the expert or indicator and produce
an .ex4 file for MT4 and an .exp file for MT3. Run Metatrader and open an account.
Close the charts or currency pair that start up with the
initial start up of the program and then open the currency pair that you want to trade.
You then should select the time frame of the charts. Then go to the Navigaor and click on Expert Advisors.
The expert, if loaded in the right location will be there. Drag it to the chart and let it go.
Click on Allow Live Trading and click ok. The expert should run. For indicators, do the same as about,
except in the Navigator, click on Custom Indicators. Look for the indicator that you want and drag it and
let it go on the chart.
How to’s….
How-to add-alarm-any-indicator.doc
How do I know when a Scrip is working or not.doc
How to, Hot keys.doc
How to add alarm to any indicator.doc
How to add a Magic Digit to a EA.doc
How to add a magic digit to a expert.doc
How to attach file to an email.doc
How to back test part 1 Coders_GMetaTrader_Strategy_Tester_Part11 (1).pdf
How to back test part 2 Coders_GMetaTrader_Strategy_Tester_Part11 (1).pdf
How to code trade only one time per bar code..doc
How to code tutorial.doc
How to get a Modelling Quality of 90% when testing EA in MT4 (1).pdf
How to get a Modelling Quality of 90% when testing EA in MT4.pdf
How to Slot in and activate an EA by doc.doc
How to Make a MTF code.doc
How to Take modeling quality of 90% when testing EAs.pdf
How to Optimized settings.doc
How to optimize the RSI peroid in his indicator.doc
How to place a Indicator in a chart.doc
How to place a Indicator in the platform form email or.doc
How to place more than line in excel cell and type vertical.doc
How to place more than one programe on.doc
How to refresh EAs with out shuting down.doc
How to send send statements.doc
How to set email alerts.doc
How to set up MT4 with GMail.eml
How to stop loging.doc
How to tell Experts from Indicators.doc
How to tell if a indicator or a expert.doc
How to test EA Testing Instructions.ppt
How to use email from MT4.doc
How to use presets.doc
How to use Presets for your expert.doc
How to watch the indicators using the Visual mode of the back tester.doc
How to watch the indicators using the Visual mode of the back tester 2.doc
MQL4 COURSE lessons.zip
MQl4BookEnglish.rar
More FAQ’s and How to’s….
How to apply experts and indicators and make them work?
===========================================
If it’s an expert, you place it in the experts folder of Metatrader.
C:\program files\metatrader\experts
Indicators go to
C:\program files\metatrader\experts\indicators
After you place the file in the appropriate directory, open it with MetaEditor.
MT4 you should use MT4 version of MedaEditor, and MT3 you should use the MT3 version.
Hit the enter key 4 or 5 times and then hit backspace the same digit of times and then hit
compile for MT4 and MT3 is a file check. This will compile the expert or indicator and produce
an .ex4 file for MT4 and an .exp file for MT3. Run Metatrader and open an account.
Close the charts or currency pair that start up with the
initial start up of the program and then open the currency pair that you want to trade.
You then should select the time frame of the charts. Then go to the Navigaor and click on Expert Advisors.
The expert, if loaded in the right location will be there. Drag it to the chart and let it go.
Click on Allow Live Trading and click ok. The expert should run. For indicators, do the same as about,
except in the Navigator, click on Custom Indicators. Look for the indicator that you want and drag it and
let it go on the chart.
Click on Ok and the indicator should function.
Right click in the Market Watch window. In the drop down menu, click on ‘Show All Symbols.’
This gives me 18 pairs. If ‘Auto Arrange’ is unticked, you can rearrange the order of pairs by dragging.
Programming hints…
===============
In MetaEditor, should you ever need to know how to use a
point function, open navigator, select search, then type in the
function, eg, SendMail()…
Also, you can click on the command You don’t even need to hightlight it.
Then press F1.
MetaTrader MQL-4 Programming Allusion Manual can be found at
http://www.fengshui-123.com/viewthread.php?tid=17849
——————
I seem to have found a bug in MT4 operator precedence – specifically that
boolean operators don’t seem to have the normal precedence found in
virtually every other foreign Foreign language. I was writing a ‘Trading Time’ indicator -
one that would show whether a part of chart lay within the time I
could be at the screen or not, and found that in attempting to use ‘&&’
and ‘||’ that ‘&&’ doesn’t bind tighter than ‘||’ as probable.
I had to place parentheses around the ‘&&’ arguments to make it all work
properly.
i.e.
if (A || C && D){
DoStuff();
}
had to be
if (A || (C && D)){
DoStuff();
}
This is certainly _non-standard_! C++ programmers will get caught by this
as I was, since MQL4 looks so much like C.
——————
What is Slippage?
==============
The slippage field in an expert market order command specifies a range of
prices above and below the current price at which you are willing to accept
a fill. If you are placing an order at market (buy, sell, or close) and
the slippage field is 2 pips and market price is 1.000, then you are
willing to accept the fill at any price from 0.998 to 1.002.
FXDD but does not use the slippage field when processing expert
order commands on live accounts. With FXDD the market price at the time
when the server processes your order command must exactly match the market
price when your expert sent the order command. If the price has stirred by
even 1 pip then FXDD will not fill the order and you will receive an error
message similar to: order failed [price is changed].
Some brokers such as IBFX will issue an automatic requote and automatic
fill at the requoted price if the market price is within the range specified
by the slippage field in the expert order command. Brokers can also set their
server to automatically fill the order without the requote as long as the price
is within the range specified by the slippage field.
FXDD can be very frustrating if your script requires opening or closing a
lot of trades quickly at market price.
How to do Alerts and Email
====================
I see a lot of people here asking to add alarm when an indicator is light up.
Especially when a arrow/bullet is turn on.
Really, it is very simple task. All you have to do is follow the following instructions.
1) Every indicator has an indicator array that keep the values of the indicator.
Values can be 0 or not 0. To find out the indicator name look for the command:
SetIndexBuffer
In the indicator editor it should look like this
SetIndexBuffer(0,ExtMapBuffer);
SetIndexBuffer(1,ExtMapBuffer2);
This lines tell us that we have 2 indicator buffers
2) Look when the indicator buffer change its value.
In the example above we will look to line that contains the following patter:
ExtMapBuffer[digit] = where digit can be a figure or a name.
For example: if(res!=0.0) ExtMapBuffer[shift]=res;
if after the copy sign there is 0 do nothing.
3) Change it to make an alarm.
After finding the value setting line we will add an alarm to it.
a) add { before the setting. In the example above :
if(res!=0.0) {ExtMapBuffer[shift]=res;
b) add the Alert command after the ;. In the example above:
if(res!=0.0) { ExtMapBuffer[shift]=res;
Alert(”Indicator set”);
}
Do not forget to close the }
4) repeat for every buffer value setting
Compile and you have an indicator with alert
Hope it will help you
——————————–
Could anyone help with a profit alarm/alert e.g one is long both
NZD/USD and USD/JPY, it is possible to receive a SMS or alert say when
total profit is say 20 or -50. Thanks
for(cnt=0;cnt=(20*Point)) {
Alert(OrderSymbol()+” is in profit by 20 pips.”);
SendMail(OrderSymbol(),”20 pip profit target has been reached”); }
if(OrderOpenPrice()-Bid>=(50*Point)) {
Alert(OrderSymbol()+” is in loss by 50 pips.”);
SendMail(OrderSymbol(),”is in a 50 pip loss”); }
Note: in meta editor, should you ever need to know how to use a
point function, open navigator, select search, then type in the
function, eg, SendMail()…
Note2:Click on the command. You don’t even need to hightlight it.
Then press F1.
void SendMail( thread subject, thread some_text)
Sends mail to address set in the Tools->Options->EMail tab if enabled.
Note: Posting e-mail can be denied or address can be empty.
Parameters
subject – Subject text.
some_text – Mail body.
Sample
dual lastclose=Close[0];
if(lastclose
How can I tell when there is a new Bar
=============================
from metaquotes site:
The third method is based on the time a bar is opened:
static datetime prevtime=0;
…
if(prevtime == Time[0]) return(0);
prevtime = Time[0];
…
It is the most reliable method. It works in all cases.
Can someone de-compile an EXP or EX4 file for me?
=======================================
Subject: EA Decompiler
Here is the response I got back from the guy in Russia.
Hi.
Decompiling of one EXP-file costs $10 USD.
Removal of restrictions from one EX4-file costs $10 USD.
Because recovery of a human readable MQ4 file is a hard
problem therefore decompiling of one EX4-file costs $50 USD.
I accept paypal too.
Regards
His email is e x p t o m q l @ h o t m a i l . c o m
Coding helps and hints
=================
The MT4 foreign Foreign language is based on C so that is the foreign Foreign language you’d want to study.
General programming concepts:
http://www.play-hookey.com/computers/programming.html
C basics:
http://cplus.about.com/od/beginnerctutoria1/l/blctut.htm
Another C basics site:
http://www.scit.wlv.ac.uk/cbook/
PLEASE PLEASE PLEASE Use descriptive names for all variables and procedures.
b1, gle, eres, TSL and d are NOT descriptive!
BuyTicket1, ErrorVal, ReturnVal, CurrentStopLoss, and BBandWidth ARE descriptive.
a single function for checking signals..
a single function for opening orders…
a single function for closing orders..
a single function for trailing stops..
a single function for moving s/l to break even…
Array Declarations
===============
Thankyou to all who have contributed answers to my question. With
your help I now know the Arrays within Metatrader well sufficient to
get on with my indicators.
For anyone else that has the same question, here is a summary of how
to get non buffer arrays to work in MT. (Non buffer arrays are the non
screen buffer or indicator Arrays).
Screen buffer arrays are initialized automatically because of the
SetIndexBuffer command. There can be a maximum of only 8 of these.
To have other arrays operate in the same way you need the following,
all within the start function and not before it:
1. Declare the array
eg: dual Array1[];
2. Declare Size of Arrays
eg: ArrayResize(Array1,limit);
(If you are using a variable for the array size,
make sure it is set before you try to declare the array size.)
3) Change Array to same sort of series Array as screen buffers
ie: This is the order that the array is filled
last -> first or first -> last
eg: ArraySetAsSeries(Array1,right);
I have a really basic working example below. Obviously once you have
made the array, you can now perform other functions on it in
putting it into the screen buffer:
eg: ExtMapBuffer1[i] = iMAOnArray(Array1,limit,13,8,MODE_EMA,i)
Hope this makes it clearer for anyone who has the same frustrations as
I had. Pleased trading!
and from Robert…
Just answered my own question. You declare the arrays outside
of the start function, so no potential stack overflow.
What about export and selling and chart prices ?
=====================================
Because on a sell trade the spread is paid on exit.
So rising the spread is a way for the broker to
make more money on sell trades. They take a part
of what would have been a win or give you a loss
when it might have become a win by not striking your
stop loss under normal spread conditions.
This is common when there is a head fake before a new
small term trend occurs. Also can happen when there is
a small retrace. The spread increase can turn a small
retrace into a larger retrace. And this is something
that will not show up on the chart based on the bid.
How does one convert a indicator into a expert ?
====================================
Not necessarily simple — first you have to make definitive rules for how
you trade the indicator (or what you want the expert to do or output), then
either call the indicator from your expert (meaning that the indicator must
be bestow in the indicator folder for the expert to work properly) or else
incorporate the code from the indicator into your expert. Then you use a
series of If, while, and for loops to compare current price with the value
of the indicators and place, close, or modify orders, send emails, alerts,
write comments, draw lines accordingly.
An indicator is a passive reporting of the market, it doesn’t care whether
you color it green, red, orange, black, blue…. It doesn’t judge whether
the market is oversold, overbought, trending, ranging, etc. It just draws
something on a chart based on some mathematical operation on current and
past prices.
EA’s take action — can be as simple as drawing a line, making a sound,
sending an alert, or as complicated as managing a grid of buys and sells
with unreliable sl’s tp’s lotsizes, etc. and monitoring (point events in)
hundreds of indicators from different timeframes, different pairs,
different criteria, etc, posting account statements to ftp servers every
five minutes.