如将使用运行中交易系统,达到指定的条件后,自动暂停,这个暂停代码如何写呀

 
rt
 

int stop =0;

void start()

{

if (stop ==1) return (0);

//---------

达到指定的条件后 stop =1;

}

原因: