分析家公式网,提供股票公式,股票软件用户登录  |  用户 注册
MACD顶底背离(副图 源码 数值显示)
  • 软件大小:7.00 KB
  • 推荐星级:
  • 更新时间:2011-05-21 12:06:01
  • 软件类别: 国产软件 / 通达信公式
  • 软件语言:简体中文
  • 授权方式: 免费版
  • 联系方式:暂无联系方式
  • 官方主页: Home Page
  • 点击大图:  【一键转帖到论坛】
  • 插件情况:
  • 运行环境:Win9X/Win2000/WinXP/Win2003/
  • 相关Tags:MACD顶底背离  
  • (10)71%
    (4)29%

软件介绍

请各位老师帮忙优化,特别是红绿柱的长度,如果代码中有无用途之处的,请可删去。谢谢!
N:=7;
N1:=21;
N2:=3;
M:=2.5;


DIFF:EMA(CLOSE,N) - EMA(CLOSE,N1),COLORRED,LINETHICK2;
DEA:EMA(DIFF,N2),COLORGREEN,LINETHICK2;
MACD:(DIFF-DEA)*3,COLORSTICK;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0)COLORYELLOW,LINETHICK1;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0,0)COLORWHITE,LINETHICK1;
前期最大值:=REF(HHV(MACD,20),1);
前期最小值:=REF(LLV(MACD,20),1);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
MACD底背:IF(B1>0,-1,0),COLORRED,POINTDOT;
KDJ底背:IF(B2>0,-1,0),COLORFF00FF,POINTDOT;
RSI底背:IF(B3>0,-1,0),COLORYELLOW,POINTDOT;
MACD顶背:IF(D1>0,1,0),COLOR00FF00,POINTDOT;
KDJ顶背:IF(D2>0,1,0),COLORFFCC66,POINTDOT;
RSI顶背:IF(D3>0,1,0),COLORWHITE,POINTDOT;
STICKLINE(B1>0,前期最小值,0,2,0),COLORRED,LINETHICK2;
STICKLINE(B2>0,前期最小值,0,2,0),COLORFF00FF,LINETHICK2;
STICKLINE(B3>0,前期最小值,0,2,0),COLORYELLOW,LINETHICK2;
STICKLINE(D1>0,0,前期最大值,2,0),COLOR00FF00,LINETHICK2;
STICKLINE(D2>0,0,前期最大值,2,0),COLORFFCC66,LINETHICK2;
STICKLINE(D3>0,0,前期最大值,2,0),COLORWHITE,LINETHICK2;
O轴金叉:=CROSS(DIFF,DEA) AND DIFF<=前期最大值 AND DIFF>=前期最小值;
DRAWICON(O轴金叉,DIFF*1.02,23);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
DRAWICON(低位金叉,DEA*1.05,5);
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
DRAWICON(二次金叉,DEA*1.16,11);
K1:=CROSS(MACD,0),COLORLIRED;
IF(RANGE(DIFF,-0.05,0.05) AND K1,前期最大值*3,0),COLORFF00FF;
DRAWTEXT(RANGE(DIFF,-0.05,0.05) AND K1,前期最大值*3.5,'0轴金叉');
AA1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,AA1+1)>CLOSE AND DIFF>REF(DIFF,AA1+1) AND CROSS(DIFF,DEA);
DRAWLINE(AA1=0,DEA,底背离,DEA,0),COLOR5F9F9F,LINETHICK1;
DRAWTEXT(底背离,DEA*1.3,' 底背离'),COLOR5F9F9F;
AA2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,AA2+1)<CLOSE AND REF(DIFF,AA2+1)>DIFF AND CROSS(DEA,DIFF);
DRAWLINE(AA2=0,DEA,顶背离,DEA,0),COLORA68064,LINETHICK1;
DRAWTEXT(顶背离,DEA*1.3,' 顶背离'),COLORA68064;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
F:=100;
G:=80;
火焰抄底:IF(REF(COUNT(K<REF(K,1),5)>=5,1) AND COUNT(K<30,5)>=2 AND COUNT(J<0,3)>0 AND CROSS(J,0),前期最小值*1.3,0),COLORRED;
抄底:IF(C<REF(C,1) AND REF(C,1)<REF(C,2) AND REF(C,2)<REF(C,3) AND J>REF(J,1),前期最小值*1.3,0),COLOR888888;
见顶:IF(K>=G AND J<REF(J,1) AND CROSS(F,J),前期最大值*1.3,0),COLORGREEN;
DRAWTEXT(K>=G AND J<REF(J,1) AND CROSS(F,J),前期最大值*1.6,'顶'),COLORGREEN;
买进:=IF(CROSS(J,0) AND C>REF(C,1),8,0),COLORYELLOW ;
低位区翻红买进:=IF(J<5 AND J>REF(J,1) AND C>REF(C,1),16,0),COLORRED;
X:=LLV(J,2)=LLV(J,8);
不涨二次全仓:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J<10 AND C>REF(C,1),24,0),COLORBLUE;
DRAWICON(买进 AND 低位区翻红买进 AND 不涨二次全仓,-ABS(M*MACD)*0.9,17);
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
极品底:IF(CROSS(BIAS,乖离)  AND 乖离<-9,M*MACD,0),LINETHICK0,COLORRED;
STICKLINE(CROSS(BIAS,乖离)  AND 乖离<-9,-ABS(M*MACD),0,1,0),COLORRED;
DRAWTEXT(CROSS(BIAS,乖离)  AND 乖离<-9,-ABS(M*MACD),'极品底'),COLORRED;
VAR11:=9999999999999;
VAR21:=LLV(LOW,60);
VAR31:=HHV(HIGH,60);
VAR41:=EMA((CLOSE-VAR21)/(VAR31-VAR21)*100,5);
VAR5:=EMA(0.667*REF(VAR41,1)+0.333*VAR41,2);
VAR6:=OPEN=1.06 AND CLOSE/OPEN>1.12 AND HIGH/ CROSS(VAR41,VAR5) AND VAR41<13;
顶:STICKLINE(CROSS(VAR5,VAR41) AND VAR41>85,0,前期最大值*1.3,1,0),COLOR888888;
DRAWICON(CROSS(VAR5,VAR41) AND VAR41>85,前期最大值*1.6,15);
DRAWTEXT(REF(MACD,1)>0 AND MACD<0,MACD-0.02,'1');
DRAWTEXT(REF(MACD,2)>0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.02,'2');
DRAWTEXT(REF(MACD,3)>0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.02,'3');
DRAWTEXT(REF(MACD,4)>0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.02,'4');
DRAWTEXT(REF(MACD,5)>0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.02,'5');
DRAWTEXT(REF(MACD,6)>0 AND REF(MACD,5)<0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.02,'6');
DRAWTEXT(REF(MACD,7)>0 AND REF(MACD,6)<0 AND REF(MACD,5)<0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.02,'7');
DRAWTEXT(REF(MACD,8)>0 AND REF(MACD,7)<0 AND REF(MACD,6)<0 AND REF(MACD,5)<0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.02,'8');
DRAWTEXT(REF(MACD,9)>0 AND REF(MACD,8)<0 AND REF(MACD,7)<0 AND REF(MACD,6)<0 AND REF(MACD,5)<0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.02,'9');

地址


软件评论评论内容只代表网友观点,与本站立场无关!

   评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论

说明

* 使用方法:点击上面蓝色块,打开新页面按照提示进行

* 本网站提供的各种股票软件,例如大智慧软件,通达信软件,同花顺软件,东方财富通等等,和各种股票公式指标,例如大智慧公式,通达信公式,同花顺公式,文华公式,博易大师公式,股票价格计算公式等等公式指标等,都来源网上公开来源收集

本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!

* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。

* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程

* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2022 fxjgsw.Com. All Rights Reserved .
页面执行时间:8,515.62500 毫秒