Laszlo Komka / Publications
Forum
it is buy trade exist?
Im just learning mql4, but I have a problem. I want to know if it a buy trade exist, but the function always returned true. Whats the problem? bool vaneBuy(){ bool buy=false; for(int x=OrdersTotal();x>=1;x--){ if(OrderSelect(x,SELECT_BY_POS,MODE_TRADES)==true);{ if(OrderType()==OP_BUY){