Reply

Close all positions call – Problems, pls help

0 replies

Julianrob

Customer, bbp_participant, community, 54 replies.

Visit profile

5 years ago #238493

Hello,

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,

Julian

0