换手:v/CAPITAL*100,linethick0,PRECIS2;0 e+ T0 p' h+ J$ i; B
ss1:=ORDER(1);ss2:=ORDER(2);
' V' [, ]4 d' G+ c8 Azqz:=barslast(abs(ss1-ref(ss1,1))>0 or abs(ss2-ref(ss2,1))>0);
7 x, B1 e5 _2 q; E) M, lzq:=if(zqz>0,zqz,0);
* |8 ]6 ]$ T2 U& L5 k. }, gkp:=DYNAINFO(7)>0;
6 f& S: |& y/ G8 @+ L
) F% _$ X) m; S* c! C: Q8 w买单均量:=if(zq>0,0,v/ss1);$ B9 R+ ]/ X* [6 r' A( x
卖单均量:=if(zq>0,0,v/ss2); l! p) x% m% |- R5 ~9 _/ g
! \, b# n# x# |% F/ b0 r单均差:买单均量-卖单均量,LineThick0,PRECIS2;
' N% n" t4 `2 Y7 }* r6 a' @红排序z:=sum(单均差>max(买单均量,卖单均量)*红标准/100,周期);5 ?- t$ i, N0 a7 R+ |
红排序b:=if(zq>0,ref(红排序z,zq),红排序z);
4 ~6 g6 X& M4 k5 J( z" A连红:if(红排序b>0,红排序b,0),colorred,LineThick0,PRECIS0;
6 h6 _9 k7 m$ d, M1 b红排序:连红*kp,colorred,LineThick0,PRECIS0;0 j6 w- M7 v: k5 D; f l) c
, g: Z% w- O! @; L
均差值z:=sum(if(单均差>0,单均差,0),周期)/连红;
1 K6 @" y D8 d% l. Q% ~均差值:=if(zq>0,ref(均差值z,zq),均差值z);
5 A/ O7 i3 b. f; t3 T均差排序:if(均差值>0,均差值,0)*kp,colorred,LineThick0,PRECIS0;
2 X# s4 o' \$ b9 `% z. Y8 g+ @STICKLINE(c>0,0,0.01,6,0),Color666666;' j. p& F& ~, z+ O! j
STICKLINE(zq0 and zq |