tonyjms2005:
Please read the documentation, DayOfWeek() doesn't take any parameters. Perhaps you mean TimeDayOfWeek() ?
Hello
I am trying to program a function that returns the DayOfWeek() at the begining of the trading month, so if the trading month began on a monday then it will return 1.
Can DayOfWeek() be used for historical dates?
For example:
Thank you in advance
Antony

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello
I am trying to program a function that returns the DayOfWeek() at the begining of the trading month, so if the trading month began on a monday then it will return 1.
Can DayOfWeek() be used for historical dates?
For example:
Thank you in advance
Antony