Library vs Individual Scripts

 

Dear All, especially for experienced programer & metaquotes software writers...


if there is one really complex function to be calculated before send an order,

Please tell me which one is faster (to compute a complex function)


1. Use Library for process a complex function?

2. Use Individual script for process a complex function?

 

Afaik script is a one time droppable "program" that is executed once only and I'm not aware of any script initializing functions in mql4.

So for the short answer: Library.

 

It depends. You can test the speed yourself.

int GetTickCount( )
The GetTickCount() function retrieves the number of milliseconds that have elapsed since the system was started. It is limited to the resolution of the system timer.
Sample:
  int start=GetTickCount();
  // some hard calculations...
  Print("Calculation time is ", GetTickCount()-start, " milliseconds.");

 
stupid question, removed.
 
ubzen:

It depends. You can test the speed yourself.

int GetTickCount( )
The GetTickCount() function retrieves the number of milliseconds that have elapsed since the system was started. It is limited to the resolution of the system timer.
Sample:

thanks i will try this