最新更新 - 网站地图 -
您的当前位置:首页 > 股票公式 > 公式技巧 > 把通达信‘撑压指标’改成大智慧

把通达信‘撑压指标’改成大智慧

来源:网络 点击: 时间:2023-01-09 10:48:00

编写要求:

{压力支撑TDX版} A1:=EMA(C,14)COLORWHITE,LINETHICK4; A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; 出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK4; 休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK4; STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW; STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN; STICKLINE(CROSS(A1X,0)OR CROSS(0,A1X),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,2,0)COLORWHITE,LINETHICK4; STICKLINE(ISLASTBAR,REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,5,0)COLORWHITE,LINETHICK4; 工作线:=EMA(C,14); 止盈线:EMA(C,7),LINETHICK1,COLORGRAY; 工作区:IF(C>=工作线 AND EMA(C,14)>=EMA(C,25),工作线,DRAWNULL), COLORRED,LINETHICK4; 准备区:IF(C>=工作线 AND EMA(C,14)EMA(C,14),L*0.99,1); DRAWICON(COUNT(CEMA(C,14) AND COUNT(C>止盈线,6)>=3,H*1.03,2); DRAWICON(CROSS(工作线,C) AND EMA(C,14)>EMA(C,25),H*1.01,8);{止损位} IF(CROSS(生命线,工作线),HIGH*1.04,DRAWNULL),CIRCLEDOT,COLORGREEN;

解答:

?A1:EMA(C,14),COLORWHITE,LINETHICK4;
A1X:(A1-REF(A1,1))/REF(A1,1)*100,LINETHICK0;
STICKLINE(CROSS(A1X,0),C,O,8,0),COLORYELLOW;
STICKLINE(CROSS(0,A1X),C,O,8,0),COLORGREEN;
STICKLINE(CROSS(A1X,0)OR CROSS(0,A1X),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,8,0),COLORFFFFFF,LINETHICK4;
STICKLINE(BARSCOUNT(C),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,5,0),COLOR00FFFF,LINETHICK4;
工作线:=EMA(C,14);
止盈线:EMA(C,7),LINETHICK1,COLORGRAY;
PARTLINE(工作线,C>=工作线 AND EMA(C,14)>=EMA(C,25),RGB(250,0,0)),LINETHICK4;
PARTLINE(工作线,C>=工作线 AND EMA(C,14) PARTLINE(工作线,C<工作线,RGB(0,250,0)),LINETHICK4;
生命线:EMA(C,25),COLORYELLOW;
DRAWICON(CROSS(工作线,生命线),工作线*0.95,5);
DRAWICON(CROSS(C,生命线) AND C>EMA(C,14),L*0.99,1);
DRAWICON(COUNT(CEMA(C,14) AND COUNT(C>止盈线,6)>=3,H*1.03,2);
DRAWICON(CROSS(工作线,C) AND EMA(C,14)>EMA(C,25),H*1.01,8);{止损位}

    Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号

    免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!

    Top