DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
T:=BARSLAST(CROSS(DEA,DIF));
HT:=BARSLAST( HHV(DEA,15)=DEA);
GT:=BARSLAST(T=0 AND REF(HT,1)=0 AND DEA>0);
GM:=REF(DEA,GT);
EXT:=DRAWLINE(GT=0,DEA,T=0 AND (REF(GM,1)-DEA)>0.75 AND DEA>0,REF(DEA,T),1);
XG:=CROSS(DEA,EXT);
DRAWICON(XG,L*0.95,1);
STICKLINE(XG,C,O,2,0),COLORYELLOW;
STICKLINE(XG,H,L,0,0),COLORYELLOW;
{
选股公式:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
T:=BARSLAST(CROSS(DEA,DIF));
HT:=BARSLAST( HHV(DEA,15)=DEA);
GT:=BARSLAST(T=0 AND REF(HT,1)=0 AND DEA>0);
GM:=REF(DEA,GT);
EXT:=DRAWLINE(GT=0,DEA,T=0 AND (REF(GM,1)-DEA)>0.75 AND DEA>0,REF(DEA,T),1);
XG:CROSS(Dea,EXT);
}
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!