Thread: Extend MQL!!
View Single Post
  #34 (permalink)  
Old 05-23-2007, 11:19 PM
MrPip MrPip is offline
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 556
MrPip is on a distinguished road
using OrdersTotal

This also works well.

for(int cnt=OrdersTotal()-1;cnt>=0;cnt--)
{
OrderSelect (cnt, SELECT_BY_POS, MODE_TRADES);
if ( OrderSymbol() != Symbol()) continue;
if ( OrderMagicNumber() != MagicNumber) continue;

// Process Order

}

Robert
Reply With Quote