The most common reason for Nitroglycerin is for spasm of the coronary arteries. If this is not your problem, I would suggest asking your physician why you are being given this medication.
It is possible that the cold air is causing some pain. However, with the information about the nitroglycerin, I would again discuss this with your physician.