Compiledate or automatic increased versionnumber

 
Hello, I have a small question:

Is there a possibility to add a variable or something which contains the datetime value at which the expert was compiled? Also it would be great, if there would be a version counter, which is increased every time at compilation of the expert (it should count on a per expert basis, normally).

Thank you in advance


funtrader
 

Maybe it helps You

datetime compile_date=D'';

See https://docs.mql4.com/basis/types/datetime

 
it would be nice to add new precompiler directives:

#property version 1.00
#property versiondescription "first try"

and add item to file menu in meta-editor "Create New Version" which will open dialog box asking for new version number and brief description.

I'd rather have that than creating a new version every time I compile.

But right now, when I feel new version is needed I do a "Save As" file name with new version number.
I also keep a define

#define version "1.00"
 
stringo wrote:

Maybe it helps You

datetime compile_date=D'';

See https://docs.mql4.com/basis/types/datetime


Thank you for your response. But no, it helps not.

Because I compile the EA more than once a day during development. And in init() I print out the Versionnumber to be sure,that the correct version is running.

It should only be a simple Variable,which is increased each time, one press the compile-button.

Metaquotes, You should put that on your Wishlist.

With regards, Frank

Reason: