Not logged in
Viewing 1 post (of 1 total)

Forums>StrategyQuant>Application Support>Close all positions call – Problems, pls help

  • #238493 |
    Customer
    40 Posts

    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

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.