I just can’t get my head around this very simple problem: How do I buy something on a specific day of the week, i.e. monday?
I found this bad boy: “DayOfWeek[N] “, but I can’t figure it out how to use it…
Something like
IF close>open AND DayOfWeek is monday THEN
BUY AT MARKET
ENDIF
DayOfWeek return a number.
Try to make a simple indicator like this, and you’ll find yourself what I am meaning :
RETURN DayOfWeek