bool _StopFlag _StopFlag变量包括MQL5程序停止标签,当客户端想要停止程序,建立_StopFlag 变量到真值。 为了检测_StopFlag,你可以使用 IsStopped 函数。