작업 종료됨
![](https://c.mql5.com/i/avatar/avatar_na2.png)
명시
Inputs:
When attached to a chart, this EA will give the user the option to select one of the following order types: Buy Limit, Sell Limit, Buy Stop, Sell Stop.
The user will then input the lot size, opening price of the order, its SL and TP. The EA should work even if the user does not enter an SL. Remember that the user will always enter a TP but he may or may not enter an SL.
(Please see the attached screenshot as a sample input screen)
After the user has input the values as needed and closed the EA window, the EA should then place the order.
Next step - Monitor and Repeat:
Now, EA should keep an eye on the status of the order. When the order gets hit and trade gets opened, the EA should wait for the trade to hit its TP.
As soon as the TP gets hit, EA should place the same order with same TP again.
For example, if the order was 'Buy Limit 0.01 XAGUSD at 24.00 with TP of 24.15', the EA should place that same order as soon as the first order hits its TP and gets closed.
The EA will keep doing this indefinitely without any action required by the user. The user will only set the values once and the EA will keep placing the same order again as soon as the previous order hits TP.
Multiple Orders Feature:
EA should have the option to place multiple orders.
For example, when the user attaches the EA to a chart, the EA should give the user the option to add as many orders as the user wants.
Like, the user may place the following orders together:
'Buy Limit 0.01 XAGUSD at 24.45 with TP of 24.60'
'Buy Limit 0.01 XAGUSD at 24.30 with TP of 24.45'
'Buy Limit 0.01 XAGUSD at 24.15 with TP of 24.30'
'Buy Limit 0.01 XAGUSD at 24.00 with TP of 24.15'
Please note that the user may want to place 100 orders together, so the EA should have such ability to take that many order inputs.
Non-Interference Feature:
The user may attach the EA to 2 charts of the same forex pair. For example, chart 1 of XAGUSD and chart 2 of XAGUSD. In this case, the EA attached to chart 1 should not monitor, change or close the orders
placed by the EA attached to chart 2 and vice versa.
Similarly, an EA may be attached to XAUUSD chart and another EA may be attached to XAGUSD chart. In this case, both EAs should work independently of each other and should not cause any problem.
Detaching the EA:
If the user detaches/removes the EA from a chart, the EA should not do anything and just get closed. The orders already placed by EA before its removal should remain there.