I need to develop EA in MQL for MT4. The EA will not initiate trades but it will manage existing opened trades or pending trades when they become live:
1. The EA will ONLY manage the trades of the currency pair/chart which it is attached to.
2. The only 2 inputs for the Ea are TakeProfit in $$ and StopLoss in $$
3. The EA ill calculate the price level of TP and SL of the combined opened orders (one or more).
4. It will plot green line on the chart representing TakeProfit price level of the combined opened orders (one or more), and will plot a red line representing StopLoss price level of the combined opened orders (one or more), and will plot a dotted green line representing the Breakeven line.
5. Breakeven needs to be calculated taking into consideration commission and Swap.
6. The EA will recalculate the price level and re-plot the 3 lines in case I manually close a single order or in case of a pending order becomes live.
7. The EA will calculate the overall pip value in $$ of all opened live orders: $$/per pip
8. The EA will need to show the following information on the chart:
TP = ….. $$
SL= ……. SS
Pip value = ….. $$