Excluding Non-farm Payroll
-
can you please repost shared project, because its not there anymore
-
How would I go about creating a filter to exclude Non-farm payroll, i.e. the first Friday in every month?
-
I never thought about that and there is no such block, but it will be probably easy. There are two simple native functions:
http://docs.mql4.com/dateandtime/day
http://docs.mql4.com/dateandtime/dayofweek (Weekday filter block is using this function actually)These can be used directly in Condition -> Value (numeric). So my idea is, if the current day is <= 7 and the day of week is == 5 () or you can use Weekday filter), then this is the first friday of the month.
-
Thanks, I'll give it a go, pending you creating a specific block for this in the future.
-
Can't seem to work it out. Are you able to provide an example?
-
-
Thanks, got it!
There was a small work required around to get the inverse of your example, i.e. to exclude them.
I created an quick example here for others to see should they stumble on this post in the future:
-
Is there any update, can't find projects ?
-
do it like this
