斐波纳契MACD 源码分享,不加密
源码是:
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORFFFFFF;
DEA1:=EMA(DIFF1,9),coloryellow;
MACD1:=2*(DIFF1-DEA1);
MACD2:=EMA(MACD1,5);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,3,0),COLOR000055;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2.5,0),COLOR000077;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1.5,0),COLOR000099;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),COLOR0000FF;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,3,0),COLOR222222;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2.5,0),COLOR444444;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1.5,0),COLOR666666;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0,0),COLOR999999;
STICKLINE(MACD1<MACD2,0,MACD1,3,0),COLORA80000;
STICKLINE(MACD1<MACD2,0,MACD1,2.5,0),COLORB80000;
STICKLINE(MACD1<MACD2,0,MACD1,1.5,0),COLOREC1000;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORFF4600;
STICKLINE(MACD1<MACD2,0,MACD1,0,0),COLORFFAA00;
零下金叉:=CROSS(DIFF1,DEA1) AND DIFF1<-0.0;
STICKLINE(零下金叉,0,DIFF1,3,0),COLOR002222;
STICKLINE(零下金叉,0,DIFF1,2.5,0),COLOR006666;
STICKLINE(零下金叉,0,DIFF1,1.5,0),COLOR009999;
STICKLINE(零下金叉,0,DIFF1,1,0),COLOR00FFFF;
DRAWTEXT(零下金叉,-0.02,' 零下金叉'),COLOR00FF88;
零上金叉:=CROSS(DEA1,DIFF1) AND DIFF1>-0.0;
STICKLINE(零上金叉,MACD1,-0.01,3,0),COLOR440044;
STICKLINE(零上金叉,MACD1,-0.01,2.5,0),COLOR660066;
STICKLINE(零上金叉,MACD1,-0.01,1.5,0),COLOR990099;
STICKLINE(零上金叉,MACD1,-0.01,1,0),COLORFF00FF;
DRAWTEXT(零上金叉,DEA1*1.1,'零上金叉'),colorred;
A1:=BARSLAST(REF(CROSS(DIFF1,DEA1),1));
DIFF:DIFF1,COLOR009922;
DEA:DEA1,coloryellow;
ZT:=CROSS(DEA,DIFF);
LS0:=BARSLAST(ZT);
S1:=IF(1,LS0=1,ZT) AND IF(1,DIFF<DEA,0);
DRAWTEXT(S1 AND DIFF>0,DIFF*0.8,'1'),COLOR00FF00;
DRAWTEXT(S1 AND DIFF<0,DIFF*1.8,'1'),COLOR00FF00;
S3:=IF(3,LS0=3,ZT) AND IF(3,DIFF<DEA,0);
DRAWTEXT(S3 AND DIFF>0,DIFF*0.8,'3'),COLOR00FF00;
DRAWTEXT(S3 AND DIFF<0,DIFF*1.4,'3'),COLOR00FF00;
S5:=IF(5,LS0=5,ZT) AND IF(5,DIFF<DEA,0);
DRAWTEXT(S5 AND DIFF>0,DIFF*0.8,'5'),COLOR00FF00;
DRAWTEXT(S5 AND DIFF<0,DIFF*1.4,'5'),COLOR00FF00;
S8:=IF(8,LS0=8,ZT) AND IF(8,DIFF<DEA,0);
DRAWTEXT(S8 AND DIFF>0,DIFF*0.8,'8'),COLOR00FF00;
DRAWTEXT(S8 AND DIFF<0,DIFF*1.8,'8'),COLOR00FF00;
S13:=IF(13,LS0=13,ZT) AND IF(8,DIFF<DEA,0);
DRAWTEXT(S13 AND DIFF>0,DIFF*0.8,'13'),COLOR00FF00;
DRAWTEXT(S13 AND DIFF<0,DIFF*1.2,'13'),COLOR00FF00;
S21:=IF(21,LS0=21,ZT) AND IF(21,DIFF<DEA,0);
DRAWTEXT(S21 AND DIFF>0,DIFF*0.8,'21'),COLOR00FF00;
DRAWTEXT(S21 AND DIFF<0,DIFF*1.2,'21'),COLOR00FF00;
S34:=IF(34,LS0=34,ZT) AND IF(34,DIFF<DEA,0);
DRAWTEXT(S34 AND DIFF>0,DIFF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F<0,DIFF*0.8,'21'),COLORFFFFFF;
SJ34:=IF(34,LSJ=34,ZTJ) AND IF(34,DIFF>DEA,0);
DRAWTEXT(SJ34 AND DIFF>0,DIFF*1.2,'34'),COLORFFFFFF;
DRAWTEXT(SJ34 AND DIFF<0,DIFF*0.8,'34'),COLORFFFFFF;
SJ55:=IF(55,LSJ=55,ZTJ) AND IF(55,DIFF>DEA,0);
DRAWTEXT(SJ55 AND DIFF>0,DIFF*1.2,'55'),COLORFFFFFF;
DRAWTEXT(SJ55 AND DIFF<0,DIFF*0.8,'55'),COLORFFFFFF;
|
- 软件大小:7.00 KB
- 推荐星级:
- 更新时间:2022-06-21 00:13:10
- 软件类别: 国产软件 / 同花顺公式
- 软件语言:简体中文
- 授权方式: 免费版
- 联系方式:暂无联系方式
- 官方主页: Home Page
- 点击大图: 【一键转帖到论坛】
- 插件情况:
- 运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
- 相关Tags:指标公式 股票软件,公式源码
-
(0)0%(0)0%
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!