On the Internet you can find free or buy for little money a great variety of mechanical systems, which, according to the authors, will bring you tens, even hundreds of percent of income per month. Most of the Grail "show very good results when tested on historical data, but the demo account and live account of such systems fail. The fact that the spelling of advisers - automated trading systems for MetaTrader 4 - very light occupation, which by the forces of any trader. Therefore, on the Internet a huge number of amateur "craft", which made some mistakes.
This post I'm starting a series of articles about how to write your
own expert as unacceptable the classic errors that distort the real
profitability of the mechanical trading system, and much more.
At first a few words about what is Advisor (Expert Advisor):
Advisor - this is programmed in MetaQuotes Language 4 trader
algorithm transactions and placing orders.
Of course, you can trade in your account manually, but, for example,
Alpari invited dozens of currency pairs, plus dozens of other tools:
CFD on U.S. stocks, on the commodity futures and more. Imagine how
much time you'll spend on an analysis of each tool. Very common
situation, when any instrument was already a signal to open
positions, but you're missing the opportune moment for the deal,
since at that time you were busy with other analysis tools. In
addition, you can not sleep or eat. But while you're sleeping, you
can sleep signal to the transaction.
You can cite dozens of reasons for making that transfer control to
your account in the hands of someone who will do it 24 hours a day,
5 days a week, without feeling any emotions (which strongly
interfere with the successful trade).
Besides, who would be able to monitor in real time all
the tools. To someone who will act strictly
in accordance with a programmed algorithm you. This is an invaluable
assistant - Counsellor, or in other words, the trading algorithm,
programmed in MetaQuotes Language 4.
All of this sounds very hopeful and optimistic.
However, not all that easy. Adviser does exactly what you ordered
it. If your trading
strategy is loss-making initially, then your adviser will
methodically, in real time, not missing a single opportunity to make
a deal, trade in your algorithm, and can bring your trading account
to a deplorable state.
However, if your trading strategy is profitable, then you can quite
quickly become a wealthy person.
Why is it necessary to use
MetaTrader Expert Advisors?
In certain sources you can read
that 90% of traders lose their money on the Forex market. This
occurs because beginning traders rush to trade without having a
Forex trading strategy. Even if they have a Forex trading strategy
it is usually not tested on historical data and there is also the
presence of what is called the "human factor.”
The use of Expert Advisors excludes the human factor and it will
help you to test Forex trading strategy on historical data. Testing
trade strategies helps to establish back-tests of MetaTrader Expert
Advisors in addition to optimizing the MetaTrader Expert Advisors
parameters via our built-in optimizer. The use of MetaTrader Expert
Advisors will give you the possibility to test your own strategy on
historical data; this means you will perform your own back-tests.
(If you have your own strategy, we can program the expert advisor
for you). When you test MetaTrader Expert Advisors on demo-account
this is a forward-test. The use of Forex Expert Advisors will allow
you to see all the disadvantages to your Forex trading strategy. All
MetaTrader Expert Advisors offered on our site allow you to see
MetaTrader Expert Advisor back-tests and because many MetaTrader
Expert Advisors are monitored on demo- accounts this allows you to
see many forward-tests as well.
Why develop your Expert Advisors under the control of MetaTrader?
As mentioned above the MetaTrader 4
is absolutely free of charge and many brokers worldwide open trading
accounts (mini-accounts and standard accounts) under control of
MetaTrader. It is much more convenient than to trade under control
of java-terminals. The MetaTrader platform has a variety of
advantages and useful functions compared to other platforms.
What is Metatratder 4 platform?
MetaTrader 4 is absolutely free of
charge and convenient for trading on the Forex market. The
MetaTrader Indicators, MetaTrader Expert Advisors, MetaTrader
scripts are built-in and based on technical analysis. In addition it
has its own programming language MQL4, which allows you to customize
these MetaTrader Indicators, MetaTrader Expert Advisors, and
MetaTrader scripts.
How do you install your Expert Advisor?
MetaTrader Expert Advisor should
have .ex4 or .mq4 file extension, mq4- source code, ex4- compiled
code. First of all it is necessary to copy this file to the
MetaTrader Expert Advisors folder of working directory. By working
directory we mean root directory, in which we installed the
MetaTrader 4 terminal. The second step is to restart MetaTrader
program. After restarting the MetaTrader, the Expert Advisor should
be added to the list in the Navigator window. You should realize
that the colored icon corresponds to mq4 file. If you have an ex4
file only then an icon in the window Navigator will be grey. The
same grey color may mean that errors in a source code have appeared.
In order to check for MetaTrader Expert Advisor errors you can press
F4 to open the MQL4 editor, and load the source code. Then Press F5
in order to compile the MetaTrader expert advisor. If everything is
successful the sentence '0 errors' should appear in the conclusion
window. Warnings however are not errors and their presence does not
hinder successful compiling.
What is Expert Advisor Back-testing?
MetaTrader Expert Advisor
Back-testing is the test of MetaTrader Expert Advisor on historical
data (on quotations). All tests of our MetaTrader Expert Advisor are
performed by trading with the Every Tick Method, which uses all
available nearest timeframes. In other words if we have more than
one period for the same timeframe then the data for the least
timeframe will be used for modeling. Control points are generated on
the basis of OHLC data of the least available timeframe - the same
as in the preceding method. In order to generate price movements
between control items there is interpolation based on predefined
templates. It is normal that several ticks can be modeled one by
one. In this situation, the last quote will be fixed because the
doubled quotes will be filtered out. Quality of modeling is 90 %
accurate, however past success does not guarantee success in the
future. All MetaTrader Expert Advisors are tested on quotations of
the AlpariUK broker. The tests for other brokers may differ, and
this occurs because of the differences in quotations from brokers.
We can help you to adjust the expert advisor for your broker at a
reasonable charge.
METATRADER EXPERT ADVISOR BACK
TESTING
Open the window METATRADER strategy tester by pressing Ctrl+R or by
right clicking on graphic arts, to which we added MetaTrader Expert
Advisor, and choose strategy tester.
Set a testing model. We recommend the Every Tick Method for all
MetaTrader Expert Advisor testing
Set a testing period and click start.
What are MetaTrader Expert Advisor Quotations?
Quotations of the various Metatrader brokers have distinctions,
therefore it is necessary to make optimization and backtesting of
metatrader expert advisors on broker quotations, which you plan to
work with. We make tests of our Metatrader expert advisors on
quotations of broker AlpariUK, as this broker gives minute and daily
quotations from 2004 So in order to upload quotations in Metatrader
terminal, you should....
What is MetaTrader Expert Advisor Optimization?
Let's examine optimization with the
example of MetaTrader Expert Advisor upstream EURJPY. We will
optimize the size of the Stop-Loss and Take-Profit. If you optimize
for MetaTrader broker AlpariUK, then the period of MetaTrader Expert
Advisor optimization will be: start at 07.2004; the end is the
current date. We recommend you don’t conduct MetaTrader Expert
Advisor optimization up to the end of period = to the current date,
but up to the end of period = current date - N of days, where N is
chosen directly for every MetaTrader Expert Advisor and depends on
how often MetaTrader Expert Advisor opens and closes orders.
MetaTrader 4
What is the point. There are smart
guys who suffer forex is not the first year and know how to write
programs. These programs
are called advisers. True, there are
important nuances that if you do not comply - you can lose all the
money, but I'm not worried at the expense of Elliott wave patterns,
overbought / oversold indicators, and other other crap.
Procedure:
Download the MetaTrader 4.
If you have not opened an account with a FOREX broker -
you need to open.
Download the Adviser on the Internet
Unpack the file Il.6Dynamic.mq4 adviser and put into the directory
c: \ Program Files \ MetaTrader NordFX \ experts \
Then go to Terminal Metatrader 4
There we find the name of Councillor il.6Dynamic and drag it to the
chart of the currency pair. Showing for the pair GBP / USD for now.
The time interval is better to take the M5
(five-minute chart)
Then click on the button under the numeral
2 (Figure above clickable - you press - it will grow). And look at
the indicator adviser under the number 3. In the picture it shows a
cross, when pressed on the 2 - Advisor to make a sad face.
- That this (looked around, had called the numeral 4)
Now click on the graphic screen, right-click.
Choosing Advisers, Properties, and there set daw
"allow live trading" click OK. And so arrogant mug advisor began to
smile, number 6
Also in Tech - the same property adviser, select
the tab "Inputs" and put a value on Lots 0.01 This type means that
in one transaction advisor will use the minimum amount.
For $ 100 this is the normal lot.
When you reach the $ 500 you can kerf lot more to 0.05
Well that's all.
Now tell about the important points. The adviser made on the
basis of the martingale, as I said, and it may be such that money on
deposit will not be enough to open a new deal that will block all
losses. It will then Khan deposit. I have over 8
months so it was 3 times.
But I knew about it so here's how to do. Take the
depot, $ 100 for example, when waiting adviser will increase its
2-fold, to $ 200 then $ 100 and shoot again, wait and so we remove
permanently the money to lose if the adviser - we still have babosy
a new deposit. My advisor dispersed $ 100 to $ 800 at first, I took
$ 500 and he poured the remaining money. I re-cast babosy, he
disbanded me 200 $ to 3600 $ per month, I brought $ 3000 and he
again poured. Well In general, I think the point is made.