Averaging TakeProfit (Group TakeProfi)
-
Hello Fxdreema Master,
I think there a lot of same question like this.. but i dont found any solution has been done. So I asking again for one more time.
How can we modify TP for all position at one price by averaging them.. and we can see the that TP line on chart..
So here some formula for averaging price+TP and i dont know to make it with variable.

and below one example how it should do

By complete this topic i hope can help others fxdreema user to create martingale ea more better.
Thank You.
-
@paiz Am not sure about pips, should work but have seen many post's saying it doesn't, never used but if you have a condition with profit => chose number with a close block beneath all will close as your picture.
-
@jstap yes it should work.. but to see TakeProfit on same price I cannot find the idea.
it should show like this..

TakeProfit is dynamic depend on AveragePrice and TotalLot
So this topic will keep being mystery xD
-
@paiz
This is easy my friend.
The difficult thing is that I've even been trying for a few months now is to include Swap and Commissions, fxdreema has a bug that doesn't compute the total sum of these values of all orders, so it's very difficult and requires a calculation based on the broker or a calculation of pure mql.

-
@ontradingx can you share project link? so i can see how did you calculate the TP Group
-
-
@ontradingx it is work.. thank you very much