Watch how to order a trading robot
for automatic trading and testing candle pattern I want an expert advisor,
based on this indicator https://www.mql5.com/de/articles/101
This is an
indicator for the candle pattern searches, there I can also defend own patterns.
Buy / Sell is triggered by candle patterns, several patterns can have a
command for Buy / Sell at same time. Example: if found “pattern a"= buy” ; “pattern
b”= buy; “pattern c”= sell order
If an pattern was found and a buy order placed, than some time later
another buy signal is found, it should be ignore as long one position is
A precondition for Buy / Sell is
1: a trend direction and length of the
2. Value of the Pips, from Zick Zack
Turning point to lowest/highest point of the found candle pattern. An input
window, Pips value = 100; Trend = Down; Trend length = 8 candles (or show me how
I can change it in script)
For sample if Pips Value > =100 && Trend = Down && Trend length
>= 8 candles res. = buy signal OK
I want have an input window for Lot size.
TP can also triggered by candle patterns, like before buy/sell signal.
TP1 is an value depends on usually Zickzack indicator, measure the length
from last Zick Zack turning point to the farest away point of has found pattern, these length
multiple with an variable that I can write in an input window example 80% (take a look on
TP2 should be in the case, if the Kurs in a buy order going up and then falling, i want that the program
automatically take profit if the Kurs has fallen more than value X, this value X I should
can input in a input window.
I should can select what kind of signal should be TP : a candle pattern or
percent value like TP1, TP 2 is always activ.
Stop loss, should be generally the lowest point of the candle pattern, or
highest depends on trend direction. (Take a look on the draw)
Further I want have a possibility to change the SL position if enter +- X
Pips, it means from lowest/highest candle pattern Point.
Create a candle pattern “X“.
Pattern X is if
A 3 candles with similar height of the body
edge + -X. it should be possible for me to input the tolerance value X. It means how much difference in Pips between
the candle edges I want accept.
B 3 candles with similar height of the high
point + -X. it should be possible for me to input the tolerance value X. It means how much difference in Pips between
the candle highs I want accept.
The Program code should be open, that I can learning how the EA works.