need to change this function in mql5 from mql4
int TotalOrdersOnSymbol()
{
int Count = 0;
for(int i=OrdersTotal()-1; i>=0; i--)
{
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==true)
{
if(OrderSymbol()== Symbol())
{
if(OrderMagicNumber()==MagicNumber)
{
Count+=1;
}
}
}
}
return Count;
}
0
0 comments
Sunny Dp
1
need to change this function in mql5 from mql4
Automated Traders Community
skool.com/automated-traders-community-7473
Let's collaborate to become better traders/programmers!
No spamming, no scamming!
Be kind to each other!
Leaderboard (30-day)
powered by