仕事が完了した
指定
Creation of a simple EA with basic order management functions with order execution based on a list/array containing specific orders.
Due to the fact that all the trade entries are based on a list/array, there is no entry logic involved and the EA can be used in backtests only.
Once a trade is opened according the money management settings (lot size, TP, SL) it should be managed by the break even and trailing functionality.
The list/array of trades should be implemented into the EA code itself or based on a txt file (to be updated by the customer) with the following or similar format:
trade1 = 2022.01.04 08:35 BUY
trade2 = 2022.01.05 16:12 SELL
trade3 = 2022.01.06 19:11 SELL
.....
Each trade in the list/array cosists of date, time and direction, so the EA will open that trade at that date/time in the defined direction when running the backtest.
Regarding the order and money management the EA should be able to handle following user parameter inputs:
- LotSize
- TakeProfitPoints (specify the initial TakeProfit in points when opening the trade)
- StopLossPoints (specify the initial StopLoss in points when opening the trade)
- BreakEvenAfterPoints (after how many points the SL will be put on entry price)
- BreakEvenAddPoints (how many points will be added to the SL from previous step) -> In case 0 will be entered, then the new SL will remain at entry. In case 20 will be entered, the new SL will be entry price + 20 points in profit direction.
- TrailPointsInProfit (after BreakEvenAfterPoints trail every x points in profit)
- TrailStepPoints (add x points to the current SL) -> Current SL will be moved x points in profit direction