N:=5;
TS2:=bigorder(2,3)*100;
DS2:=(BIGORDER(2,2)-BIGORDER(2,3))*100;
ZS2:=(BIGORDER(2,1)-BIGORDER(2,2))*100;
SS2:=(1-BIGORDER(2,1))*100;
TB2:=bigorder(1,3)*100;
DB2:=(BIGORDER(1,2)-BIGORDER(1,3))*100;
ZB2:=(BIGORDER(1,1)-BIGORDER(1,2))*100;
SB2:=(1-BIGORDER(1,1))*100;
ZLB:=(TB2+DB2);
ZLS:=(TS2+DS2);
ZLH:=ZLB+ZLS;
ZLB1:=ZLB/ZLH;
ZLS1:=ZLS/ZLH;
DRAWRECTABS(70,16,70+ZLS1*100,23,RGB(0,119,0)),COLOR005500,LAYER0;
DRAWRECTABS(70,18,70+ZLS1*100,21,RGB(0,187,0)),COLOR00BB00,LAYER0;
DRAWRECTABS(70,19,70+ZLS1*100,20,RGB(0,255,0)),COLOR00FF00,LAYER0;
DRAWRECTABS(70+ZLS1*100,16,70+(ZLS1+ZLB1)*100,23,RGB(119,0,0)),COLOR000055,LAYER0;
DRAWRECTABS(70+ZLS1*100,18,70+(ZLS1+ZLB1)*100,21,RGB(187,0,0)),COLOR0000BB,LAYER0;
DRAWRECTABS(70+ZLS1*100,19,70+(ZLS1+ZLB1)*100,20,RGB(255,0,0)),COLOR0000FF,LAYER0;
DRAWTEXTABS(5,14,'主力 '+numtostrn(ZLS1*100,0)+':'+NUMTOSTRN(ZLB1*100,0) ),colorwhite,LAYER0;
CC:=MA(WINNER(C)*V*70,N)/MA(V,N);
BB:=MA((WINNER(C*1.1)-WINNER(C*0.9))*V*70,N)/MA(V,N);
主筹:(CC*2/100-1)*3,LINETHICK3,COLORRED;
散筹:(BB*2/100-1)*3,LINETHICK3,COLORYELLOW;
Var1:=(CLOSE*2+HIGH+LOW)/4;
SK: (EMA(Var1,13)-EMA(Var1,21));
SD: (EMA(SK,2));
资金:=(SUM(V*(L+C)/2,1)/SUM(V,1)-EMA(SUM(V*(L+C)/2,1)/SUM
(V,1),13))*50/(SUM(V*(L+C)/2,1)/SUM(V,1));
量能:((((EMA(资金,5)-EMA(资金,21))+2*(((EMA((C*2+H+L)/4,3)-EMA
((C*2+H+L)/4,21)-EMA(EMA((C*2+H+L)/4,3)-EMA
((C*2+H+L)/4,21),3)))))/3)+0),LINETHICK4,colorwhite;
个股资金线:(MA(C,1)/MA(REF(C,18),18)-1)*8,LINETHICK2,COLOR00008B;
DRAWGBKlast(DATE>900101,strip(RGB(0,0,160),RGB(0,20,10),0));
cyc5:=cyc(5);
cyc0:=MAXCYC;
aa:(cyc5-cyc0)/cyc0;
STICKLINE(aa>0.12,0,aa,8.10,0),COLORRED;
STICKLINE(aa<0,0,aa,8.10,0),colorgreen;
STICKLINE(aa<0.12 and aa>0,0,aa,8.10,0),coloryellow;
0,colorgreen;