When the stock exceeds the high limit, an e-mail alert is sent and the script exits. 当股票超过高位时,就会发送一条e-mail消息并会退出脚本。
The main program is nothing more than a loop to get the current stock price, check to see if it's in band, and, if not, send an e-mail alert to the user. 主程序只是一个循环,用来获得股票的当前价格,检查价格是否在所限定的范围内,如果不在就发送e-mail警告来提醒用户。