Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
I have an indicator it draw lines on the chart. I need simple EA that will open trades once moving average crossed the selected level. The source code of indicator will be provided. I need only experienced fluent english speaking coder. This is a big project so that task is just a test to check skills.
Here are sample settings:
---
Comment: Hello!
Magic: 123
ADR settings (from indicator)
TF: current
Max lot size per account: 10
Max lot size per pair: 5
Profit per pair ($)
Global profit ($)
No new positions if one exits True/False
---
Longs
Symbols to trade: EURUSD, GBPUSD
Max spread: 10
Start: 02:00
Stop: 18:00
Force exit: 21:00
---
Lot size: 1
---
MA type: Exponential
MA period: 50
MA apply to: Close
MA min cross (points): 10
MA cross level: 1
---
TP level: +1 // sometimes it is impossible to place TP since price is already higher selected level. In this case do not open the trade.
Use previous day HiLo as TP: True/False // if prev day HiLo between entry and TP
SL level: -1
Remove SL in Hedge mode: True/False
Hedge True/False
Hedge disable new entries: True/False // disable new entries on crosses
Hedge first step loss only: True/False // start Hedge only if position in loss, do not open grid if in profit
Hedge profit ($): 100 // must deduct commissions eg we have 12 * 1 lot then 12 * 7$ (fee for each lot) + 100$ = profit must be >=184$
Hedge size (p): 0
Hedge size ADR: True/False
Hedge ADR size multiplier: 0.5 // Take distance in points between zero and level 1, then multiply. For example for eurusd it is 180p, then 180*0.5=90 will be grid distance.
Multiplier: 1 // multiply every step
Add lots: 0.1 // add 0.1 lot every next grid step
Shorts:
...same list of setting like for longs...
--
P.S. There must be no external files and libraries except link to the indicator. Comments must be in english.