判断多个数值都相等

bool  IsDailyLimit = false;

float Open = 11.23, High = 11.23, Low = 11.23, Close = 11.23, YClose = 10.21;

if(Open == High

  && Open == Low

  && Open == Close

  && Low > 1.09 * YClose)//一字涨停判断

{

  IsDailyLimit  = true;
}

 

注意:不要写成 Open == High == Low == Close

 

 

posted @ 2016-09-13 11:26  那一剑的風情  阅读(1368)  评论(0编辑  收藏  举报