Speed up optimization

Hi all,

could you give some tips to speed up optimization?.

Regards. 

coiler:

Hi all,

could you give some tips to speed up optimization?.

Regards. 


don't do things twice or more then once every tick

deVries:


don't do things twice or more then once every tick

 


Thanks deVries, what about debugging with "print" statments? should i comment this "print" lines?
coiler:

Thanks deVries, what about debugging with "print" statments? should i comment this "print" lines?

Make them configurable so you can turn them on or off . . .  https://www.mql5.com/en/forum/135168/page2

deVries: don't do things twice or more then once every tick
Like my CallAgainXXX series

indicatorvalues for bar 1  or earlier can be done moment the bar 0 starts and with the most indicators it is not needed to recalculate every tick

so values that don't change you can calculate first tick new bar

commentlines slow down optimization
deVries:
commentlines slow down optimization

Comments ?  //   or /*  */  comments ?  or did you mean Comment() ?

RaptorUK:

Comments ?  //   or /*  */  comments ?  or did you mean Comment() ?

 


this kind 

Comment  

for displaying text and values on chart where EA is running 


deVries:

this kind 

Comment  

for displaying text and values on chart where EA is running 


Ah OK,  Comment()  :-)