Forum

Error compiling with ErrorDescription

Hello, I'm having a problem when compiling an expert advisor. In one of the functions it uses the function GetLastError() to (well) get the last error and Print out a report. The problem I'm having during compile is that it says ErrorDescription() function is not defined. I grabbed the code for

Open Order and Close Order

Hello, I was wondering, in an EA what's the difference between opening an order (OrderSend()) and closing the order (OrderClose())? and in which area is the 'stock' bought/sold