Metatrader MQL4 Expert Advisor: Simple Breakout EA

Requirement specification: Breakout EA

Expert Advisor to be coded for Metatrader in MQL4 language

Timeframe to be used



Magic number: [magic number]

Buffer: [number of buffer pips]

SL multiplier: [a factor determining the SL size]

TP multiplier: [a factor determining the TP size]

Fixed lots: [True/false]

Lot size: [lot size to be used if fixed lots = true]

Risk percent: [maximum capital at risk per trade]

Friday close hour: [the hour that open trades done by the EA should be closed]

Entry logic

Find the first 4H candle if the week (it appears when selecting ctrl+y in Metatrader)

Save the High value (H) and the Low value (L) from this candle.

When this candle has closed:

Open a Long position at H + Buffer value (defined in parameters)

Set SL to: L value

Set TP to: H + Buffer value + (H-L)* TP multiplier

Open a Short position at L – Buffer value (defined in parameters)

Set SL to: H value

Set TP to: L - Buffer value - (H-L)* TP multiplier

Exit logic

Trades will be closed either when TP or SL is hit. If trades are open on Friday, they should be closed on the Friday close hour (user defined with parameter)


Only one Long trade and one Short trade per week and chart can be opened. Pending orders should be deleted by the end of the week.

This is a first simple EA that I would like to have coded. Successful completion of this project can result in similar but larger projects in the future.

Habilidades: Programação C

Veja mais: mql4 breakout, candle mql4, breakout mql4, expert advisor breakout candle, breakout expert advisor, simple breakout, candle breakout, metatrader expert hour breakout, expert advisor breakout, simple breakout expert advisor, mql4 expert advisor, metatrader expert advisor breakout, simple expert mql4, metatrader mql4 timeframe, simple breakout expert, friday mql4, hour breakout, metatrader buffer, breakout metatrader, candle percent lot

Acerca do Empregador:
( 43 comentários ) Västerås, Sweden

ID do Projeto: #476667

Concedido a:


Hi Yoohan, thank you for invitation and for sharp description of task, your task is easy - I'll make it fast...

$50 USD em 1 dia
(3 Comentários)

2 freelancers estão ofertando em média $138 para esse trabalho


Hi, willing to finish your project.

$225 USD in 5 dias
(0 Comentários)