CodeMQL5 vs MQL4 order logic for loops

1
Hi everyone, I noticed that in mql5 when I write a custom Indicator with for loop, the order is reversed with respect to mq4, for example

MQL4:

Code: Select all

for(int i = limit - window_size-1; i >= 0; i--)
This code goes from the last bar trought the present bar. In mql5 this is reversed. Does exists a way to reverse the logic of the mql5 platform in order to copy and paste my mql4 indicators without struggling with reversing the for loops? Am I missing something?

Thank you!


Who is online

Users browsing this forum: No registered users and 15 guests