DRAWGBK(C>0,0,0,0,'图1',1);
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
DKX:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)
+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)
+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)
+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)
+2*REF(MID,18)+REF(MID,20))/210;
DKMA:MA(DKX,6);
DRAWBAND(DKX,RGB(128,128,0),DKMA,RGB(0,0,128));
{红}
STICKLINE(C>O,C,O,3,0),COLOR000077;
STICKLINE(C>O,C,O,2,0),COLOR000099;
STICKLINE(C>O,C,O,1,0),COLOR0000BB;
STICKLINE(C>O,H,L,0,0),COLOR0000FF;
{绿}
STICKLINE(C<O,C,O,3,0),COLOR007700;
STICKLINE(C<O,C,O,2,0),COLOR009900;
STICKLINE(C<O,C,O,1,0),COLOR00BB00;
STICKLINE(C<O,H,L,0,0),COLOR00FF00;
{白}
STICKLINE(C=O,C,O,3,0),COLORWHITE;
STICKLINE(C=O,H,L,0,0),COLORWHITE;
{涨停}
STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,3,-1),COLORFF00FF;
{跌停}
STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,3,-1),COLORF0F000;
DRAWRECTREL(0,0,300,800,RGB(0,0,100));
套牢盘%:=100*(1-WINNER(C));
获利盘%:=100*WINNER(C);
成本90%:=COST(90);
成本70%:=COST(70);
市场成本:=COST(50);
主力成本:=COST(4);
短期压力:=HHV(H,20);
短期支撑:=LLV(L,20);
CH:=REF(H,1);
CL:=REF(L,1);
CC:=REF(C,1);
中价:=(CH+CL+CC)/3;
近高:=2*中价-CL;
近低:=2*中价-CH;
最高:=中价+(CH-CL);
最低:=中价-(CH-CL);
DRAWTEXT_FIX(C>0,0 ,0.07,0,'【获利盘%】'),COLORRED;
DRAWTEXT_FIX(C>0,0 ,0.13,0,'【套牢盘%】'),COLOR00FF00;
DRAWTEXT_FIX(C>0,0 ,0.23,0,'【市场成本】'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0 ,0.29,0,'【主力成本】'),COLOR008FFF;
DRAWTEXT_FIX(C>0,0 ,0.39,0,'【90%成本】'),COLORFFFFBF;
DRAWTEXT_FIX(C>0,0 ,0.45,0,'【70%成本】'),COLORF0F000;
DRAWTEXT_FIX(C>0,0 ,0.55,0,'【短期压力】'),COLORWHITE;
DRAWTEXT_FIX(C>0,0 ,0.61,0,'【短期支撑】'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.17 ,0.06,0,'【最高】'),COLORFF00FF;
DRAWTEXT_FIX(C>0,0.17 ,0.12,0,'【近高】'),COLORFF99FF;
DRAWTEXT_FIX(C>0,0.17 ,0.18,0,'【中价】'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.17 ,0.24,0,'【近低】'),COLORFFFFBF;
DRAWTEXT_FIX(C>0,0.17 ,0.30,0,'【最低】'),COLORF0F000;
DRAWNUMBER_FIX(C>0,0.09,0.07,0,CONST(获利盘%)),COLORRED;
DRAWNUMBER_FIX(C>0,0.09,0.13,0,CONST(套牢盘%)),COLOR00FF00;
DRAWNUMBER_FIX(C>0,0.09,0.23,0,CONST(市场成本)),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.09,0.29,0,CONST(主力成本)),COLOR008FFF;
DRAWNUMBER_FIX(C>0,0.09,0.39,0,CONST(成本90%)),COLORFFFFBF;
DRAWNUMBER_FIX(C>0,0.09,0.45,0,CONST(成本70%)),COLORF0F000;
DRAWNUMBER_FIX(C>0,0.09,0.55,0,CONST(短期压力)),COLORWHITE;
DRAWNUMBER_FIX(C>0,0.09,0.61,0,CONST(短期支撑)),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.23,0.06,0,CONST(最高)),COLORFF00FF;
DRAWNUMBER_FIX(C>0,0.23,0.12,0,CONST(近高)),COLORFF99FF;
DRAWNUMBER_FIX(C>0,0.23,0.18,0,CONST(中价)),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.23,0.24,0,CONST(近低)),COLORFFFFBF;
DRAWNUMBER_FIX(C>0,0.23,0.30,0,CONST(最低)),COLORF0F000;
|