Speed up optimization

coiler
284

Hi all,

could you give some tips to speed up optimization?.

Regards. 

Tjipke de Vries
6876
Tjipke de Vries  
coiler:

Hi all,

could you give some tips to speed up optimization?.

Regards. 


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

coiler
284
coiler  
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?
Simon Gniadkowski
17411
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

William Roeder
25873
William Roeder  
deVries: don't do things twice or more then once every tick
Like my CallAgainXXX series
Tjipke de Vries
6876
Tjipke de Vries  

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

Tjipke de Vries
6876
Tjipke de Vries  
commentlines slow down optimization
Simon Gniadkowski
17411
deVries:
commentlines slow down optimization

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

Tjipke de Vries
6876
Tjipke de Vries  
RaptorUK:

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

 


this kind 

Comment  

for displaying text and values on chart where EA is running 


Simon Gniadkowski
17411
deVries:

this kind 

Comment  

for displaying text and values on chart where EA is running 


Ah OK,  Comment()  :-)