VV:=AMOUNT/100000000;
LB:=MA(VV,1)/HHV(VV,0);
B5:COST(5),COLORFAABEC,POINTDOT;
DB5:DMA(B5,LB),COLOR00BB00,POINTDOT;
{STICKLINE(B5>=DB5,B5,DB5,4,0),COLORFAABEC;
STICKLINE(B5<DB5,B5,DB5,4,1),COLOR00BB00;}
B15:COST(15),COLOR0099FF,POINTDOT;
DB15:DMA(B15,LB),COLORCYAN,POINTDOT;
{STICKLINE(B15>=DB15,B15,DB15,4,0),COLOR0099FF;
STICKLINE(B15<DB15,B15,DB15,4,1),COLORCYAN;}
B50:COST(50),COLORWHITE,POINTDOT;
DB50:DMA(B50,LB),COLORGRAY,POINTDOT;
{ STICKLINE(B50>=DB50,B50,DB50,4,0),COLORWHITE;
STICKLINE(B50<DB50,B50,DB50,4,1),COLORGRAY;}
B85:COST(85),COLOR00CCCC,POINTDOT;
DB85:DMA(B85,LB),COLORAAAA00,POINTDOT;
{ STICKLINE(B85>=DB85,B85,DB85,4,0),COLOR00CCCC;
STICKLINE(B85<DB85,B85,DB85,4,1),COLORAAAA00;}
B95:COST(95),COLORMAGENTA,POINTDOT;
DB95:DMA(B95,LB),COLORFF5B90,POINTDOT;
{STICKLINE(B95>=DB95,B95,DB95,4,0),COLORMAGENTA;
STICKLINE(B95<DB95,B95,DB95,4,1),COLORFF5B90;}
{
WR:((EMA(C,1)+EMA(C,2))/2+EMA(C,3)+EMA(C,6))/3;
SB:(EMA(C,6)+EMA(C,12)+EMA(C,24))/3;
SO:(EMA(C,24)+EMA(C,48)+EMA(C,96))/3;};
{ FCB:DMA(((WR-B5)/5.33+(WR-B15)/4.67+(WR-B50)/2.33+(WR-B85)+(WR-B95)/0.67)/5,LB); };
DRAWBAND(DB5,RGB(0,128,0),B5,RGB(128,0,128));
DRAWBAND(DB15,RGB(0,255,255),B15,RGB(255,128,0));
DRAWBAND(DB50,RGB(128,128,128),B50,RGB(255,255,255));
DRAWBAND(DB85,RGB(64,128,128),B85,RGB(128,128,0));
DRAWBAND(DB95,RGB(0,0,255),B95,RGB(255,0,255));
L5:=MA(V,5);
STICKLINE(1,REF(L,BARSLAST(CROSS(V,1.5*L5))),
REF(L,BARSLAST(CROSS(V,1.5*L5)))+0.001,1,0),COLOR00CCCC;
STICKLINE(1,REF(H,BARSLAST(CROSS(V,1.5*L5))),
REF(H,BARSLAST(CROSS(V,1.5*L5)))+0.001,1,0),COLORCCCC00 ;
{以此做MACD布林主图,关注K线与上轨及M6与上轨的关系}
M6:=(EMA(C,5)+EMA(C,6))/2;
M12:=EMA(C,12);
M26:=EMA(C,26);
DIF:=EMA(M12-M26,9);
SBL:M26+2*(26/12)*STD(DIF,26),COLORYELLOW,DOTLINE;
XBL:M26-2*(26/12)*STD(DIF,26),COLORGREEN,DOTLINE;
买卖盘比▇: 1/DYNAINFO(51),COLORGRAY,NODRAW;
IF(买卖盘比▇ >0.9,买卖盘比▇,DRAWNULL),COLORWHITE,NODRAW;
IF(买卖盘比▇ >1.3,买卖盘比▇,DRAWNULL),COLORRED,NODRAW;
DRAWTEXT_FIX(1,0.5,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.51,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.52,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.53,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.54,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.55,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.56,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.57,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.58,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(买卖盘比▇ >0.5,0.5,0,0,'▇'),COLORLIGREEN;
DRAWTEXT_FIX(买卖盘比▇ >0.6,0.51,0,0,'▇'),COLORLIGREEN;
DRAWTEXT_FIX(买卖盘比▇ >0.7,0.52,0,0,'▇'),COLORLIGREEN;
DRAWTEXT_FIX(买卖盘比▇ >0.75,0.53,0,0,'▇'),COLOR00CCFF;
DRAWTEXT_FIX(买卖盘比▇ >0.8,0.54,0,0,'▇'),COLOR00CCFF;
DRAWTEXT_FIX(买卖盘比▇ >0.85,0.55,0,0,'▇'),COLOR00CCFF;
DRAWTEXT_FIX(买卖盘比▇ >0.9,0.56,0,0,'▇'),COLOR000066;
DRAWTEXT_FIX(买卖盘比▇ >0.95,0.57,0,0,'▇'),COLOR000066;
DRAWTEXT_FIX(买卖盘比▇ >1,0.58,0,0,'▇'),COLOR000066;
DRAWTEXT_FIX(1,0.56,0,0,' 9'),COLORBLACK;
DRAWTEXT_FIX(1,0.6,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.61,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.62,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.63,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.64,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.65,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.66,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.67,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.68,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(买卖盘比▇ >1.05,0.6,0,0,'▇'),COLORGREEN;
DRAWTEXT_FIX(买卖盘比▇ >1.1,0.61,0,0,'▇'),COLORGREEN;
DRAWTEXT_FIX(买卖盘比▇ >1.15,0.62,0,0,'▇'),COLORGREEN;
DRAWTEXT_FIX(买卖盘比▇ >1.2,0.63,0,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(买卖盘比▇ >1.25,0.64,0,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(买卖盘比▇ >1.3,0.65,0,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(买卖盘比▇ >1.4,0.66,0,0,'▇'),COLORRED;
DRAWTEXT_FIX(买卖盘比▇ >1.5,0.67,0,0,'▇'),COLORRED;
DRAWTEXT_FIX(买卖盘比▇ >1.6,0.68,0,0,'▇'),COLORRED;
DRAWTEXT_FIX(1,0.65,0,0,' 7'),COLORBLACK;
|