I want to check if the current close is the highest for the past n closes. For instance the highest close for 12 periods.
Is this possible?
Currently all I am doing is a an if statement "if close(1) > close(12) " but that is not what I want.
How do I code a range? Any suggestions?