Sei sulla pagina 1di 10

Tutorial Version 1.

This visual tutorial shows you how easy and fast you can automate advanced forex strategies without any
programming knowledge. You can use almost any custom indicator in automated system very easily. You can find
thousands of indicators for Metatrader in the internet. Try and find your own systems for profitable trading. Our
state-of-the-art forex trading automation tool is easy enough to be used by novice traders and non-programmers
and yet it provides even the most sophisticated traders with the necessary features.

It will be even easier to understand this tutorial if you watch these videos (click on the link to open a video):
• Lesson 1: How to create EA with any price breakout strategy
• Lesson 2: Creating Forex Expert Advisor with standard indicators

 How to upload custom indicator? ………………………………………………………………………. 1


You need to upload your custom indicator firstly in order to automate strategy with it. When indicator is uploaded you can use it
as any standard indicator.

 Example 1: custom indicator "ADXcrosses.mq4"…….…….…………..………………………………. 2


You will learn how to use Metatrader Data Window and create signals for indicators. Step by step instructions how to create
signals which trigger when indicator arrow appears.

 Example 2: custom indicator "Var Mov Avg3.mq4"……...……………………….……………………. 3


One more example of signal creation with different custom indicator. You can create signals with any indicator. For more
detailed information about different variations of signals, see Signals Cheat Sheet on page 7.

 Dynamic stop-loss and dynamic take-profit example 1 ….….………….………………………………. 4


You can adapt stop loss and take profit to the market conditions. In this example: custom indicator (support and resistance) for
stop loss and ATR (average true range) indicator for take profit. You can use your own indicators for SL and TP.

 Dynamic stop-loss and dynamic take-profit example 2 …….……………….…….……………………. 5


In this example: stop loss at previous candle level and take profit with fixed risk-reward ratio. You can create any other rules,
which would fit your strategy best. Use your creativity and find what works for you.

 One of useful features: Strategy Reversal …..…….……………………………….……………………. 6


You can try to reverse rules in several seconds and see what works better.

 Signals Cheat Sheet ……………….…….……………………………………………………...….……. 7


Many signal comparison combinations. If you don’t know how to create signal, look here. Clearly explained difference between
“instant” and “continuous” signals.

If you have any questions do not hesitate to contact us. You can send message from web site at www.EACreator.com
2) Go to menu “Upload indicator”

1) Start creating EA 4) Click “Upload”

3) Click “browse” and find indicator


(*.mql4 file) on your computer and
double-click it

EA Creator www.eacreator.com

5) Parameters and modes will be automatically read


from the indicator file and default values shown on
the screen.
You do not need to edit them at this time – you will
be able to set different parameters when you create
a new signal (step7).

6) Click “Ok” and you will be able to see this


indicator in the list (below the standard indicators)
while creating a new “indicator signal”

Note: You need to


upload EA only one
time. After first upload
you will be able to use
it later in any EA.

7) When indicator is successfully uploaded you can use it in any signals


like a standard indicator.

You can use it in Opening (entry), Closing (exit) signals for buy and sell
orders. You can use it for dynamic stop loss and dynamic take profit or
automatically starting and stopping EA.

You can set parameters and which indicator lines (modes) should be
used while creating a signal.

How to create signals with custom indicator? See example in the next page.
Values of indicato modes (output values)
in Metatrader Data Window (ctrl+D)

1) There is no value for this output: Up


(blue arrow).

2) Down arrow (red) just appeared so it


has value greater than 0

3) Create a signal which will occur when


a new indicator arrow appears.

Arrow appears when ADXcrosses > 0

4) Uploaded custom
indicators appear in
this list near the 5) For this indicator both buy and sell signals
standard indicators looks similar until you click continue.

6) This indicator works like this: new arrow appears on


the finished bar when new bar is started.
Indicator has value greater than 0 on a bar with arrow,
so we need to choose shift = 1. This means that you are
using the bar which is already finished.

7) This indicator has 2 possible output values. Names 8) It is not important if you choose
sometimes can be different than in Metatrader Data this signal as instant or continuous. In
Window, but you can see colors here which make it both cases it will last as long as one
easier. bar (because this indicator never has
consecutive bars with arrows pointing
In these pictures RED arrow is chosen for SELL signal. to the same direction).

Buy signal would look like the same except that arrow
will be chosen as blue
9) Signal for SELL is
finished.
EA Creator
www.eacreator.com

Note: This is just one from thousands of indicators that


you can use. You can create signals with almost any
indicator. You can explore various combinations of signals
and find profitable strategies or automate old ones.
10) Create second signal for buy.
Tips: Repeat same steps, just this time
- check what values indicator gives in Metatrader Data Window (open by pressing ctrl+D) choose “Blue” instead of “Red” in
- check how indicator changes in a real time: you will see when and on which bar arrow appears. step 6.
- You can imitate real time and check how indicator works and what values it have: open Metatrader
Tester, select checkbox “Visual mode”, start testing and add needed indicators when new chart opens.
Metatrader Data Window (ctrl+D) Values near the chart changes when you move cursor on the chart.
This indicator has 3 output values. As you move cursor you can see
that first value always has value greater than 0, which is a price
level where the line is. We will be using first output for signals in
1 this example.

Example: Example:
BUY signal: when bar closes SELL signal: when bar
above indicator line closes below indicator line

2 4

EA checks for signal only when


Using indicator shift = 1 in bar is finished (and close price
order to avoid false signals is not changing any more), so
when indicator repaints. we choose “Last (shift = 1)”
5
3

Choose first output value


as mentioned above,
because it always has value
of the line

Signal is “Instant” because


we need it only when first
bar closes above indicator.

Tip: Other output values could be used for different signals:


“green” > 0 when indicator line rises, and “red” > 0 when Tip: If you would select “Continuous”, then EA will give signal on
indicator line falls down. This type of signal would look similar every bar which closes above (below if sell) the indicator. This may be
to example/tutorial with custom indicator “ADXcrosses.mq4” useful for confirmation if you use it in combination with other signals.
which you can find at www.eacreator.com
EA Creator www.eacreator.com
3) We add 2 pips to the stop loss in this example.
Stop loss will be 2 pips
lower than blue line (2 pips
1) Creating dynamic stop-loss by
below support level) for
using custom indicator (uploaded
buy orders
earlier)
Stop loss will be 2 pips
above red line for sell
orders 4) Choose Blue
line for buy stop
loss

2) From Metatrader Data Window (ctrl+D)


we find out that this indicator gives
5) Stop loss for sell
currency price of support and resistance
would look like the
levels, so we choose “Price” from the list
same, just choose
above
red line instead

Higher volatility = wider take profit

Benefits of dynamic SL and TP:


-> SL and TP are wider when volatility is higher and
narrower when market is moving less.
-> SL and TP can be set to some price levels which are
important (like support and resistance)
Adaptation to market conditions may make EA more
profitable.
Note: If you are using automatic money management, then
6) Creating take profit by risk will always be the same, even stop loss and take profit
using indicator ATR is different for every order.

8) ATR shows volatility, but it may


7) ATR indicator do not show price be beneficial to multiply or add Useful: indicators can sometimes give values
like the one used for SL, but it shows some value in order to make SL which are too small (or too large) for stop loss
calculated value which can be treated wider or smaller, depending on (or take profit).
as pips, just in fractional format, so we which timeframe you are using it. Too little SL can turn into fast loss. You can
choose it as “Actual size”. For more By analyzing indicator output avoid such situations by setting minimal and
info click on the question mark above values you can get idea what maximal SL and TP values in EA inputs. If
this list (there will be several examples). operation to use for stop loss or take calculated SL and TP are too small or too large
profit then position will not be opened.

10) Creating
Advice: for TP or SL use indicators which dynamic TP
always have some value higher than 0, that EA for sell which
9) You may choose different parameters or
would know what size TP or SL should be at looks alike
timeframe. Testing different variations will
order opening moment. There are many such TP for buy
indicators which you can upload and use. show what fits best for your strategy.
EA Creator www.eacreator.com
3) If you need that candle from
1) Creating dynamic stop-loss different timeframe than the one
by using candle level. where EA is attached, then you
can choose it here. Bigger
timeframe makes stop loss wider
as candles are longer.

2) In this example we set Note, that dynamic


stop loss for buy orders 4) You can add some value stop loss or take
to last candle low. here or make some other profit is converted to
operation if needed. If you whole number
leave it empty then SL will (positive integer) of
be placed exactly at candle pips before the
low as in this example. operation is made.

5) Same logic for sell orders would be


to use last candle high

Buy

Sell

6) If you want to make take profit


dynamic too, and do not know what 7) By using this type of dynamic take
indicator to use, you can relate it to profit you can set risk-reward ratio. In
stop loss. If stop loss is bigger then this example we make take profit 2
take profit will be bigger too. times bigger than stop loss.

9) TP related to SL for sell orders


would look like exactly the same as
for buy orders, so you can repeat steps
6-8 here or even copy it.
8) If you do not fill in any value here,
then take profit size will be equal to
Useful: Set minimal stop
stop loss
loss in EA input (MinSL)
in order to prevent from Note, that dynamic stop loss or take profit is
situations when candle is converted to whole number (positive integer)
too short and stop loss of pips before the operation is made.
would be too little.
EA Creator www.eacreator.com

Probably every trader has been in situation when EA testing equity curve goes down. Have
you wondered how it would look like if you created everything opposite? Now you can check
it simply by changing several EA inputs.

Original Strategy (by default all


reversal EA inputs set to false)

Here are several variations


how you can use it

1. Reverse only signals (both


opening and closing). This can show
you if your strategies entry and exit
points are chosen to the correct side
(with higher winning probability). Sell
signals are turned into buy signals and
vice versa.
Same EA with EA input
"ReverseSignals" set to True

2. Reverse only stop loss and take


profit. This will show how reversed
risk-reward ratio influences your
strategy. Stop loss size is used for take
profit and take profit size is used for
stop loss. This works even with
dynamic stop loss and dynamic take
profit.

Same EA with EA input


"ReverseSLTP" set to True

3. Reverse strategy (reverses signals and


exchanges SL with TP sizes). If equity curve
goes straight down this may reverse it to go
up. If equity curve after strategy reversal still
goes down, then probably all profits are
taken by trading costs (spread, slippages).
So if you are struggling to create profitable
strategy and reversed system still do not
show any improvement, probably you should
think about going to longer timeframe,
where spread and slippages has less effect.

Same EA with EA input


"ReverseStrategy" set to True
These EA inputs are included in every EA created on web
site, so you can check reversal of any strategy very fast.

Even if this feature do not convert your strategy into profitable, you will get
some information and get better idea to which way you can improve it. Also
you collect experience what is profitable and what isn’t much faster.
EA Creator www.eacreator.com

Indicator_1 rises Indicator_1 falls Price crosses Indicator_1


upwards
Indicator_1
Indicator_1 > Indicator_1 Indicator_1 < Indicator_1 >
Ask
Shift: 0
Shift: 1 Shift: 2 Shift: 1 Shift: 2

Signal type: instant


Signal type: continuous Signal type: continuous

Indicator_1 changes its Indicator_1 changes its Price crosses Indicator_1


direction upwards direction downwards downwards
Indicator_1 > Indicator_1 Indicator_1 < Indicator_1 Indicator_1
Bid <
Shift: 1 Shift: 2 Shift: 1 Shift: 2 Shift: 0

Signal type: instant Signal type: instant Signal type: instant

Explanation:
Price is above Price is below Indicator_1 – any indicator: either standard MT4
indicator or your uploaded custom indicator
Indicator_1 Indicator_1 Indicator_2 – any other indicator: either standard
Indicator_1 Indicator_1 MT4 indicator or your uploaded custom indicator
> <
Ask Bid Signal Type you can choose after you click
Shift: 0 Shift: 0 “continue" in the list under words: “How long this
signal lasts?”
Signal type: continuous Signal type: continuous Mode is named as “Indicator output line/value”
on the web site.

First line of Indicator_1 crosses upwards First line of Indicator_1 crosses downwards
the second line of same indicator the second line of same indicator
(if indicator repaints) (if indicator repaints)
Indicator_1 Indicator_1 Indicator_1 Indicator_1
> <
Shift: 1 Shift: 1 Shift: 1 Shift: 1

Mode: first line Mode: second line Mode: first line Mode: second line

Signal type: instant Signal type: instant

First line of Indicator_1 crosses upwards First line of Indicator_1 crosses downwards
the second line of same indicator the second line of same indicator
(if indicator does not repaint) (if indicator does not repaint)
Indicator_1 Indicator_1 Indicator_1 Indicator_1
> <
Shift: 0 Shift: 0 Shift: 0 Shift: 0

Mode: first line Mode: second line Mode: first line Mode: second line

Signal type: instant Signal type: instant


EA Creator www.eacreator.com

First line of Indicator_1 is above the First line of Indicator_1 is below the
second line of same indicator second line of same indicator
(if indicator repaints) (if indicator repaints)

Indicator_1 Indicator_1 Indicator_1 Indicator_1


> <
Shift: 1 Shift: 1 Shift: 1 Shift: 1

Mode: first line Mode: second line Mode: first line Mode: second line

Signal type: continuous Signal type: continuous

First line of Indicator_1 is above the First line of Indicator_1 is below the
second line of same indicator second line of same indicator
(if indicator does not repaint) (if indicator does not repaint)

Indicator_1 Indicator_1 Indicator_1 Indicator_1


> <
Shift: 0 Shift: 0 Shift: 0 Shift: 0

Mode: first line Mode: second line Mode: first line Mode: second line

Signal type: continuous Signal type: continuous

Indicator_1 crosses Indicator_2 Indicator_1 crosses Indicator_2


upwards (if indicators repaint) downwards (if indicators repaint)
Indicator_1 > Indicator_2 Indicator_1 < Indicator_2

Shift: 1 Shift: 1 Shift: 1 Shift: 1

Signal type: instant Signal type: instant

Indicator_1 crosses Indicator_2 Indicator_1 crosses Indicator_2


upwards (if indicators do not repaint) downwards (if indicators do not repaint)
Indicator_1 > Indicator_2 Indicator_1 < Indicator_2

Shift: 0 Shift: 0 Shift: 0 Shift: 0

Signal type: instant Signal type: instant

Indicator_1 is above Indicator_1 is below


Indicator_2 (if indicators repaint) Indicator_2 (if indicators repaint)
Indicator_1 Indicator_2 Indicator_1 Indicator_2
> <
Shift: 1 Shift: 1 Shift: 1 Shift: 1

Signal type: continuous Signal type: continuous


EA Creator www.eacreator.com

Indicator_1 is above Indicator_2 Indicator_1 is below Indicator_2


(if indicators do not repaint) (if indicators do not repaint)
Indicator_1 Indicator_2 Indicator_1 Indicator_2
> <
Shift: 0 Shift: 0 Shift: 0 Shift: 0

Signal type: continuous Signal type: continuous

Bar closes above indicator Bar closes below indicator

Candle Close Indicator_1 Candle Close Indicator_1


> <
Shift: 1 Shift: 1 Shift: 1 Shift: 1

Signal type: instant Signal type: instant

Indicator_1 is above some level line Indicator_1 is below some level line
(e.g. 80) (e.g. 80)
Indicator_1 Indicator_1
> <
Numeric value: 80 Numeric value: 80
Shift: 0 (1 if repaints) Shift: 0 (1 if repaints)

Signal type: continuous Signal type: continuous

Indicator_1 crosses some level line Indicator_1 crosses some level line
(e.g. 80) upwards (e.g. 80) downwards
Indicator_1 Indicator_1
> <
Numeric value: 80 Numeric value: 80
Shift: 0 (1 if repaints) Shift: 0 (1 if repaints)

Signal type: instant Signal type: instant

Indicator_1 shows arrow upwards Indicator_1 shows arrow downwards


Indicator_1 Indicator_1
> Numeric value: 0 > Numeric value: 0
Shift: 1 (usually) Shift: 1 (usually)

Mode: up (usually first) Mode: down (usually last)

Signal type: instant Signal type: instant

Some tips:
 You don’t know if indicator repaints? Most indicators repaints, so it’s usually best to use shift = 1. If you don’t know, if indicator
repaints you can choose shift = 1 with any indicator. In this case signal is received a bit later; however it will save you from false
signals. If you need to get signal as fast as possible and risk that it may change, then use shift = 0.
 In dynamic stop loss and dynamic take profit it is usually best to use shift = 0 as it gives the newest value of the indicator.
 You may see mode names a bit different in MT4 Data Window (ctrl+d) and web site, however they always are in the same order.

Potrebbero piacerti anche