After a five months of jagged ups and downs, AAPL overtakes a record set on Feb. 16, 2011

Investors who stuck with Apple AAPL through thick and thin this year got their earthly reward Friday.

With only two trading days left before what’s expected to be yet another boffo earnings report, the stock broke out of its Max Pain trading range and set a new all-time record.

After hitting an intraday high of $365, the stock closed at $364.92, up $7.15 (2.0%) for the day.

The previous high close ($363.13) and intraday record ($364.90) were both set nearly five months ago, on Feb. 16, 2011.