DRAWRECTREL(-1,0,1000,1000,RGB(0,0,20)),color00FF00,LINETHICK2,LAYER7;;0,DOTLINE,LAYER0;
STICKLINE(C>ref(c,1),0,V*2,4,0),COLOR0000FF,linethick2;
STICKLINE(C<ref(c,1),0,V*2,4,0),COLOR00FF00,linethick1;
STICKLINE(C=ref(c,1),0,V*2,1,0),COLOR00FFFF,linethick1;
OBV:SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0),color00FFff,linethick2,LAYER0;;
DRAWTEXT( BARSTATUS=2,OBV ,'OBV' ),Color00ffFF,LAYER6,LINETHICK2;
DDX:=(ordervol(1,2)-ordervol(2,2))/capital*100;
ODV:SUM(IF(ordervol(1,2)>ordervol(2,2),VOL,IF(ordervol(1,2)<ordervol(2,2),-VOL,0)),0),color0077ff,linethick2,LAYER0;;
DRAWTEXT( BARSTATUS=2,ODV ,'ODV ' ),Color0077ff,LAYER6,LINETHICK1;
ODTV:SUM(IF(ordervol(1,3)>ordervol(2,3),VOL,IF(ordervol(1,3)<ordervol(2,3),-VOL,0)),0),colorff9900,linethick1,LAYER0;;
DRAWTEXT( BARSTATUS=2,ODTV ,'OTV' ),Colorff9900,LAYER6,LINETHICK1;
A1:=DYNAINFO(23) /(DYNAINFO(23)+ DYNAINFO(22))*100;
A2:=DYNAINFO(17);
DRAWTEXTABS(0,7,IFS((A1 >= 50),'(外盘>=50):▄ '+NUMTOSTRN(A1,2)+'%,','')),linethick4,color0000FF;
DRAWTEXTABS(0,7,IFS((A1 < 50),'(外盘<50):▄ '+NUMTOSTRN(A1,2)+'%,','')),linethick4,color00FF00;
DRAWTEXTABS(0,30,IFS((A2 >= 1), '(量比>1): ▄ '+NUMTOSTRN(A2,2)+'%,','')),linethick4,color0000FF;
DRAWTEXTABS(0,30,IFS((A2 < 1), '(量比<1): ▄ '+NUMTOSTRN(A2,2)+'%,','')),linethick4,color00FF00;
{涨跌家数}
DRAWTEXTABS(480,10,'【涨家数:'+NUMTOSTRN(DYNAINFO(69),0)+ '】'),COLOR0000ff,LINETHICK2;
DRAWTEXTABS(610,10,'【平家数:'+NUMTOSTRN(DYNAINFO(71),0)+ '】'),COLOR00FFff,LINETHICK2;
DRAWTEXTABS(750,10,'【跌家数:'+NUMTOSTRN(DYNAINFO(70),0)+ '】'),COLOR00ff00,LINETHICK2;
DRAWRECTABS(480,25 ,480+(DYNAINFO(69)+DYNAINFO(71)+DYNAINFO(70))/2.5,31, rgb(0,255,0)),COLOR00ff00,LAYER4;
DRAWRECTABS(480,25 ,480+(DYNAINFO(69)+DYNAINFO(71))/2.5 ,31, rgb(255,255,0)),COLOR00FFFF,LAYER3;
DRAWRECTABS(480,25 ,480+(DYNAINFO(69))/2.5 ,31, rgb(255,0,0)),COLOR0000ff,LAYER2; |