Hello,
i try to build an Strategy System to trade the sideway Times on Market. So i need a code to avoid trade on the First Friday in Month (NFP Non Farm Payrols) and on each Thursday Afternoon, because there are many news so the market is trendy.
My Code was:
IF (CurrentDayofWeek = 5 and Date <= 07 and Hour >= 12) THEN
…..
ENDIF
IF (CurrentDayofWeek = 4 and Hour >= 12) THEN
…..
ENDIF
The second part, it seems, thats runs, but the first part does not run. There the system avoid on every Friday after 12 o`clock a trade. But it should do only on the first Friday in month. I think the Part “and Date <= 07” does not run.
How can i realise this?
Thanks.