How to set an Input with TimeCurrent as default parameter ?

 

Hi

I cant' find a simple way to set a default value = Timecurrent() to an Input MyDate parameter ?

 

#property script_show_inputs

#define MaDateDuJour TimeCurrent();

//I would like this but MQL 5 return an error : Constant needed
input datetime Export_du = MaDateDuJour;

// Instead of this to set the date of the day and not a fix date
input datetime Export_du = D'2011.04.01 00:00:00';




 Thks for help

Phil 

 

No simple way

Use boolean input "Use current date or use input date"