换手:v/CAPITAL*100,linethick0,PRECIS2;6 c! y1 q8 `8 ~+ S2 J
ss1:=ORDER(1);ss2:=ORDER(2);
$ L" w$ N* _( \' e$ r3 czqz:=barslast(abs(ss1-ref(ss1,1))>0 or abs(ss2-ref(ss2,1))>0);/ m" S, m# O; E% {! H X$ u& D5 u
zq:=if(zqz>0,zqz,0); ' l* h) y1 w$ `! C. [
kp:=DYNAINFO(7)>0;
$ ^+ f* z: e# Y. [7 E) ?' u9 y2 f! J: g* _
买单均量:=if(zq>0,0,v/ss1);( U5 S* d0 @; h, T0 J& N& f5 k
卖单均量:=if(zq>0,0,v/ss2);
! @3 S, |0 k$ J; _/ ^& v- I8 n4 J' J9 [" W; @
单均差:买单均量-卖单均量,LineThick0,PRECIS2;
0 ~0 H* J9 t! q4 }红排序z:=sum(单均差>max(买单均量,卖单均量)*红标准/100,周期);) n; k" n/ M7 m7 `9 q$ _
红排序b:=if(zq>0,ref(红排序z,zq),红排序z);' {* ?3 P* B& v. b6 H/ R/ ]
连红:if(红排序b>0,红排序b,0),colorred,LineThick0,PRECIS0;3 T5 ^3 Q9 [. R! |& v
红排序:连红*kp,colorred,LineThick0,PRECIS0;
) T6 U8 i: p- w7 x3 U
" ~. A) R ]) m, {. K! t: j9 X) k均差值z:=sum(if(单均差>0,单均差,0),周期)/连红;
; R: e' i1 [* M2 x5 T6 l均差值:=if(zq>0,ref(均差值z,zq),均差值z);
6 V0 m4 }; @; w; a/ e u均差排序:if(均差值>0,均差值,0)*kp,colorred,LineThick0,PRECIS0;
* n5 a% W4 Q& n: Y$ w2 f% sSTICKLINE(c>0,0,0.01,6,0),Color666666;
% S) T1 T* }5 c7 X' H- xSTICKLINE(zq0 and zq |