{主图指标源码}
DRAWTEXT_FIX(ISLASTBAR,0.08,0.01,1,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.1,0.01,0,HYBLOCK),COLORYELLOW;
MA5:=MA(CLOSE,5)COLORWHITE DOTLINE;
短:=EMA(C,1.5),COLORYELLOW;
周:=EMA(C,5),COLORMAGENTA;
平衡:=EMA(周,5),COLORLIGREEN;
ABC1:=COUNT(CROSS(短,平衡),2)=1;
ABC2:=COUNT(CROSS(周,平衡),2)=1;
KD1:=MA((C+H+L)/3,6.8);
买:FILTER(ABC1 AND ABC2,2),COLORRED,NODRAW;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG1:=MACD>0;
DDDX:MA(C,10)LINETHICK2;
XDX:HHV(DDDX,5)LINETHICK2;
ZLX:DDDX-(XDX-DDDX),LINETHICK2,COLORGREEN;
ABC:=VOL*(O+C)/2;
绿合一笑脸:XDX=ZLX AND REF(XDX,1)>REF(ZLX,1) AND XG1,COLORYELLOW,NODRAW;
DRAWICON(XDX=ZLX AND REF(XDX,1)>REF(ZLX,1) AND XG1,L*1.002,5);{笑脸}
DRAWICON(XDX>ZLX AND REF(XDX,1)=REF(ZLX,1),XDX*1.002,6);{哭脸}
STICKLINE(买,OPEN,CLOSE,3,0),COLORRED;
DRAWTEXT(买,平衡*0.98,'★买'),COLORYELLOW;
{副图指标源码}
MA5:=MA(CLOSE,5)COLORWHITE DOTLINE;
短:=EMA(C,1.5),COLORYELLOW;
周:=EMA(C,5),COLORMAGENTA;
平衡:=EMA(周,5),COLORLIGREEN;
ABC1:=COUNT(CROSS(短,平衡),2)=1;
ABC2:=COUNT(CROSS(周,平衡),2)=1;
KD1:=MA((C+H+L)/3,6.8);
买:FILTER(ABC1 AND ABC2,2),COLORRED,NODRAW;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG1:=MACD>0;
DDDX:=MA(C,10)LINETHICK2;
XDX:=HHV(DDDX,5)LINETHICK2;
ZLX:=DDDX-(XDX-DDDX),LINETHICK2,COLORGREEN;
ABC:=VOL*(O+C)/2;
绿合一笑脸:XDX=ZLX AND REF(XDX,1)>REF(ZLX,1) AND XG1,COLORYELLOW;
{副图指标源码}
MA5:=MA(CLOSE,5)COLORWHITE DOTLINE;
短:=EMA(C,1.5),COLORYELLOW;
周:=EMA(C,5),COLORMAGENTA;
平衡:=EMA(周,5),COLORLIGREEN;
ABC1:=COUNT(CROSS(短,平衡),2)=1;
ABC2:=COUNT(CROSS(周,平衡),2)=1;
KD1:=MA((C+H+L)/3,6.8);
买:FILTER(ABC1 AND ABC2,2),COLORRED;
{选股指标指标}
MA5:=MA(CLOSE,5)COLORWHITE;
短:=EMA(C,1.5),COLORYELLOW;
周:=EMA(C,5),COLORMAGENTA;
平衡:=EMA(周,5),COLORLIGREEN;
ABC1:=COUNT(CROSS(短,平衡),2)=1;
ABC2:=COUNT(CROSS(周,平衡),2)=1;
KD1:=MA((C+H+L)/3,6.8);
买:FILTER(ABC1 AND ABC2,2),COLORRED;
{选股指标源码}
MA5:=MA(CLOSE,5)COLORWHITE;
短:=EMA(C,1.5),COLORYELLOW;
周:=EMA(C,5),COLORMAGENTA;
平衡:=EMA(周,5),COLORLIGREEN;
ABC1:=COUNT(CROSS(短,平衡),2)=1;
ABC2:=COUNT(CROSS(周,平衡),2)=1;
KD1:=MA((C+H+L)/3,6.8);
买:=FILTER(ABC1 AND ABC2,2),COLORRED;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG1:=MACD>0;
DDDX:=MA(C,10)LINETHICK2;
XDX:=HHV(DDDX,5)LINETHICK2;
ZLX:=DDDX-(XDX-DDDX),LINETHICK2,COLORGREEN;
ABC:=VOL*(O+C)/2;
绿合一笑脸:XDX=ZLX AND REF(XDX,1)>REF(ZLX,1) AND XG1,COLORYELLOW;