分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]MACD结构,各周期适用(通达信公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2021-03-25 00:15:28
软件简介:

 {公式名称: MACD结构

公式描述: 各周期适用
参数数量: 3
参数1: SHORT, 最小: 0, 最大: 50, 缺省: 12
参数2: LONG, 最小: 0, 最大: 50, 缺省: 26
参数3: MID, 最小: 0, 最大: 50, 缺省: 9
公式类型: 技术指标公式-其他类型
画线方法: 副图
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
 
参数精灵:
请设置计算参数:
SHORT: PARAM#0 (0.00--50.00)
LONG: PARAM#1 (0.00--50.00)
MID: PARAM#2 (0.00--50.00)
用法注释:无
公式源码:}
DRAWGBK(CLOSE>0,RGB(1,1,1),RGB(1,1,1),0,1,0);
分析家公式网:DRAWNULL,COLORCCCCCC;
X_1:=1;
DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),COLORRED,LINETHICK2;
DEA:EMA(DIFF,MID),COLORGREEN;
MACD:(DIFF-DEA)*2*X_1,COLORSTICK;
STICKLINE(MACD<0 AND MACD>REF(MACD,2),0,MACD,0,0),COLORGREEN;
STICKLINE(MACD<0 AND MACD<=REF(MACD,2),0,MACD,0.1,0),COLORCYAN;
STICKLINE(MACD>=0 AND MACD>REF(MACD,2),0,MACD,0.1,0),COLORRED;
STICKLINE(MACD>=0 AND MACD<=REF(MACD,2),0,MACD,0,0),COLORYELLOW;
STICKLINE(DIFF<0 AND CROSS(DIFF,DEA),DEA,0,0,0),COLORRED;
STICKLINE(DIFF>0 AND CROSS(DEA,DIFF),DEA,0,0,0),COLORGREEN;
STICKLINE(DIFF<0 AND CROSS(DIFF,DEA),DEA,0,0,0),COLORRED;
STICKLINE(DIFF>0 AND CROSS(DEA,DIFF),DEA,0,0,0),COLORGREEN;
DRAWTEXT(DIFF<0 AND CROSS(DIFF,DEA),DEA/2,4);
DRAWTEXT(DIFF>0 AND CROSS(DEA,DIFF),DEA/2,4);
IF(DIFF<REF(DIFF,1),DIFF,DRAWNULL),COLORYELLOW,LINETHICK2;
X_2:=DIFF;
X_3:=BARSLAST(CROSS(DEA,X_2));
X_4:=LLV(CLOSE,X_3+1);
X_5:=LLV(X_2,X_3+1);
X_6:=REF(X_4,X_3+1);
X_7:=REF(X_5,X_3+1);
X_8:=REF(X_6,X_3+1);
X_9:=REF(X_7,X_3+1);
X_10:=MACD<0 AND (X_4<X_6 AND (X_2>X_7 AND (REF(MACD,1)<0 AND X_2<=REF(X_2,1))) OR (X_4<X_8 AND (X_2>X_9 AND (REF(MACD,1)<0 AND (X_2<=REF(X_7,1) AND X_8<X_6)))));
X_11:=REF(X_10,1) AND (X_2<X_7 AND X_2<X_9);
X_12:=REF(X_10,1) AND X_2>REF(X_2,1) AND REF(X_2,1)<0;
DRAWTEXT(FILTER(X_10,20),(X_2+MACD)/1.5,5),COLORYELLOW;
DRAWTEXT(FILTER(X_11,20),(X_2+MACD)/1.5,6),COLORGREEN;
DRAWTEXT(FILTER(X_12,20),(X_2+MACD)/1.5,7),COLORMAGENTA;
X_13:=BARSLAST(CROSS(X_2,DEA));
X_14:=HHV(CLOSE,X_13+1);
X_15:=REF(X_14,X_13+1);
X_16:=REF(X_15,X_13+1);
X_17:=HHV(X_2,X_13+1);
X_18:=REF(X_17,X_13+1);
X_19:=REF(X_18,X_13+1);
X_20:=(MACD>0 AND (X_14>X_15 AND (X_2<X_18 AND (REF(MACD,1)>0 AND X_2>=REF(X_2,1))) OR (X_14>X_16 AND (X_2<X_19 AND (REF(MACD,1)>0 AND (X_2>=REF(X_7,1) AND X_8>X_6))))))*X_1;
X_21:=(REF(X_20,1) AND (X_2>X_18 AND X_2>X_19))*X_1;
X_22:=REF(X_20,1) AND X_2<REF(X_2,1) AND REF(X_2,1)>0;
DRAWTEXT(FILTER(X_20,20),(X_2+MACD)/1.5,5),COLORYELLOW;
DRAWTEXT(FILTER(X_21,20),(X_2+MACD)/1.5,6),COLORGREEN;
DRAWTEXT(FILTER(X_22,20),(X_2+MACD)/1.5,7),COLORCYAN;
X_23:=5;
X_24:=MACD*X_1;
X_25:=X_23;
X_26:=REF(X_24,X_23)=HHV(X_24,2*X_23+1);
X_27:=BACKSET(X_26,X_23+1);
X_28:=FILTER(X_27,X_23) AND X_24=HHV(X_24,X_23+1);
X_29:=BARSLAST(X_28);
X_30:=IF(X_28,CURRBARSCOUNT,0);
X_31:=IF(X_29,REF(X_24,X_29),X_24);
X_32:=IF(X_29,REF(X_30,X_29),X_30);
X_33:=REF(X_31,X_29+1);
X_34:=CONST(X_32);
X_35:=REF(X_32,X_29+1);
X_36:=CONST(X_35);
X_37:=REF(X_33,X_29+1);
X_38:=IF(CURRBARSCOUNT>X_36,0,1);
X_39:=DRAWLINE(CURRBARSCOUNT=X_36,X_24,CURRBARSCOUNT=X_34,X_24,1);
S2:DRAWLINE(CURRBARSCOUNT=X_34,X_24,ISLASTBAR,REF(X_24,X_34-1),1),DOTLINE,COLORCYAN;
XG:CROSS(MACD,S2),NODRAW;
DRAWICON(XG,MACD,34);
X_40:=CROSS(MACD,X_39);
DRAWICON(X_40,0,1);
X_41:=REF(X_24,X_25)=LLV(X_24,2*X_25+1);
X_42:=BACKSET(X_41,X_25+1);
X_43:=FILTER(X_42,X_25) AND X_24=LLV(X_24,X_25+1);
X_44:=BARSLAST(X_43);
X_45:=IF(X_43,CURRBARSCOUNT,0);
X_46:=IF(X_44,REF(X_24,X_44),X_24);
X_47:=IF(X_44,REF(X_45,X_44),X_45);
X_48:=CONST(X_47);
X_49:=REF(X_46,X_44+1);
X_50:=REF(X_47,X_44+1);
X_51:=CONST(X_50);
X_52:=DRAWLINE(CURRBARSCOUNT=X_51,X_24,CURRBARSCOUNT=X_48,X_24,1);
B2:DRAWLINE(CURRBARSCOUNT=X_48,X_24,ISLASTBAR,REF(X_24,X_48-1),1),DOTLINE,COLORMAGENTA;
DRAWICON(CROSS(B2,MACD),MACD,35);
 
通达信公式

[url=http://www.70822.com/soft/sort013/sort05/down-154895.html]MACD结构,各周期适用(通达信公式 副图 源码 测试图)[/url]

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