仕事が完了した
指定
A panel in MT4 that offers following options that the EA will deal with:
1. Lot size: fixed or a risk (calculated based on Equity and posible lose if SL hit)
2. Open order now or a pending order
3. TP1, TP2 and TP3 option of pips or price.
4. Managing system: Fixed moving SL or Trailing SL
Fixed moving SL: When price reaches TP1 price, close the indicated % of the opened lot with "close by" order and move SL to break even. When TP2 is reached, close the indicated % of opened lot with "close by" order and move SL to TP1. When TP3 is reached close the rest of the lot.
Trailing SL: First and Second TPs are the same as before but the last part of the lot is followed with a trailing stop that is as far from the price as the goal is from the price. This means example:
-TP1: 1.0
-TP2: 2.0
-TP3: 3.0
When the price is at 2.0, SL should be at 1.0. When the price goes to 2.25 SL should be at 1.5(3.0-2.25=0.75 so 2.25-0.75=1.5). When the price goes to 2.5 SL should be at 2.0(3.0-2.5=0.5 so 2.5-0.5=2.0) . When price goes to 2.75 SL should be at 2.5 (3.0-2.75=0.25 so 2.75-0.25=2.5).
4. Buy and Sell buttons.
5. A button to modify existing order.
6. A button to clear all cells.
7. SL and TP3 should be set to broker from the beginning.
8. Option to add more lots whenever user wants, to be managed in the same way.
9. Display an error if numbers are not logic (TP2 closer to opening price than TP1 or TP1 on sell side and TP2 on buy side)
10.Spread conditions to open and close trades.
11. the EA will be working in different tabs (same account many different pairs)