Download MetaTrader 5

What are Function return values ? How do I use them ? - page 3

To add comments, please log in or register
Have you developed a profitable strategy? Share it with millions of traders via Signals!
qjol
3243
qjol 2014.04.09 08:58  

buff_0:

qjol,

I tried your suggestion and I have the same warning: empty controlled statement found.


hops, you are right my mistake (& a big one)

if(!OrderClose(OrderTicket(),OrderLots(),NormalizeDouble(Bid,5),3,Violet)); Remove the semicplon
Alert("the order isn't close because Err no. ", GetLastError());
buff_0
17
buff_0 2014.04.09 09:04  
Wow you responded faster then I could make my edit. Thank you for the info.
123
To add comments, please log in or register