ss1:=ORDER(1);ss2:=ORDER(2);
zqz:=barslast(abs(ss1-ref(ss1,1))>0 or abs(ss2-ref(ss2,1))>0);
zq:=if(zqz>0,zqz,0);
kp:=DYNAINFO(7)>0;
买单均量:=if(zq>0,0,v/ss1);
卖单均量:=if(zq>0,0,v/ss2);
单均差:买单均量-卖单均量,color3d;
b:=SUM(单均差,1);
单均差线:SUM(b,50),coloryellow,linethick1;