if(bool1)
{
}
前面加上一个
if(barstatus!=2 and bool1)
{buy(0,open);}
if(barstatus==2 and bool1)
但这样写好像会导致信号一直闪?