Properly calculating highest closing price to get stopping price. Added quick smtp test.