MACD量价评台修改版.ALG
DRAWGBK(CLOSE=CLOSE,COLORRGB(30,30,60),COLORRGB(30,30,60),1);
em26:=EMA(CLOSE,26);
em12:=EMA(CLOSE,12);
em269:=ema(em26,9);
em129:=ema(em12,9);
DEz:ema(em12-(em129-em12),2),Color4D569F,LINETHICK,PRECISION2;//蓝,MACD>0,DEA<0
diz:DEz-EMA(((em26-em269)-(em12-em129)),1)*6,ColorD87484,LINETHICK,PRECISION2;
FILLRGN(diz>dez,diz,dez),ColorD87484;
FILLRGN(diz<=dez,diz,dez),Color6C7480;
n1:=SYSPARAM(3);
nn:=n1-SYSPARAM(2)+1;
hh:=HHV(c,nn);
ll:=LLV(c,nn);
最高:=hh[n1];
最低:=ll[n1];
中:=最低+(最高-最低)*0.5;
STICKLINE(c,中,中,8,0),COLORGRAY,LINEDOT;
macdz:=(diz-dez)*1;
STICKLINE(diz<DEz and diz<=ref(diz,1),中,中+macdz,0.1,0),Color008080;
STICKLINE(diz<=DEz and diz>ref(diz,1),中,中+macdz,0.1,0),ColorC080FF;
STICKLINE(diz>DEz and diz>ref(diz,1),中,中+macdz,0.1,0),Color400080;
STICKLINE(diz>DEz and diz<=ref(diz,1),中,中+macdz,0.1,0),Color0080FF;
M13:MA(C,13),COLORBROWN,LINETHICK,PRECISION2;
PARTLINE(m13<ref(m13,1),m13),COLORWHITE,LINETHICK2;
PARTLINE(m13>=ref(m13,1),m13),COLORBROWN,LINETHICK2;
PARTLINE(dez>ref(dez,1),dez),Color4D569F,LINETHICK2;
{K线}
STICKLINE(c>o,c,o,9,1 ),COLOr0033CC;
STICKLINE(c<o,c,o,9,1 ),COLORCYAN;
多空:=OPEN;
STICKLINE(CLOSE>多空,HIGH,LOW,2,0),colorFF;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,6.5,0),color102088;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,6,0),color102099;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,5.5,0),color1020AA;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,5,0),color1020BB;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,4,0),color1020CC;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,3,0),color1020DD;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,2,0),color1020EE;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,1,0),color1020FF;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,6.5,0),color102088;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,6,0),color102099;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,5.5,0),color1020AA;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,5,0),color1020BB;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,4,0),color1020CC;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,3,0),color1020DD;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,2,0),color1020EE;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,1,0),color1020FF;
STICKLINE(CLOSE<多空,HIGH,LOW,2,0),colorFF8800;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,6.5,0),colorFF7700;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,6,0),colorFF8800;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,5.5,0),colorFF9900;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,5,0),colorFFAA00;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,4,0),colorFFBB00;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,3,0),colorFFCC00;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,2,0),colorFFDD00;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,1,0),colorFFEE00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,6.5,0),colorFF7700;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,6,0),colorFF8800;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,5.5,0),colorFF9900;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,5,0),colorFFAA00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,4,0),colorFFBB00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,3,0),colorFFCC00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,2,0),colorFFDD00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,1,0),colorFFEE00;
STICKLINE(CLOSE=多空,OPEN,CLOSE,6.5,0),colorFFFF00;
STICKLINE(CLOSE=多空,HIGH,LOW,2,0),colorFFFF00;
{直线板K}
STICKLINE(HIGH=LOW and CLOSE=OPEN and (CLOSE/REF(CLOSE,1))>1.048,HIGH,LOW,9,0) ,COLORRED;
STICKLINE(HIGH=LOW and CLOSE=OPEN and (REF(CLOSE,1)/CLOSE)>1.048,HIGH,LOW,9,0) ,COLOR00FF00;
持股线:MA(C,8); |