{上轨}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大口;
boll:=ma(close,20);ub:=boll+2*std(close,20);lb:=boll-2*std(close,20);range(c,c/1.01,c*1.01) and lb>ref(lb,1) and ref(lb,1)>ref(lb,2);请收下原码,谢谢,有任何特殊要求,请联系我