Thread
:
Extend MQL!!
View Single Post
#
34
(
permalink
)
05-23-2007, 11:19 PM
MrPip
Senior Member
Join Date: Mar 2006
Location: La Verne,CA
Posts: 556
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
MrPip
View Public Profile
Send a private message to MrPip
Find all posts by MrPip