Hi all, i want to try something, and i need help coding in this:
c1 = monday + tuesday have both been green days
I cant seem to find the codes for it, but i have seen it before.. something like “day of the week = 1” is monday?
Just wanna make sure i get the correct codes 🙂 Thanks
edit: bonus question, when PRT is calculating “yesterdays high” does it calculate highest point between 00.01-23.59?
I would recommend using opendayofweek. Try this as an indicator and it will tell you all you need to know:
Return opendayofweek
I can’t answer your bonus question though!
Edit: actually I have answered it – put the indicator on a minute chart and see when the number changes.
I changed the topic title, sorry but “Need help with coding, should be easy..” is not an appropriate title… 😐
….oops didn’t even spot that. What a rubbish moderator I am! 🙂
add:
graph DayOfWeek
graph OpenDayOfWeek
to your strategy, so you can check what they return at each bar.