Forum

How to select order by magicnumber?

Hello, I would like to assign the EA to order many currency but i don't know how to write. - I assign magicNo of order "EURUSD" = 835, Then if the EA don't find MagicNo "835" (No order EURUSD). The EA will open order "EURUSD". - I assign magicNo of order "AUDUSD" = 478, Then if the EA don't find

How to count order by symbol (many symbol in "Trade Tab")?

Hello, My "Trade Tab" has many order and symbol in the same time like a "EURUSD", "AUDUSD", "EURGBP" ... as below But I don't correct code to separate counting "EURUSD", "AUDUSD". Please advise. Thank you

How to write _If one buy order is closed, then go to "CloseAllBuy()".

Hello Please advise the code. if ((OrderType()==OP_BUY) && OP_BUY==Close) { CloseAllBuy(); return(0); } I would like: If one buy is closed by StopLoss, then go to "CloseAllBuy()". Thank you