Download MetaTrader 5

Better "for" loop

To add comments, please log in or register
Chunsheng Yang
185
Chunsheng Yang  
(int i=OrdersHistoryTotal()-1,i>=0,i--){
 //do something
}
...since major CPUs' "count" registers count the "for" loop backward.
whroeder1
15900
whroeder1  
Alain Verleyen
Moderator
33234
Alain Verleyen  
Chunsheng Yang:
...since major CPUs' "count" registers count the "for" loop backward.
What's your problem ? I don't get it.
To add comments, please log in or register