Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
Hello,
I would need an EA based on the attached indicator. The EA should work as a standalone. I only have the ex4 of the indicator. Let me know if it is possible to just have the indicator for compiling.
The following inputs should be available, further explanations in the end.
==================================================================
Risk (dropdown menu): -Money
-Percent
Money (numerical value): default 100
Percent (numerical value): default 1.00 (!!!Important this should work with 2 decimals!!!)
Risk/Reward (dropdown menu): -1:1
-1:2
-1:3
-1:4
-1:5
Breakeven (numerical value): default 0
SL Offset (numerical value in points): default 0
Trading Session 01 (numerical time value): default 09:00-12:00
Trading Session 02 (numerical time value): default 14:00-18:00
SingleTradeMode: true/false (default false)
==================================================================
Further explanations:
The EA should enter a trade once a signal appears. If the SL Offset is set to 0. The StopLoss will be placed below/above the low/high of the entry candle. If the SL Offset for example is set to 20. It will be placed 20 points further away from the low/high of the entry candle.
The lotsize should be calculated by the risk option. Either money or percent. For money it uses a fixed risk in money defined by the inputs. For percent it uses the defined percentage value of the current account balance in the inputs.
The TP is defined by the Risk/Reward input.
When the breakeven input is set to 0 the SL will stay in place. If it is set for example to 1, once price reaches a risk/reward of 1:1 it will be set to breakeven. Example: Risk/Reward is set to 1:4 and breakeven to 2. Once price reaches risk/reward 1:2 the SL will be put to breakeven.
TradingSession 01 and 02. These values will define the times when the EA is allowed to enter trades. If a signal of the indicator comes up outside of the defined sessions it will not take any trade. Of course running trades should still be managed by the EA.
SingleTradeMode. Default it is set to false. This means the EA can open multiple trades. Example: A signal occurs, EA enters and it is still in the trade while another signal occurs, it will also take a second trade. If this value is set to true, it will only enter one trade at a time. Means it will only enter another trade if the previous trade is closed in profits or loss. All signals in between a running trade will be ignored.
Find attached the indicator.