编写要求:
求助老师将.短线通道指标.公式中的(DIF.线)上穿(坐标线0.00)时改选股公式.谢谢 SHORT:=12;LONG:=26;MID:=9; D1:=EMA(C,3)-EMA(C,8); D2:=EMA(O,3)-EMA(O,8); D3:=EMA(H,3)-EMA(H,8); D4:=EMA(L,3)-EMA(L,8); STICKLINE(D1>=D2,D1,D2,3,0),COLOR0055AA; STICKLINE(D1<=D2,D1,D2,3,0),COLOR006600; STICKLINE(D1>=D2,D1,D2,2,0),COLOR0077CC; STICKLINE(D1>=D2,D1,D2,1,0),COLOR0099DD; STICKLINE(D1>=D2,D3,D4,0,0),COLOR00BBFF; STICKLINE(D1<=D2,D1,D2,2,0),COLOR009900; STICKLINE(D1<=D2,D1,D2,1,0),COLOR00BB00; STICKLINE(D1<=D2,D3,D4,0,0),COLOR00EE00; DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),COLORCYAN,LINETHICK2; DEA:EMA(DIF,MID),COLOR66CC00,LINETHICK3; TJ1:EMA(DEA,4),COLOR999933,LINETHICK3; TJ2:=EMA(DIF,17),COLORBLUE,LINETHICK3; MACD:(DIF-DEA)*2,COLORSTICK; IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORWHITE,LINETHICK2; IF(DEA>REF(DEA,1),DEA,DRAWNULL),COLORRED,LINETHICK3; IF(TJ1>REF(TJ1,1),TJ1,DRAWNULL),COLORMAGENTA,LINETHICK3; {IF(TJ2>REF(TJ2,1),TJ2,DRAWNULL),COLORWHITE,LINETHICK3;} 0,COLORGRAY,LINETHICK1;
解答:
?SHORT:=12;LONG:=26;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!