Trying to close a set of trades using overall profit
-
I have a series of trades that open using "add to volume". The trades are opening fine. But I am having no joy closing the trades based on average profit.
Please advise what I need to try to fix this.
-
@Tulefi remove "for each trade" above "check........unrealized" and see what happens
-
Hi AMbrogio - that has worked and is generating data, thank you.
-
-
I have come across a related issue. I need to know the current profit for a bunch of trades to use in a close out condition. Any ideas?
-
you can make a formula block with equity-balance. Put the result in a variable
-
Thank you that is a good idea. Please help me with this logic. My aim is to say that if the average price of the open trades - current price > 10 pips, then close all the trades. I am happy to try your solution but how do I set that up to achieve what I am after?
-
@Tulefi since you are adding volume, you don't need the average price only, but you need to calculate the total lot size of runnign trades. This question was already discussed many time, and i cannot find the most helpful thread anymore, but i saved the result in this example that someone have done time ago (i don't remember who)
-
I have looked and tried to understand. Thank you. I can't find "For each position" in the menu?
-
MT5 for each position
MT4 for each trade
