当前位置:→ 股海网同花顺公式 → 正文
  • 同花顺MACD&KDJ顶底背离副图指标 源码

  • 相关简介:我是转载别人的,我也没有用过,不知道好不好用,不要以这个指标为准。 BU:=BARSLAST(CLOSE=HHV(CLOSE,60)); SE:=BARSLAST(CLOSE=LLV(CLOSE,60)); KK1:=SE; KK2:=BU; LM1:=SE; LM2:=BU; OK:=KK1KK2 AND LM1LM2; OK1:=KK1KK2 AND LM1LM2; NOK:=KK2KK1 AND LM2LM1; NOK1:=KK2KK1 AND LM2LM1; DRAWICON(CROSS

  • 文章来源:股海网作者:股海网发布时间:2017-12-19浏览次数:下载次数:0

我是转载别人的,我也没有用过,不知道好不好用,不要以这个指标为准。

BU:=BARSLAST(CLOSE=HHV(CLOSE,60));
 SE:=BARSLAST(CLOSE=LLV(CLOSE,60));
 KK1:=SE;
 KK2:=BU;
 LM1:=SE;
 LM2:=BU;
 OK:=KK1>KK2 AND LM1>LM2;
 OK1:=KK1>KK2 AND LM1<LM2;
 NOK:=KK2>KK1 AND LM2>LM1;
 NOK1:=KK2>KK1 AND LM2<LM1;
 DRAWICON(CROSS(KK1,KK2),OPEN*1,1);
 DRAWTEXT(CROSS(KK1,KK2),OPEN*0.985,'抓'),color3cb371;
 T:=BARSCOUNT(C);
均价:=DYNAINFO(11);
总量:=SUM(VOL,T);
总额:=SUM(AMOUNT,T);
均价:=总额/(总量*100);
次数:=COUNT(CLOSE>均价,T);
占比:=次数/T*100;
分时强势:DRAWICON(CROSS(CLOSE,均价) AND CLOSE>均价 AND 占比>80 AND T>5,CLOSE*0.99,7);
 DRAWTEXT(CROSS(CLOSE,均价) AND CLOSE>均价 AND 占比>80 AND T>5,CLOSE*0.98,'涨价'),colorFFFF00;
 VAR1:=AMOUNT/VOL/100;
 VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
 VAR3:=SUM(AMOUNT,5)/VAR1/100;
 VAR4:=SUM(AMOUNT,13)/VAR1/100;
 VAR5:=SUM(AMOUNT,34)/VAR1/100;
 CYC5:=DMA(VAR2,VOL/VAR3);
 CYC13:=DMA(VAR2,VOL/VAR4);
 CYC34:=DMA(VAR2,VOL/VAR5);
 CYC∞:=DMA(VAR2,VOL/CAPITAL);
一剑封喉:=CROSS(CLOSE,MA(CLOSE,13)) AND CROSS(CLOSE,MA(CLOSE,34)) AND CROSS(CLOSE,MA(CLOSE,55));
 A1:=(CLOSE-LLV(LOW,22))/(HHV(HIGH,22)-LLV(LOW,22))*100;
 A2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
 A:=3*SMA(A1,5,1)-2*SMA(SMA(A2,5,1),3,1);
 YNGS:=一剑封喉 AND A<30;
 DRAWICON(一剑封喉 AND A<30,LOW*0.985,10);
 DRAWTEXT(一剑封喉 AND A<30,LOW*0.98,'停'),colorFF0000;
 c1:=REF(C,1);
 c2:=HHV(c1,2);
 c3:=LLV(c1,1);
 et:=HHV(c1,2);
 et1:=REF(et,1);
 xb:=LLV(c1,1);
 xb1:=REF(xb,1);
 m:=BARSLAST(C<xb AND c1>=xb1);
 m11:=REF(m,1);
 n9:=BARSLAST(C>et AND c1<=et1);
 n1:=REF(n9,1);
 m21:=BARSLAST(m-n9>0 AND m11<=n1)+1;
 n2:=BARSLAST(n9-m>0 AND n1<=m11)+1;
 et2:=HHV(et,m21);
 xb2:=LLV(xb,n2);
 a:=IF(m-n9>0 AND m11<=n1,1,IF(n9-m>0 AND n1<=m11,0,2));
 h1:=IF(m-n9>0,C,et2);
 h2:=IF(a=1,C,c2);
 h3:=IF(m-n9<0,C,xb2);
 h4:=IF(a=1,C,xb2);
 h5:=IF(m-n9>0 OR a=1,C,h3);
明关键价位:REF(h5,1);
 MA1:=MA(CLOSE,2);
 Var1:=MA(C, 1);
 Var2:=MA(C, 5);
 Var3:=MA(C, 10);
 Var4:=MA(C, 20);
 Var5:=MA(C, 30);
 Var6:=(Var1+Var2+Var3+Var4+Var5)/5;
 Var7:=(Var6-REF(Var6, 15))/REF(Var6,15)*100;
 Var8:=(Var6-REF(Var6, 15))/REF(Var6, 15)*100;
 Var9:=EMA(Var7, 8);
平均价:=(H+4*L+C+O)/7;
均价差:= EMA(平均价,13) - EMA(平均价,34);
移动均价:= EMA(均价差,5);
差:=(均价差-移动均价)*5;
 A:=IF(差>=1000 ,1000 ,IF(差<=平均价,平均价,差) );
分水岭:=FORCAST(FORCAST(A,31),10);
涨↑:IF(A>分水岭,A,分水岭),LINETHICK1,colorred;
跌↓:IF(A<分水岭,A,分水岭),LINETHICK1,colorgreen;
 ma6:=MA(C,6);
 ma18:=MA(C,18);
 ma55:=MA(C,55);
 ma125:=MA(C,125);
 ma250:=MA(C,250);
 TY:=C;
 A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=REF(B1,10+1); HD:=FILTER(C1,10);
 A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=REF(B2,10+1); LD:=REF(C2,10);
 AA:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));
 t11:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
 t21:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波峰:IF(t11,AA,AA),ColorFF00FF,POINTDOT;
 STICKLINE(t11,AA,AA,9,0),ColorFF00FF;
波谷:IF(t21,B,B),Color80FF00,POINTDOT;
 STICKLINE(t21,B,B,9,0),Color80FF00;
买进价:=((C-REF(ma6,1))/6+ma6)*1.004;
买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);
黄点状线:IF(买进条件,H,L),coloryellow,linethick1,POINTDOT;
 DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
 DEA:=EMA(DIFF,8);
 A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
 B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
 DRAWTEXT(IF(B1>0,1,0),L-0.1,'MACD底背'),colorgreen;
 RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 K:=SMA(RSV,3,1);
 D:=SMA(K,3,1);
 A2:=BARSLAST(REF(CROSS(K,D),1));
 B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D);
 DRAWTEXT(IF(B2>0,1,0),L-0.25,'KDJ底背'),coloryellow;
 LC:=REF(CLOSE,1);
 RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
 RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
 A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
 B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);
 DRAWTEXT(IF(B3>0,1,0),L-0.4,'RSI底背'),colorcyan;
 C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
 D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
 DRAWTEXT(IF(D1>0,1,0),H*1.01,'MACD顶背'),colorwhite;
 C2:=BARSLAST(REF(CROSS(D,K),1));
 D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K);
 DRAWTEXT(IF(D2>0,1,0),H+0.15,'KDJ顶背'),colorwhite;
 C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
 D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);
 DRAWTEXT(IF(D3>0,1,0),H+0.1,'RSI顶背'),colormagenta;
 REF(H,C1),colorB48246,POINTDOT;
 KK:=DATE<1341231;
 PK:=VOL*(OPEN+CLOSE+HIGH+LOW)/4;
 PK1:=IF(VOL>0,PK/VOL,(OPEN+CLOSE+HIGH+LOW)/4);
 C11:=PK1;
 A01:=(C11-LLV(C11,75))/(HHV(C11,75)-LLV(C11,75));
 A11:=SMA(A01,13,1);
 A21:=SMA(A11,13,1);
 A31:=3*A11-2*A21;
 A41:=2*A31-0.5;
 ZS:=DYNAINFO(3)*0.95;
选1:=IF(KK,C11*(1-(A41-A21)/40),0);
选2:=CROSS(C11,选1) AND CLOSE/REF(CLOSE,1)<1.03;
选3:IF(选2,ZS*1.03,ZS),colorgreen;

同花顺MACD&KDJ顶底背离副图指标 源码

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

同花顺MACD&KDJ顶底背离副图指标 源码

  • 下载资源所需积分

    0

  • 当前拥有积分

    0

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

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