Hey guys, simple question here. If i only want a strategy to trade on a specific day of the week, whats the code for that?
thanks
Or, if you want it to only trade mondays from a beginning time (e.g. Market open) you can use this variable:
OnlytradeMonday = (currenthour >= 9 and currentdayofweek <= 1)
Date and time instructions are your friend, please refer to the documentation! 🙂
http://www.prorealcode.com/documentation/category/dateandtime/