Forum

Problem with TP and SL Management in EA MQL4 code

Hi guys, I've been working on an EA that is supposed to move all positions stop losses to entry, if the last order hit take profit . The EA is restricted to 3 positions. The code below that I've written moves the first position stop loss to entry, but doesn't affect any of the other positions, and I

Quick Question on Modifying SL&TP of different orders based on the close of a first order in an EA

Hi Guys, First time posting here, with just a quick question about how to approach coding the following into an EA I'm working on. The psuedocode is something like this: EntrySignal is true -> Open 3 positions each with their own TP & SL If position 1 hits TP1, then positions 2 and 3 modify their SL