It was July of 2017 in Port Townsend, WA (0S9) and I was a newly certificated pilot. The airport has a right pattern for 9 and a left pattern for 27, with a hill to the North and NW of the Airport, and Discovery Bay (Puget Sound) to the West. I was flying a rented C-150, and was returning to Jefferson County Airport after dropping my friend (and instructor) off in Bellingham so he could pick up his plane after having ADS-B installed. I made the appropriate radio calls on CTAF and was crossing midfield North to South just above pattern altitude (hill avoidance) over 9-27 for a left downwind for 27. Suddenly a lady yelled "look out" into the radio. She and her husband were holding short at 27 for another landing aircraft. I was jolted out of my complacency and saw something out of the corner of my eye to the right. I put the plane into a hard left turn directly over the runway and a plane whizzed by my right wing only about 30 feet away. She had noticed another airplane descending over the end of 09 diagonally toward me and had reacted appropriately, with only enough time to shout two words. The pilot made no radio calls and was not following proper procedure. He went on to land, and after recovering my marbles, I did as well. The nice couple returned to the ramp for a "discussion" with the pilot (student pilot). He was amazingly still unaware of any issue. To make matters worse, an instructor was on board and both were oblivious. It turns out they had the com frequency set for Sequim, a nearby airport. I was mad, but held my tongue. The couple were mad. Of course, I thanked her for saving my life and the lives of the other two miscreants. They did apologize. I spoke with my former instructor about it later and he gave them another what for. Lessons from the incident? Follow the established pattern without cutting and keep alert, since many people do stupid stuff. Double check frequencies too.