do anyone know :while or for , which is faster?

 

the loop operator

which is the faster?

and what the tips to code a ea that can backtest/run faster ?

my ea already do not use any technical indicators

thanks

 

Lmgtfy. You can also test it using GetTickCount().

 
ubzen:

Lmgtfy. You can also test it using GetTickCount().


thx

i will print GetTickCount() in deinit()

 
kelly:

the loop operator

which is the faster?

and what the tips to code a ea that can backtest/run faster ?

Isn't a for loop just a while loop written on one line ?

For a faster backtest a simple optimization method is to do stuff that can be done once per bar only once per bar and not every tick . .

Reason: