Hello everybody,
I wonder how I can trade from Tuesday to Friday.
I only found out how to trade e.g. on Tuesday (dayofweek= 2) but not how to trade from Tuesday – Friday.
Thanks a lot!
Hello there
I think the best option the choose the days you’d like to trade it should be something like this.
Regards
#Haveagoodweekend
if dayofweek=1 then //Monday
daytrading=0
endif
if dayofweek=2 then // Tuesday
daytrading=1
endif
if dayofweek=3 then // Wednesday
daytrading=1
endif
if dayofweek=4 then //Thursday
daytrading=1
endif
if dayofweek=5 then // Friday
daytrading=1
endif
// In the condition makes reference to the dayofweek=x
IF daytrading= 1 AND "condition2" THEN
......
ENDIF
Works great! Thanks a lot and have a nice weekend too 🙂