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
I am attempting to have another shot at detecting the 4 trading days prior to NFP for any month.
Using the built in functions and the DaysOfMonth() available on the forum I have an idea.
I have an external variable ExcludeDaysBeforeNFP() that can be set from 1 to 4. with 4 meaning it should not trade any of the 4 Trading days before NFP. Using logic as follows.
For example, If the days in the month equal 31 and the day of the month equals 28 and the day of the week is a Monday Then it is 4 days before NFP.
So we can decide to not trade that day.
Assuming that the above logic will work.... my problem is that it will need quite a few lines of code to check the differrent variations and i am wondering if there is a better method?