投股票网 www.tou18.cn [今日股市行情 股市在线查询 股票大盘行情] 股市有风险 投资需谨慎 手机APP下载 | 手机访问 | 加入收藏 | 保存到桌面
投股票网
今日股市行情 股市在线查询 股票大盘行情
个股查询: 资金行情 DDX查询 大智慧超赢 同花顺DDE 千股千评 最新提示 股票公告 投资要点 评级查询 大小非 股东 增发配股 股权 高管 股票概况
当前位置: 投股票网 > 股市公式下载 > 通达信公式
股市公式查询:

通达信趋势之王VER指标公式

2020/5/17 19:00:01

SH:=12;LO:=24;MI:=9;
FIRST:=IF(PERIOD=3,1/6,1/4);
DIF0:=EMA(CLOSE,SH*FIRST)-EMA(CLOSE,LO*FIRST);
DEA0:=EMA(DIF0,MI*FIRST);
MACD0:=(DIF0-DEA0)*2;
DIF1:=EMA(CLOSE,SH)-EMA(CLOSE,LO);
DEA1:=EMA(DIF1,MI);
MACD1:=(DIF1-DEA1)*2;
STRONGER:=MACD1>0 AND MACD1-REF(MACD1,1)>REF((MACD1-REF(MACD1,1)),1);
WEAKER:=MACD1<=0 AND ABS(MACD1)-REF(ABS(MACD1),1)<REF((ABS(MACD1)-REF(ABS(MACD1),1)),1);
MID:=IF(PERIOD=1,3,4);
DIF2:=EMA(CLOSE,SH*MID)-EMA(CLOSE,LO*MID);
DEA2:=EMA(DIF2,MI*MID);
MACD2:=(DIF2-DEA2)*2;
LONG:=IF(PERIOD=6,24,IF(PERIOD=5,20,IF(PERIOD=4 OR PERIOD=3 OR PERIOD=2,16,IF(PERIOD=1,12,DRAWNULL))));
DIF3:=EMA(CLOSE,SH*LONG)-EMA(CLOSE,LO*LONG);
DEA3:=EMA(DIF3,MI*LONG);
MACD3:=(DIF3-DEA3)*2;
UP1:=REF(HHV(DEA1,MI*LONG),1);
DN1:=REF(LLV(DEA1,MI*LONG),1);
ZZ1:=(UP1+DN1)/2;
DRAWBAND(UP1,RGB(80,80,80),ZZ1,0);
DRAWBAND(ZZ1,RGB(45,45,45),DN1,0);
UP0:=REF(HHV(DEA0,IF(PERIOD=3,MI*MID/3*2,MI*MID)),1);
DN0:=REF(LLV(DEA0,IF(PERIOD=3,MI*MID/3*2,MI*MID)),1);
ZZ0:=(UP0+DN0)/2;
DRAWBAND(UP0,RGB(30,30,30),ZZ0,0);
DRAWBAND(ZZ0,RGB(15,15,15),DN0,0);
STICKLINE(1,0,0,0.5,0),COLORF580F5;
STICKLINE(UP0>=UP1,UP1,UP1,1,0),COLOR808080;
STICKLINE(DN0<=DN1,DN1,DN1,1,0),COLOR808080;
STICKLINE(UP0>=UP1,UP0,UP0,1,0),COLORAAAAAA;
STICKLINE(DN0<=DN1,DN0,DN0,1,0),COLORAAAAAA;
DRAWBAND(DEA0,RGB(100,100,100),DEA0,0);
STICKLINE(MACD1>0,DIF1,DEA1,3,1),COLORF580F5;
STICKLINE(MACD1<0,DIF1,DEA1,3,1),COLORCCDD33;
STICKLINE(MACD1>0 AND MACD1>REF(MACD1,1),DIF1,DEA1,1,0),COLORF580F5;
STICKLINE(MACD1<=0 AND MACD1<=REF(MACD1,1),DIF1,DEA1,1,0),COLORCCDD33;
STICKLINE(DIF1>0 AND MACD1>0 AND MACD1>REF(MACD1,1),DIF1,DEA1,1,0),COLORMAGENTA;
STICKLINE(DIF1<=0 AND MACD1<=0 AND MACD1<=REF(MACD1,1),DIF1,DEA1,1,0),COLORBLUE;
DRAWTEXT(REF(MACD1,1)>0 AND MACD1>REF(MACD1,1) AND STRONGER,DEA1,'^^'),COLORRED;
DRAWTEXT(REF(MACD1,1)<=0 AND MACD1<=REF(MACD1,1) AND WEAKER,DIF1,'^^'),COLORGREEN;
{www.tou18.cn 投股票网_通达信指标公式}
STICKLINE(DIF2>DEA2,DIF2,DEA2,2.5,-1),COLORRED;
STICKLINE(DIF2<=DEA2,DIF2,DEA2,2.5,-1),COLORGREEN;
STICKLINE(DIF2-DEA2>REF(DIF2-DEA2,1) AND DIF2>DEA2,DIF2,DEA2,2.5,1),COLORRED;
STICKLINE(DIF2-DEA2<=REF(DIF2-DEA2,1) AND DIF2<=DEA2,DIF2,DEA2,2.5,1),COLORGREEN;
STICKLINE(MACD1>0 AND MACD1>REF(MACD1,1) AND MACD2>0 AND MACD2>=REF(MACD2,1),DIF2,DEA2,0.5,1),COLORRED;
STICKLINE(MACD1<=0 AND MACD1<=REF(MACD1,1) AND MACD2<=0 AND MACD2<=REF(MACD2,1),DIF2,DEA2,0.5,1),COLORGREEN;
STICKLINE(DIF3>DEA3,DIF3,DEA3,1.5,-1),COLORRED;
STICKLINE(DIF3<=DEA3,DIF3,DEA3,1.5,-1),COLORGREEN;
STICKLINE(DIF3-DEA3>REF(DIF3-DEA3,1) AND DIF3>DEA3,DIF3,DEA3,1.5,0),COLORRED;
STICKLINE(DIF3-DEA3<=REF(DIF3-DEA3,1) AND DIF3<=DEA3,DIF3,DEA3,1.5,0),COLORGREEN;
DRAWTEXT(ISLASTBAR AND PERIOD=2,(DIF1+DEA1)/2,'←15M'),COLORWHITE;
DRAWTEXT(ISLASTBAR AND PERIOD=2,(DIF2+DEA2)/2,'←60M'),COLORYELLOW;
DRAWTEXT(ISLASTBAR AND PERIOD=2,(DIF3+DEA3)/2,'←DAY'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR AND PERIOD=3,DEA0,'←5M'),COLORWHITE;
DRAWTEXT(ISLASTBAR AND PERIOD=3,(DIF1+DEA1)/2,'←30M'),COLORWHITE;
DRAWTEXT(ISLASTBAR AND PERIOD=3,(DIF2+DEA2)/2,'←2HOUR'),COLORYELLOW;
DRAWTEXT(ISLASTBAR AND PERIOD=3,(DIF3+DEA3)/2,'←2DAY'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR AND PERIOD=4,DEA0,'←15M'),COLORRED;
DRAWTEXT(ISLASTBAR AND PERIOD=4,(DIF1+DEA1)/2,'←60M'),COLORWHITE;
DRAWTEXT(ISLASTBAR AND PERIOD=4,(DIF2+DEA2)/2,'←DAY'),COLORYELLOW;
DRAWTEXT(ISLASTBAR AND PERIOD=4,(DIF3+DEA3)/2,'←WEEK'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR AND PERIOD=5,DEA0,'←60M'),COLORRED;
DRAWTEXT(ISLASTBAR AND PERIOD=5,(DIF1+DEA1)/2,'←DAY'),COLORWHITE;
DRAWTEXT(ISLASTBAR AND PERIOD=5,(DIF2+DEA2)/2,'←WEEK'),COLORYELLOW;
DRAWTEXT(ISLASTBAR AND PERIOD=5,(DIF3+DEA3)/2,'←MONTH'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR AND PERIOD=6,DEA0,'←DAY'),COLORRED;
DRAWTEXT(ISLASTBAR AND PERIOD=6,(DIF1+DEA1)/2,'←WEEK'),COLORWHITE;
DRAWTEXT(ISLASTBAR AND PERIOD=6,(DIF2+DEA2)/2,'←MONTH'),COLORYELLOW;
DRAWTEXT(ISLASTBAR AND PERIOD=6,(DIF3+DEA3)/2,'←HALF_YEAR'),COLORMAGENTA;

投股票 网 w ww.tou18.cn

股市公式下载推荐
投股票网股市查询:资金行情查询 实时DDX查询 大智慧超赢 千股千评 最新提示 股票公告 投资要点 评级查询 股东查询 增发配股查询 股权结构查询
恒通股份 603223+3.00% 评股 实时DDX 大智慧 最新消息 题材分析 股权
比亚迪 002594+2.99% 评股 实时DDX 大智慧 最新消息 题材分析 股权
深南电路 002916+2.99% 评股 实时DDX 大智慧 最新消息 题材分析 股权
一鸣食品 605179+2.99% 评股 实时DDX 大智慧 最新消息 题材分析 股权
跃岭股份 002725+2.99% 评股 实时DDX 大智慧 最新消息 题材分析 股权
普利制药 300630+2.98% 评股 实时DDX 大智慧 最新消息 题材分析 股权
当升科技 300073+2.97% 评股 实时DDX 大智慧 最新消息 题材分析 股权
海能实业 300787+2.97% 评股 实时DDX 大智慧 最新消息 题材分析 股权
伟星新材 002372+2.97% 评股 实时DDX 大智慧 最新消息 题材分析 股权
艾可蓝 300816+2.95% 评股 实时DDX 大智慧 最新消息 题材分析 股权
联系我们:nmsy8@hotmail.com 友情链接 要求相关的财经股票网站 今日股市行情在线查询
本站不推荐任何股票,站内广告不代表投股票网的观点,由此引起的一切法律责任均与本站无关,请网民自行判断真假,谨防网上股票预测诈骗!
本站所有内容仅供参考,不构成投资建议,据此操作,风险自担。本站不为所提供数据的错误或因依此信息所采取的任何行为负责。
手机版(手机访问当前页面) | 手机APP下载 | 电脑端(适合电脑或大屏用户) | 备案号:沪ICP备2024045114号-120