判断多个数值都相等
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