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

将强弱势公式及趋势信号改为通达信公式

2020/1/12 19:05:36

公式编写说明:

请老师将强弱势公式及趋势信号改为通达信公式强弱势公式源码:A1:=(EMA(((O+H+L+C)/4),3)+EMA(((O+H+L+C)/4),6)+EMA(((O+H+L+C)/4),9))/3;A2:=(EMA(((O+H+L+C)/4),5)+EMA(((O+H+L+C)/4),10)+EMA(((O+H+L+C)/4),20))/3;A3:=(EMA(((O+H+L+C)/4),7)+EMA(((O+H+L+C)/4),14)+EMA(((O+H+L+C)/4),28))/3;A4:=(EMA(((O+H+L+C)/4),9)+EMA(((O+H+L+C)/4),18)+EMA(((O+H+L+C)/4),36))/3;A5:=(EMA(((O+H+L+C)/4),11)+EMA(((O+H+L+C)/4),22)+EMA(((O+H+L+C)/4),44))/3;A6:=(EMA(((O+H+L+C)/4),13)+EMA(((O+H+L+C)/4),26)+EMA(((O+H+L+C)/4),52))/3;A7:=(EMA(((O+H+L+C)/4),21)+EMA(((O+H+L+C)/4),34)+EMA(((O+H+L+C)/4),68))/3;b1:PARTLINE(A1>REF(A1,1),FORCAST(A1,6)),NOTDRAWTEXT,COLORRED,2;b2:PARTLINE(A1<REF(A1,1),FORCAST(A1,6)),NOTDRAWTEXT,COLORGREEN,2;b3:PARTLINE(A2>REF(A2,1),FORCAST(A2,6)),NOTDRAWTEXT,COLORRED,2;b4:PARTLINE(A2<REF(A2,1),FORCAST(A2,6)),NOTDRAWTEXT,COLORGREEN,2;b5:PARTLINE(A3>REF(A3,1),FORCAST(A3,6)),NOTDRAWTEXT,COLORRED,2;b6:PARTLINE(A3<REF(A3,1),FORCAST(A3,6)),NOTDRAWTEXT,COLORGREEN,2;b7:PARTLINE(A4>REF(A4,1),FORCAST(A4,6)),NOTDRAWTEXT,COLORRED,2;b8:PARTLINE(A4<REF(A4,1),FORCAST(A4,6)),NOTDRAWTEXT,COLORGREEN,2;b9:PARTLINE(A5>REF(A5,1),FORCAST(A5,6)),NOTDRAWTEXT,COLORRED,2;b10:PARTLINE(A5<REF(A5,1),FORCAST(A5,6)),NOTDRAWTEXT,COLORGREEN,2;b11:PARTLINE(A6>REF(A6,1),FORCAST(A6,6)),NOTDRAWTEXT,COLORRED,2;b12:PARTLINE(A6<REF(A6,1),FORCAST(A6,6)),NOTDRAWTEXT,COLORGREEN,2;b13:PARTLINE(A7>REF(A7,1),FORCAST(A7,6)),NOTDRAWTEXT,COLORRED,0,3;b14:PARTLINE(A7<REF(A7,1),FORCAST(A7,6)),NOTDRAWTEXT,COLORGREEN,0,3;towerc:=FORCAST(EMA((3*C+2*O+H+L)/7,3),6);directionmax:=MAX(REF(towerc,1),REF(towerc,1));d1:STICKLINE(towerc>=REF(towerc,1),towerc,directionmax,6,0),NOTDRAWTEXT,RGB(253,190,2);d2:STICKLINE(towerc>=REF(towerc,1),towerc,directionmax,5,0),NOTDRAWTEXT,RGB(253,150,2);d3:STICKLINE(towerc>=REF(towerc,1),towerc,directionmax,4,0),NOTDRAWTEXT,RGB(253,110,2);d4:STICKLINE(towerc>=REF(towerc,1),towerc,directionmax,3,0),NOTDRAWTEXT,RGB(253,70,2);d5:STICKLINE(towerc>=REF(towerc,1),towerc,directionmax,2,0),NOTDRAWTEXT,RGB(253,30,2);d6:STICKLINE(towerc>=REF(towerc,1),towerc,directionmax,1,0),NOTDRAWTEXT,RGB(253,0,2);d7:STICKLINE(towerc<REF(towerc,1),towerc,directionmax,6,0),NOTDRAWTEXT,RGB(0,136,0);d8:STICKLINE(towerc<REF(towerc,1),towerc,directionmax,5,0),NOTDRAWTEXT,RGB(0,153,0);d9:STICKLINE(towerc<REF(towerc,1),towerc,directionmax,4,0),NOTDRAWTEXT,RGB(0,170,0);d10:STICKLINE(towerc<REF(towerc,1),towerc,directionmax,3,0),NOTDRAWTEXT,RGB(0,187,0);d11:STICKLINE(towerc<REF(towerc,1),towerc,directionmax,2,0),NOTDRAWTEXT,RGB(0,204,0);d12:STICKLINE(towerc<REF(towerc,1),towerc,directionmax,1,0),NOTDRAWTEXT,RGB(0,221,0);趋势信号源码:CC:=IF(WEEKDAY=4,C,1);b1:=EMA(CLOSE,11);b2:=EMA(CLOSE,21);b3:=EMA(CLOSE,15);a1:IF(Cc=1,REF(b1,BARSLAST(Cc<>1)),REF(b1,BARSLAST(Cc=1))),NOTDRAWTEXT,COLORRED,0,3;a2:partline(Cc=1 and b1>=b2,REF(b3,BARSLAST(Cc<>1))),NOTDRAWTEXT,COLORRED,0,2;a3:partline(cc<>1 and b11 and b1公式源码回答:

 a1:=(ema(((o+h+l+c)/4),3)+ema(((o+h+l+c)/4),6)+ema(((o+h+l+c)/4),9))/3;

a2:=(ema(((o+h+l+c)/4),5)+ema(((o+h+l+c)/4),10)+ema(((o+h+l+c)/4),20))/3;
a3:=(ema(((o+h+l+c)/4),7)+ema(((o+h+l+c)/4),14)+ema(((o+h+l+c)/4),28))/3;
a4:=(ema(((o+h+l+c)/4),9)+ema(((o+h+l+c)/4),18)+ema(((o+h+l+c)/4),36))/3;
a5:=(ema(((o+h+l+c)/4),11)+ema(((o+h+l+c)/4),22)+ema(((o+h+l+c)/4),44))/3;
a6:=(ema(((o+h+l+c)/4),13)+ema(((o+h+l+c)/4),26)+ema(((o+h+l+c)/4),52))/3;
a7:=(ema(((o+h+l+c)/4),21)+ema(((o+h+l+c)/4),34)+ema(((o+h+l+c)/4),68))/3;
b1:if(a1>ref(a1,1),forcast(a1,6),drawnull),colorred;
b2:if(a1<ref(a1,1),forcast(a1,6),drawnull),colorgreen;
b3:if(a2>ref(a2,1),forcast(a2,6),drawnull),colorred;
b4:if(a2<ref(a2,1),forcast(a2,6),drawnull),colorgreen;
b5:if(a3>ref(a3,1),forcast(a3,6),drawnull),colorred;
b6:if(a3<ref(a3,1),forcast(a3,6),drawnull),colorgreen;
b7:if(a4>ref(a4,1),forcast(a4,6),drawnull),colorred;
b8:if(a4<ref(a4,1),forcast(a4,6),drawnull),colorgreen;
b9:if(a5>ref(a5,1),forcast(a5,6),drawnull),colorred;
b10:if(a5<ref(a5,1),forcast(a5,6),drawnull),colorgreen;
b11:if(a6>ref(a6,1),forcast(a6,6),drawnull),colorred;
b12:if(a6<ref(a6,1),forcast(a6,6),drawnull),colorgreen;
b13:if(a7>ref(a7,1),forcast(a7,6),drawnull),colorred;
b14:if(a7<ref(a7,1),forcast(a7,6),drawnull),colorgreen;
towerc:=forcast(ema((3*c+2*o+h+l)/7,3),6);
directionmax:=max(ref(towerc,1),ref(towerc,1));
d1:stickline(towerc>=ref(towerc,1),towerc,directionmax,3,0),color02befd;
d2:stickline(towerc>=ref(towerc,1),towerc,directionmax,2.5,0),color0296fd;
d3:stickline(towerc>=ref(towerc,1),towerc,directionmax,2,0),color026efd;
d4:stickline(towerc>=ref(towerc,1),towerc,directionmax,1.5,0),color0246fd;
d5:stickline(towerc>=ref(towerc,1),towerc,directionmax,1,0),color021efd;
d6:stickline(towerc>=ref(towerc,1),towerc,directionmax,0.5,0),color0200fd;
d7:stickline(towerc<ref(towerc,1),towerc,directionmax,3,0),color008800;
d8:stickline(towerc<ref(towerc,1),towerc,directionmax,2.5,0),color009900;
d9:stickline(towerc<ref(towerc,1),towerc,directionmax,2,0),color00aa00;
d10:stickline(towerc<ref(towerc,1),towerc,directionmax,1.5,0),color00bb00;
d11:stickline(towerc<ref(towerc,1),towerc,directionmax,1,0),color00cc00;
d12:stickline(towerc<ref(towerc,1),towerc,directionmax,0.5,0),color00dd00;
 
 
 
===========================================================================
 
cc:=if(weekday=4,c,1);
b1:=ema(c,11);
b2:=ema(c,21);
b3:=ema(c,15);
a1:if(cc=1,ref(b1,barslast(cc!=1)),ref(b1,barslast(cc=1))),colorred;
a2:if(cc=1 and b1>=b2,ref(b3,barslast(cc!=1)),drawnull),colorred;
a3:if(cc!=1 and b1<b2,hhv(b2,30),drawnull),coloryellow;
a4:drawicon(cc!=1 and b1<b2,hhv(b2,30),9);

投股 票网 www.tou18 .cn

股市公式下载推荐
投股票网股市查询:资金行情查询 实时DDX查询 大智慧超赢 千股千评 最新提示 股票公告 投资要点 评级查询 股东查询 增发配股查询 股权结构查询
立昂微 605358+4.43% 评股 实时DDX 大智慧 最新消息 题材分析 股权
渝三峡A 000565+4.41% 评股 实时DDX 大智慧 最新消息 题材分析 股权
中能电气 300062+4.39% 评股 实时DDX 大智慧 最新消息 题材分析 股权
聚辰股份 688123+4.37% 评股 实时DDX 大智慧 最新消息 题材分析 股权
华铁应急 603300+4.37% 评股 实时DDX 大智慧 最新消息 题材分析 股权
佳云科技 300242+4.37% 评股 实时DDX 大智慧 最新消息 题材分析 股权
ST熊猫 600599+4.35% 评股 实时DDX 大智慧 最新消息 题材分析 股权
东尼电子 603595+4.34% 评股 实时DDX 大智慧 最新消息 题材分析 股权
风范股份 601700+4.34% 评股 实时DDX 大智慧 最新消息 题材分析 股权
明志科技 688355+4.33% 评股 实时DDX 大智慧 最新消息 题材分析 股权
联系我们:nmsy8@hotmail.com 友情链接 要求相关的财经股票网站 今日股市行情在线查询
本站不推荐任何股票,站内广告不代表投股票网的观点,由此引起的一切法律责任均与本站无关,请网民自行判断真假,谨防网上股票预测诈骗!
本站所有内容仅供参考,不构成投资建议,据此操作,风险自担。本站不为所提供数据的错误或因依此信息所采取的任何行为负责。
手机版(手机访问当前页面) | 手机APP下载 | 电脑端(适合电脑或大屏用户) | 备案号:沪ICP备2024045114号-120