主图指标 :
BOLL:EMA(C,25)COLORMAGENTA,LINETHICK2;
UPPER:=BOLL+2*STD(CLOSE,25)COLORYELLOW,CROSSDOT;
LOWER:=BOLL-2*STD(CLOSE,25)COLORLICYAN,CROSSDOT;
{DRAWBAND(BOLL,RGB(139,0,139),REF(BOLL,1),RGB(65,105,225));}
DRAWBAND(UPPER,RGB(139,0,139),BOLL,DRAWNULL);
DRAWBAND(BOLL,RGB(65,105,225),LOWER,DRAWNULL);
EMA13:EMA(CLOSE,13)COLORWHITE,LINETHICK1;
EMA34:EMA(CLOSE,34)COLORGREEN,LINETHICK1;
EMA55:EMA(CLOSE,55)COLORCYAN,LINETHICK1;
{阳K线}
STICKLINE(CLOSE =OPEN,C,O,4.7,0),COLOR000033;
STICKLINE(CLOSE =OPEN,C,O,3.9,0),COLOR000055;
STICKLINE(CLOSE =OPEN,C,O,3,0),COLOR000077;
STICKLINE(CLOSE =OPEN,C,O,2.1,0),COLOR000099;
STICKLINE(CLOSE =OPEN,C,O,1,0),COLOR0000DD;
{阳线上下影}
STICKLINE(CLOSE =OPEN,L,H,0,0), COLORRED;
{阴K线}
STICKLINE(CLOSE OPEN,C,O,4.7,0),COLOR003300;
STICKLINE(CLOSE OPEN,C,O,3.9,0),COLOR005500;
STICKLINE(CLOSE OPEN,C,O,3,0),COLOR007700;
STICKLINE(CLOSE OPEN,C,O,2.1,0),COLOR009900;
STICKLINE(CLOSE OPEN,C,O,1,0),COLOR00DD00;
{阴线上下影}
STICKLINE(CLOSE OPEN,L,H,0,0),COLOR00EC00;
XU:PEAK(C,IF(PERIOD 5,5,10),1)*0.999,COLORFFCC99,LINETHICK2;{箱顶}
XD:TROUGH(C,IF(PERIOD 5,5,10),1)*0.998,COLORFF99CC,LINETHICK2;{箱底}
XH:=(XU-XD)/XD*100,NODRAW,COLORYELLOW;
XDU:=IF(EMA(EMA(EMA(C,2),2),2) REF(EMA(EMA(EMA(C,2),2),2),1),XD,XU);
XR:=(C-XDU)/XDU*100,COLORRED,NODRAW;
XTB:=XD!=REF(XD,2) && XD=REF(XD,1);
XTS:=XU!=REF(XU,2) && XU=REF(XU,1);
DRAWICON(XTB,MIN(XD,L)*0.991,1);
DRAWTEXT(XTB,MIN(XD,L)*0.988,'[下跌终点,上升起点!满仓]'),COLOR0000DD;
DRAWICON(XTS,MAX(XU,H)*1.001,2);
DRAWTEXT(XTS,MIN(XU,H)*1.004,'[上升终点,下跌起点!清仓]')COLOR00DD00;
上升段:DRAWLINE(XTB,MIN(LLV(L,1),XD),XTS,MAX(HHV(H,1),XU),0)
COLOR000099,LINETHICK2;{XTBL}
下跌段:DRAWLINE(XTS,MAX(HHV(H,1),XU),XTB,MIN(LLV(L,1),XD),0)
COLOR009900,LINETHICK2;{XTSL}
Y:=(EMA(C,13)-EMA(C,55))/EMA(C,13)*100;
生命线:=EMA(CLOSE,34)COLORMAGENTA,POINTDOT,LINETHICK4;
EMA120:=EMA(CLOSE,120);
内容加载中..