To detach older position with current TP more than XX
-
Hai everyone...
I has tried for many style.. but still not working..
Hope some one please help....

Using (START TRADE LOOP - not more than "n" trade = 1)
My EA can detach the OLDER, NEWEST, PROFITABLE FIRST & PROFITABLE LAST = no problem..PROBLEM = How to detach amount off TP after
(START TRADE LOOP)
- Filter by type = buy
- Loop direction = Profitable Last
- Not more than "n" trade = 1
If the amount (DISTANCE) off TP reach more than certain value...
Next Block will working.
TQ......
......
FXDREEMA-01.png -
Inside the loop you can access trade parameters in Condition in category "(in loop) Trade/Order in Loop", so you can use Condition to check the distance. Then you can close that trade with "(in loop) Close trade" block.
Or if you want to check the distance between the current price and SL, then "(in loop) Pips away from SL" can be used. At some point of view this is the real SL distance at the moment.
-
ok.. i TRY..
-
-
I created similar thing because I can't see your project, and it seems to work here: http://fxdreema.com/shared/CD88sQECb
Note that TP as fixed size is calculated as TakeProfit-OpenPrice and transformed into pips, but if TP is below OP for buy trade, it will be incorrect. So, where is your TP in relation to OP for that trade? And what about other blocks - is "Start trades loop" pass?