Trading day of the month indicator or mql4 script enquiry

 

Hi,

Q1) May I know how to write a MT4 script/MQL4 reference to get current day is which working day (Trading day) of the current month ?

E.g. 1st Aug 2018 is 1st working day of the month for Aug.

6th Aug 2018 is 4th working day of the month ?


Q2)It would be amazing if the script could detect it is public holiday for US market and skip the count for that day

e.g. 3rd Sep 2018 is public holiday, therefore 4th sep is 1st working day of the month for sep.


 

Thank you very much

/klkk

 
I'm also interested to know if you found a way to get this information