| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Determining day of the week https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3645 |
Page 1 of 1 |
| Author: | Rio [ Mon May 26, 2014 3:24 am ] |
| Post subject: | Determining day of the week |
What is the way to determine what day of the week it is? I'm trying to avoid trading on the first Friday of the month (NFP whipsaw stop hits and the like) I have a TimeCurrent value to play with, and I think there is a command that can suck out the day of the week information from it. I suppose all that's needed after that is if the day is Friday and the date is less or equal to the 7th |
|
| Author: | milanese [ Mon May 26, 2014 8:29 am ] |
| Post subject: | Determining day of the week |
You need Code: Select all Tommaso |
|
| Author: | dudest [ Mon May 26, 2014 9:43 am ] |
| Post subject: | Determining day of the week |
if ( TimeDayOfWeek( TimeCurrent() ) == 5 ) // Check whether it is Friday |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|