I have written an EA to manage or oversee positions taken from another EA i have running. It basically looks at all positions based on magic number (they all have the same magic number) that are in profit on Friday at a certain time and is supposed to close them and leave the positions open which are behind.
The logic says if day=Friday and hour >= 23:00 and magic number=62204 and open p/l >= X pips, close all positions
The problem is it only closes the positions on the symbol chart the EA is attached to, not all positions open across all pairs with this magic number in this account.
Can someone please help me to make this work? Thanks in advance,
You must be logged in to reply to this topic.