当前位置:→ 股海网通达信公式 → 正文
  • 通达信股神主图指标

  • 相关简介:通达信股神主图指标 源码 M1:=55; HR:=HHV(HIGH,M1); HRY:=LLV(LOW,M1); HRY11:=HR*HRY; HRY33:SQRT(HRY11),COLORGREEN,LINETHICK2; IF(CHRY33 AND HRY33 =REF(HRY33 ,1), HRY33 ,DRAWNULL),LINETHICK2,COLORRED; TEND:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42), POINTDOT,COLORFF

  • 文章来源:股海网作者:股海网发布时间:2016-02-20浏览次数:下载次数:0

通达信股神主图指标

源码

M1:=55;

HR:=HHV(HIGH,M1);
HRY:=LLV(LOW,M1);
HRY11:=HR*HRY;
HRY33:SQRT(HRY11),COLORGREEN,LINETHICK2;
IF(C>HRY33 AND HRY33 >=REF(HRY33 ,1), HRY33 ,DRAWNULL),LINETHICK2,COLORRED;

TEND:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),
POINTDOT,COLORFF00FF,LINETHICK2;
WLT1:=EMA(C,3),COLORBLUE,LINETHICK1;
WLT2:=EMA(C,5),COLORWHITE,LINETHICK1;
WLT3:=EMA(WLT2,5),COLOR00FF00,LINETHICK1;
DRAWBAND(WLT1,RGB(255,255,0),WLT2,RGB(256,200,0));
QQ:= C
MM:=WLT1>REF(WLT1,1) AND REF(WLT1,1)
MM0:=WLT1REF(WLT1,2) ;
WL:=CROSS(WLT1,WLT2);
WL1:=CROSS(WLT2,WLT1);
WL2:=CROSS(WLT1,TEND);
WL3:=LLV(LOW,55);
WL6:=HHV(HIGH,21);
WL8:=LLV(LOW,34);
DRAWICON(WL AND MM AND CWL6*0.6,LOW*0.97,23);

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
生命:MA(C,24),COLOR00FFFF;
做多:=IF(K>D AND MACD>0 AND V>1,2,0),COLORRED;
做空:=IF(K<0 AND V>1,-2,0),COLOR00FF00;
强洗:=IF(MACD>0 AND K1,1,0),COLOR0099FF;
弱升:=IF(MACD<0 AND K>D AND V>1,-1,0),COLORFFFF00;

STICKLINE(做多,L,H,0,0),COLORRED;
STICKLINE(做多 AND C
STICKLINE(做多 AND C>=O,C,O,3,1),COLORRED;
STICKLINE(做多 AND C
STICKLINE(做多 AND C
STICKLINE(做多 AND C

STICKLINE(做空 AND C>=O,L,H,0.1,0),COLOR0000FF;
STICKLINE(做空 AND C>=O,C,O,3,1),COLOR00FF00;
STICKLINE(做空 AND C
STICKLINE(做空 AND C
STICKLINE(做空 AND C

STICKLINE(强洗 AND C>=O,L,H,0.1,0),COLOR0000FF;
STICKLINE(强洗 AND C>=O,C,O,3,1),COLORFFFF00;
STICKLINE(强洗 AND C
STICKLINE(强洗 AND C
STICKLINE(强洗 AND C

STICKLINE(弱升 AND C>=O,L,H,0,0),COLOR0000FF;
STICKLINE(弱升 AND C>=O,C,O,3,1),COLOR00FFFF;
STICKLINE(弱升 AND C
STICKLINE(弱升 AND C
STICKLINE(弱升 AND C

SAL:=FILTER(CROSS(TEND,C) AND C
WLT1WL8*1.2,13);
DRAWICON(SAL,HIGH*1.03,15);
TJ1:=WL AND MM AND CWL6*0.8;
TJ2:=WL2 AND C>TEND;
TJ3:=TJ1 OR TJ2;
TJ4:=COUNT(TJ3,3)=2;
DRAWICON(FILTER(TJ4,3),LOW*0.95,23);
STICKLINE(WL AND MM AND CWL6*0.8,C,O,4,0),COLOR009999;
STICKLINE(WL AND MM AND CWL6*0.8,C,O,2.5,0),COLOR00BBBB;
STICKLINE(WL AND MM AND CWL6*0.8,C,O,1,0),COLOR00DDDD;
STICKLINE(WL AND MM AND CWL6*0.8,C,O,0.3,0),COLOR00FFFF;

STICKLINE(WL2 AND C>TEND,C,O,4,0),COLOR000099;
STICKLINE(WL2 AND C>TEND,C,O,2.5,0),COLOR0000BB;
STICKLINE(WL2 AND C>TEND,C,O,1,0),COLOR0000DD;
STICKLINE(WL2 AND C>TEND,C,O,0.3,0),COLOR0000FF;

STICKLINE(MM0 AND C>WL8*1.2,C,O,1,0),COLORFF0000;


HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
{HIGHN日前的最高价=2*HIGHN+1日内最高价的最高值}
QY:=BACKSET(AA,HIGHN+1);{若AA则将最近HIGHN+1周期置为1}
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
{QY的HIGHN日过滤 AND 最高价=HIGHN+1日内最高价的最高值}
DRAWICON(CC,H*1.02,2);
DDD:=BARSLAST(CC);{上次CC距今天数}
GDTS:=IF(CC,CURRBARSCOUNT,0);{如果CC,返回到最后交易日的周,否则返回0}
DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
DINGBU2:=REF(DINGBU1,DDD+1);
MMM:=IF(CURRBARSCOUNT>GDCS2,0,1);
高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,
CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK1;
DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;
DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
{DRAWICON(CC1,L*0.98,1);}
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,
CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK1;
ZGSTAR:=(高点压力+低点支撑)/2;
ZGEND:=CONST((高点压力+低点支撑)/2);
STARDAY:=IF(DDCS2
中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),
COLORFFBBFF,LINETHICK1;
DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,
REF(L,DDCS1-1),1),COLORFF00FF,POINTDOT,;
DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,
REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;
DRAWICON(WL2 AND C>TEND AND C
DRAWTEXT(WL2 AND C>TEND AND C

N8:=89;
HH:=CONST(HHV(H,N8));
LL:=CONST(LLV(L,N8));
M:=CONST(HH/2+LL/2);
CCC:=CONST(C);
YYY:=CONST(IF(CCC>=M,LL-(HH-LL)*0.2,HH+(HH-LL)*0.2));
V11:=(C+H+L)/3;
MA33:=MA(V11,2);
MA55:=MA(V11,5);
N18:=BARSLAST(CROSS(MA33,MA55));
N28:=BARSLAST(CROSS(MA55,MA33));
N88:=IF(N18
STICKLINE(N88>0,YYY,YYY+0.1,3,0),COLOR0000FF;
STICKLINE(N88<0,YYY,YYY+0.1,3,0),COLOR00FF00;
 

 

通达信股神主图指标

 ☟问题反馈 ☞┄┄┄┄┄┄┄┄┄┄→收藏资源:

通达信股神主图指标

  • 下载资源所需积分

    0

  • 当前拥有积分

    0

上传会员: 
股海网
文件大小: 
Bytes
上传时间: 
2016-02-20
下载积分: 
-
免责声明: 
请仔细阅读并同意后才能下载
本附件为用户分享上传,股海网没有对文件进行验证,不能保证下载资源的准确性、安全性和完整性,也不保证下载资源能正常安装和使用,且下载后扣除的积分无法退还,除非您充分理解并完全接受本声明,否则您无权下载。
本站对提供下载的软件、指标、资料等不拥有任何权利,其版权归该下载资源的合法拥有者所有。本附件仅供学习和研究使用,不得用于商业或者非法用途,如有侵犯您的版权, 请参看 《股海网侵权处理流程》《股海网免责声明条款》
点击下载无反应时,更换主流浏览器重新登录操作,如360浏览器、Edge浏览器、谷歌浏览器,个别浏览器有不兼容现象。
勾选以下表示您已经阅读并同意以上声明才能下载本文件,扣除积分无法退还!
我已阅读所有条款规定, 请点我同意 所有条款内容!我自愿下载!
提示:如下载失败,请点关闭刷新此页面或提交问题反馈给管理员→
关闭

关于我们 - 联系我们 - 隐私政策 - 免责声明 - 下载帮助 - 广告合作 - SiteMap - TOP
增值电信业务经营ICP许可证:湘B2-20210269 湘ICP备09016573号-10 湘公网安备43108102000040号
Copyright © 2021 铭网科技,All Rights Reserved.