My ea can execute max 2 orders at time.....
I want EA that can execute unlimited number of orders!
What do I need to change here!??
void orders()
{
int totalorders = OrdersTotal();
for(int i=totalorders-1;i>=0;i--)
{
OrderSelect(i, SELECT_BY_POS);
bool result = false;
if ( OrderSymbol()==Symbol())
{
if ( OrderType() == OP_SELL ) {sells=sells+1;}
if ( OrderType() == OP_BUY ) {buys=buys+1;}
}
}
return;
}
I want EA that can execute unlimited number of orders!
What do I need to change here!??
void orders()
{
int totalorders = OrdersTotal();
for(int i=totalorders-1;i>=0;i--)
{
OrderSelect(i, SELECT_BY_POS);
bool result = false;
if ( OrderSymbol()==Symbol())
{
if ( OrderType() == OP_SELL ) {sells=sells+1;}
if ( OrderType() == OP_BUY ) {buys=buys+1;}
}
}
return;
}
forexflash