Forum

How to modify order StopLoss to the TP of another order

Is there a way to set the StopLoss of an order to the take profit value of another order when it closes. I would like to set multiple orders with different take profit values, but with the same StopLoss value. As the price changes and the EA must change the StopLoss of the remaining order when the

How to get EA to read the alert messages from custom indicator?

I have a custom indicator that that provides alert messages to set pending orders I want to write a EA to auto trade, but I don’t know who to parse the alert message in real time to the EA Does anybody know who to write this part of the code

Pending order script returning 129 error

I'm very new to scripting in Mql4, but I want to make a script that takes the alert message from my indicator and sets multiple orders with the same stop and different take-profits But I keep getting a 129 error and I can't figure out why. Here is the string from my indicator GBPUSD BUY: 4.32 @