Em Andamento

MQL4 Expert Advisor for Meta Trader 4

It's a simple Expert Advisor written in MQL4 for MetaTrader 4.

The EA opens and manages long only trades and only one trade at a time.

A buy stop order is placed at the highest high of a specified number of previous candles with stoploss at the lowest low of another specified number of previous candles.

The Buy stop order's entry price and stop loss is modified at the close of every candle to match the current highest high and lowest low of the specified number of bars. After the trade has been opened, the stop loss level of the trade will be modified accordingly at the close of every candle.

## Deliverables

The details for the code is given below:

Extern Variables (the user of the EA specifies them before running the EA)

X (integers like 5,10)

Y (integers like 5,10)

G (float variables like 0.001)

S (float variables like 5.7)

Conditions:

C1 = opening of a new bar.

C2 = Buy Stop Order Exists

C3 = open trade exists.

Action:

If C1=True, C2=True and C3=False, then Modify Buy stop order price to (the highest high of last X bars + Spread + G) and modify the Buy Order’s Stoploss to (the lowest low of last Y bars ??" G). Keep the existing lot size of the Buy stop order and don’t change it.

If C1=True,C2=False and C3=True, then modify the open trade’s stoploss to (the lowest low of the last Y bars ??" G).

If C1=true,C2=False and C3=False, then send a buy stop order at the price equal to (the highest high of last X bars + Spread + G) with Stoploss at (the lowest low of last Y bars ??" G). In this case the lot size will be equal to the extern variable S.

For all other cases, do nothing.

This operation should be run every time at the opening of a new candle. If you have more questions please ask me through the messaging system at rentacoder.

Habilidades: Engenharia, Microsoft, MySQL, PHP, Gestão de projetos, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website, Área de trabalho do Windows

Ver mais: mql4 c, Mql 4, MetaTrader 4 , meta trader expert advisor, meta expert, expert trader, expert advisor , candle, C3, c1, advisor, extern, stop loss, meta trader php, stop loss expert advisor, trade bar, trader will trade, metatrader variable, spread expert advisor, price action system, buy expert, candle trader, candle low expert advisor, candle open expert advisor, metatrader candles change

Acerca do Empregador:
( 6 comentários ) singapore, Singapore

ID do Projeto: #3023963

Premiar a:

isys

See private message.

$85 USD em 6 dias
(10 Avaliações)
3.4

5 freelancers estão ofertando em média $92 para este trabalho

alex73

See private message.

$63.75 USD in 6 dias
(34 Comentários)
5.8
edgesolutions

See private message.

$21.25 USD in 6 dias
(87 Comentários)
5.6
silenttecheu

See private message.

$255 USD in 6 dias
(6 Comentários)
5.6
YuriyShevtsov

See private message.

$34 USD in 6 dias
(7 Comentários)
3.7