Can I program the highest close for a range of time in MQL?

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?

double Highest_Close=Close[iHighest(NULL,0,MODE_CLOSE,12,1);