{上轨}UB:=BOLL+2*STD(CLOSE,20);
{中轨}BOLL:=MA(CLOSE,20);
{下轨}LB:=BOLL-2*STD(CLOSE,20);
XG:(UB-LB)/REF((UB-LB),1)>1.01 AND (UB-LB)/REF((UB-LB),1)<1.03;
{上轨}UB:=BOLL+2*STD(CLOSE,20);
{中轨}BOLL:=MA(CLOSE,20);
{下轨}LB:=BOLL-2*STD(CLOSE,20);
BOLL高:=UB-LB;
BOLL大口:=HHV(BOLL高,72);
XG:BOLL高/BOLL大口>0.01 AND BOLL高/BOLL大口<0.05;