Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
Description for EA:
- EA will enter a trade at a certain time specified by the user. The direction will be determined by the candle
- If the candle is bearish it will be a sell trade
- If the candle is bullish it will be a buy trade
- Take profit and stop loss will be selected by the user
- Money management will be either martingale or fixed lot or percentage of account
Inputs for EA:
EA will contain 4 different modes
Opposite direction mode:
As soon as the first trade is entered on the specify time. If the first trade didn’t reach its TP then the second trade will enter in the opposite direction
The second trade needs to opened on the close of the candle
Example:
15min chart:
6:45 gmt candle is bullish at 7:00 gmt a buy trade is entered
First trade is a loss
Second trade is entered once the candle closes, but the second trade will be a sell trade
So it goes on until the TP is reach
////////////
Same direction mode:
As soon as the first trade is entered on the specify time. If the first trade didn’t reach its TP then the second trade will enter in the same direction
The second trade needs to opened on the close of the candle
Example:
15min chart:
6:45 gmt candle is bullish at 7:00 gmt a buy trade is entered
First trade is a loss
Second trade is entered once the candle closes, but the second trade will be a buy trade
So it goes on until the TP is reach
/////////////////
Daily opposite direction:
As soon as the first trade is entered on the specify time. If the first trade didn’t reach its TP then the second trade will enter only on the next day at the same time in the opposite direction then the previous day,
Example:
15min chart:
6:45 gmt candle is bullish at 7:00 gmt a buy trade is entered on Monday
First trade is a loss
Second trade is entered on Tuesday 7:00 gmt, but the second trade will be a sell trade
So it goes on until the TP is reach
///////////
Daily same direction:
As soon as the first trade is entered on the specify time. If the first trade didn’t reach its TP then the second trade will enter only on the next day at the same time in the same direction then the previous day,
15min chart:
6:45 gmt candle is bullish at 7:00 gmt a buy trade is entered on Monday
First trade is a loss
Second trade is entered on Tuesday 7:00 gmt, but the second trade will be also a buy trade
So it goes on until the TP is reach
////////////////////////
Time of trade: User enters time when the EA must take the first trade
Take profit input: User enters take profit in pips
Stop loss input: User enters stop loss in pips
Money Management: User selects either MARTINGALE/FIXED LOTSIZE/PERCENTAGE OF ACCOUNT
Lot size: User enters lot size to begin with
Days to trade on: Monday – Friday (True/False)
Max spread input: User selects the max spread allowed in pips
Trading panel: Shows the amount of profit /losses, amount of trades, most martingale steps, max drawdown, max run up , true/false input to show the panel or not