Automated Traders Community
Log In
Community
Classroom
Calendar
Members
Leaderboards
About
Log In
1
Sunny Dp
Aug '23 in
Coding Questions
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;
}
Like
0
0 comments
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!
Free Learning Content
More Useful Content
336
Members
0
Online
1
Admin
JOIN GROUP
Leaderboard (30-day)
1
Angus Knight
+5
2
Tobi B
+4
3
Juan Maya
+4
4
Abdeljalil El
+3
5
Eric Cherriman
+3
See all leaderboards
powered by