Forum

OrderSend function returns 0 and no position is opened

Hi, since a few days (the last update) I have noticed a problem with my Expert: OrderSend function 0 and no position is opened. There is no error returned but no ticket is created. Here is my code: RefreshRates (); if (pOrderType==OP_BUY) { result= OrderSend (pSymbol

Expert advisor works with build 527 but not with 540

Hi all, a strange thing: I have an expert advisor which works fine in MetaTrader 5.00 build 527 but it doesn't work in build 540 (same machine). I have double checked that I test with the same code. In Build 540 I get the following error: 2011.11.14 18:26:18 Core 1 2010.01.26 16:06:28 failed

Comment an open position

Hi, in my Expert I would need to update positions' comments when certain conditions are met. All I could find so far is that I can get these comment by using PositionGetString(POSITION_COMMENT). What I would need is the reverse, like PositionSetString(POSITION_COMMENT). I have been experimenting