工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
I am looking for a trade manager EA that can do the following:
Close an open trade for a profit or a loss based on last price or candle close (with timeframe selection). I can select up to 2 stop losses and 3 take profits. if i only want to use 1 stop loss, i want to be able to leave the second one blank as i will not use it; same for the take profits. If I want to close a partial trade, I can enter the lot sizes I want to close. If I leave it blank, the entire trade and all open trades on the chart will be closed. When i first apply this EA on the chart, I want it to draw a green horizontal line for TP's and a red horizontal line for SL's. I want to be able to drag these horizontal lines on the chart if I want to change my TP or SL prices, and then the EA would update right away.
For execution type, you can select last price (which is the same as standard SL's and TP's in Metatrader) or Candle Close. If the trade(s) on the chart are long positions, then a candle must close below the trigger price for the stop loss, or above the trigger price for the take profit. Opposite is true for short position(s). You can also select the timeframe that you want the candle close trade to execute on (this is because I switch timeframes when I watch my chart, and if I do to a 1 minute chart for example, I don't want to click out of my trade for a loss.)
These are the inputs I would like in the EA:
--STOP LOSS--
1. Execution Type - "Last Price" or "Candle Close (Default)"
2. Stop-Loss #1
Trigger Price - enter price
Timeframe - dropdown menu - choose from 1,5,15,30,60,240,daily,weekly
Lots - enter lots or leave blank to close all
3. Stop-Loss #2
Trigger Price - enter price
Timeframe - dropdown menu - choose from 1,5,15,30,60,240,daily,weekly
Lots - enter lots or leave blank to close all
--TAKE PROFIT--
1. Execution Type - "Last Price (Default)" or "Candle Close"
2. Take-Profit #1
Trigger Price - enter price
Timeframe - dropdown menu - choose from 1,5,15,30,60,240,daily,weekly
Lots - enter lots or leave blank to close all
3. Take-Profit #2
Trigger Price - enter price
Timeframe - dropdown menu - choose from 1,5,15,30,60,240,daily,weekly
Lots - enter lots or leave blank to close all
4. Take-Profit #3
Trigger Price - enter price
Timeframe - dropdown menu - choose from 1,5,15,30,60,240,daily,weekly
Lots - enter lots or leave blank to close all
Please let me know if you have anymore questions or if I need to clarify anything else. Thank you.