Forum

Function is getting some operator is needed

Can you see what is wrong here? I get some operator is needed when calling this function. I want to scan orders on other currency pairs on other charts and see what type the other orders are, and set it to a number of 1 if it is active. So I call it two times one for buy and one for sell. But it is

Hedge

Im trying to make a hedge but it wont perform as I want. If I have several orders open in the same position (Have already defined openorders as that), i am defining it that my EA has failed. So then I want to check the trend by using MA on 320 on 15 min charts if its either an BUY or SELL

Script to select certain orders and then close them MT4

Hi I'm having trouble to select the first and last order that is opened in each currency pair and then closing them when reaching a certain profit both of them. Im trading a certain strategy that if the first order and last I want them to close first. so if I have 3 trades open, I want the first and