Get MAX lot size? New comment RJang 2007.12.31 01:58 Can someone please help to get the MAX lot size? Lets say i have 4 opened orders Lots Size 1 Lots Size 2 Lots Size 3 Lots Size 6 I am trying if some how my script can return "MAX lot Size" and put into a variable. .. get the lot size MT5 Lot Size greater then 100 Multi EA Ray 2007.12.31 12:01 #1 Here you go: double maxLots; for(int i = 0; i < OrdersTotal(); i++){ OrderSelect(i, SELECT_BY_POS, MODE_TRADES); maxLots = MathMax(OrderLots(), maxLots); } RJang 2008.01.01 02:15 #2 Thank you so much New comment
Can someone please help to get the MAX lot size? Lets say i have 4 opened orders
Lots Size 1
Lots Size 2
Lots Size 3
Lots Size 6
I am trying if some how my script can return "MAX lot Size" and put into a variable. ..