Job finished
Specification
This will be a new version of the Expert Advisor you coded for me.
FixedProfit should not be a certain amount of money (USD),
but a certain amount of pips that should be profit.
For Exmple:
Fixed Profit = 100
SL = 500
TP = 1500
1st Trade Buy 1 Lot at 1,29500
2nd Trade Sell 1,4 Lot at 1,29000
3rd Trade Buy 0,94 Lot at 1,29500
Then the price reaches TP at 1,31000
1st Trade: 1 Lot * 1500 Pips Profit = +1500
2nd Trade: 1,4 Lot * 2000 Pips Loss = -2800
3rd Trade: 0,94 Lot * 1500 Pips Profit = +1400
+1500
-2800
+1400
=+100
The lot sizes of the trades should be calculated that way that there will be minimum 100 Pips Profit at the end.
It the price after the 2nd trade would have hit the lower TP (=1,27500) it would be like this:
1st Trade: 1 Lot * 2000 Pips Loss = -2000
2nd Trade: 1,4 Lot * 1500 Pips Profit = +2100
-2000
+2100
=+100
The EA should be actived if any trade is opened (manually or by another EA) an should manage this trade.
But it should work with more trades on more charts!
If i open a long position on EUR/USD and a short position at GBP/JPY the EA should manage these trades independently of each other.