AA:=(HHV(HIGH,20) - (2 * ATR));
BB:=crOSS(CLOSE,REF(HHV(HIGH,55),1));
SSS:=CROSS(MIN(ma(CLOSE,13),AA),CLOSE);
BBB:=BArslAst(BB);
SSSB:=BARSLAST(SSS);
B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));
B1B:=BARSLAST(B1);
B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));
B2B:=BARSLAST(B2);
加码:B2 = 1;