MACD金叉之后 配有上穿多条均线,是强势的表现。 可跟进 MACD死叉之后 配有下穿多条均线,是弱势的表现。 可退场 input : M(9),LONG(26),SHORT(12); DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG); DEA : EMA(DIFF,M); MACD : 2*(DIFF-DEA), COLORSTICK; MACD2:=MACD; STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,2,0 ),COLOR00AAFF; STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1.8,0 ),COLOR00BBFF; STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1.3,0 ),COLOR00CCFF; STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1.2,0 ),COLOR00DDFF; STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1,0 ),COLOR00EEFF; STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,0.5,0 ),COLOR00FFFF; STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,5,0 ),COLOR0000AA; STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,4 ,0 ),COLOR0011BB; STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,3,0 ),COLOr0022CC; STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,2,0 ),COLOR0033DD; STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,1,0 ),COLOR0044EE; STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,0.5 ,0 ),COLOR0055FF; STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,5,0 ),COLORAA00BB; STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,4 ,0 ),COLORBB11BB; STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,3,0 ),COLORCC22BB; STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,2,0 ),COLORDD33BB; STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,1 ,0 ),COLOREE44BB; STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,0.5,0 ),COLORFF55BB; STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,2,0 ),COLORFF7700; STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,1.5 ,0 ),COLORFF8811; STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,1.2,0 ),COLORFFAA22; STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,1.0 ,0 ),COLORFFBB33; STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,0.8 ,0 ),COLORFFDD44; STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,0.5 ,0 ),COLORFFFF55; 二线:C>Ref(C,1) and Cross(C,Ma(C,5)) and Cross(C,Ma (C,10)) OR Cross(C,Ma(C,20)) and Cross(C,Ma (C,10)),colorgreen; 三线:C>Ref(C,1) and Cross(C,Ma(C,5)) and Cross(C,Ma (C,10)) and Cross(C,Ma(C,20)),colorgreen; 四线:C>Ref(C,1) and Cross(C,Ma(C,5)) and Cross(C,Ma (C,10)) and Cross(C,Ma(C,20)) and Cross(C,Ma(C,30)),coloryellow; 五线:C>Ref(C,1) and Cross(C,Ma(C,5)) and Cross(C,Ma (C,10)) and Cross(C,Ma(C,20)) and Cross(C,Ma(C,30)) and Cross(C,Ma(C,40)),colorred; 六线:C>O and Cross(C,Ma(C,5)) and Cross(C,Ma(C,10)) and Cross(C,Ma(C,20)) and Cross(C,Ma(C,30))and Cross(C,Ma(C,40)) and Cross(C,Ma(C,60)) and slope(Ma(C,60),2)>0,colorffff00; A:=IF(Cross(C,Ma(C,5)),1,0); B:=IF(Cross(C,Ma(C,10)),1,0); C1:=IF(Cross(C,Ma(C,20)),1,0); D:=IF(Cross(C,Ma(C,30)),1,0); E:=IF(Cross(C,Ma(C,40)),1,0); F:=IF(Cross(C,Ma(C,50)),1,0); G:=IF(Cross(C,Ma(C,60)),1,0); H1:=IF(Cross(C,Ma(C,90)),1,0); I:=IF(Cross(C,Ma(C,100)),1,0); L1:=IF(Cross(C,Ma(C,120)),1,0); o1:=IF(Cross(C,Ma(C,150)),1,0); P:=IF(Cross(C,Ma(C,180)),1,0); Q:=IF(Cross(C,Ma(C,200)),1,0); R:=IF(Cross(C,Ma(C,250)),1,0); S:=IF(Cross(C,Ma(C,70)),1,0); T:=IF(Cross(C,Ma(C,80)),1,0); S:a+b+c1+d+e+f+G+H1+I+L1+o1+P+Q+R+S+T,linethick0; STICKLINE(S<>0,DIFF,DEA,3,0),colorFF; A1:=S; B1:=('上穿过:' + NUMTOSTR(A1[SYSPARAM(1)],2));{定义出B1价咯=光标位置的A2值保留小数点后两位} DRAWTEXT((BARPOS = SYSPARAM(1)) ,macd*1.01,B1),colorFFFF,SHIFT2;{在A1处写出B1价咯} ; EXPLAINEX(BARPOS = SYSPARAM(1) ,'上穿过:',A1,2,0),COLOR5290FF; drawicon(s,MACD,10); A2:=IF(Cross(Ma(C,5),C),1,0); B2:=IF(Cross(Ma(C,10),C),1,0); C2:=IF(Cross(Ma(C,20),C),1,0); D2:=IF(Cross(Ma(C,30),C),1,0); E2:=IF(Cross(Ma(C,40),C),1,0); F2:=IF(Cross(Ma(C,50),C),1,0); G2:=IF(Cross(Ma(C,60),C),1,0); H2:=IF(Cross(Ma(C,90),C),1,0); I2:=IF(Cross(Ma(C,100),C),1,0); L2:=IF(Cross(Ma(C,120),C),1,0); T2:=IF(Cross(C,Ma(C,150)),1,0); O2:=IF(Cross(Ma(C,180),C),1,0); P2:=IF(Cross(Ma(C,200),C),1,0); Q2:=IF(Cross(Ma(C,250),C),1,0); R2:=IF(Cross(Ma(C,70),C),1,0); S2:=IF(Cross(Ma(C,80),C),1,0); S1:a2+b2+c2+d2+e2+f2+G2+H2+I2+L2+P2+Q2+R2+S2+t2,linethick0; STICKLINE(S1<>0,DIFF,DEA,3,0),colorFF00; A1:=S1; B1:=('下穿过:' + NUMTOSTR(A1[SYSPARAM(1)],2));{定义出B1价咯=光标位置的A2值保留小数点后两位} EXPLAINEX(BARPOS = SYSPARAM(1) ,'下穿过:',A1,2,0),COLOR5290FF; DRAWTEXT((BARPOS = SYSPARAM(1)) ,0-macd*1.5,B1),colorFFFF00,SHIFT2;{在A1处写出B1价咯} drawicon(s1,0,11); |
- 软件大小:3.00 KB
- 推荐星级:
- 更新时间:2009-02-11 19:14:48
- 软件类别: 国产软件 / 飞狐公式
- 软件语言:简体中文
- 授权方式: 解密版
- 联系方式:暂无联系方式
- 官方主页: Home Page
- 点击大图: 【一键转帖到论坛】
- 插件情况:
- 运行环境:Win9X/2000/XP/2003/
- 相关Tags:指标公式 股票软件,公式源码
-
(0)0%(0)0%
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!