【资料名称】:恒生财神主图/副图套装指标 通达信 源码分享介绍【资料描述】:
恒生财神主图/副图套装指标 通达信 源码分享
{公式名称: 恒生财神公众
公式描述:
参数数量: 13
参数1: RQ1, 最小: 1990, 最大: 3000, 缺省: 2010
参数2: RQ2, 最小: 1, 最大: 12, 缺省: 1
参数3: RQ3, 最小: 1, 最大: 31, 缺省: 1
参数4: RQA, 最小: 1990, 最大: 3000, 缺省: 2010
参数5: RQB, 最小: 1, 最大: 12, 缺省: 1
参数6: RQC, 最小: 1, 最大: 31, 缺省: 1
参数7: XG, 最小: 0, 最大: 3, 缺省: 0
参数8: HF, 最小: 0, 最大: 1, 缺省: 0
参数9: GF, 最小: 0, 最大: 5, 缺省: 0
参数10: P, 最小: 0, 最大: 225, 缺省: 3
参数11: P1, 最小: 0, 最大: 225, 缺省: 3
参数12: N, 最小: 22, 最大: 125, 缺省: 45
参数13: 承担风险, 最小: 3, 最大: 20, 缺省: 10
公式类型: 技术指标公式-鬼系
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:
请设置计算参数:
RQ1: Param#0 (1990.00--3000.00)
RQ2: Param#1 (1.00--12.00)
RQ3: Param#2 (1.00--31.00)
RQA: Param#3 (1990.00--3000.00)
RQB: Param#4 (1.00--12.00)
RQC: Param#5 (1.00--31.00)
XG: Param#6 (0.00--3.00)
HF: Param#7 (0.00--1.00)
GF: Param#8 (0.00--5.00)
P: Param#9 (0.00--225.00)
P1: Param#10 (0.00--225.00)
N: Param#11 (22.00--125.00)
承担风险: Param#12 (3.00--20.00)
用法注释:无
公式源码:}
X_1:=(RQ1-1900)*10000+RQ2*100+RQ3;
X_2:=REF(HIGH,BARSLAST(DATE<=X_1));
X_3:=IF(DATE>=X_1 AND XG>=1,X_2,DRAWNULL);
X_4:=(RQA-1900)*10000+RQB*100+RQC;
X_5:=REF(LOW,BARSLAST(DATE<=X_4));
X_6:=IF(DATE>=X_4 AND XG>=1,X_5,DRAWNULL);
X_7:=CLOSE-X_6;
X_8:=X_7/X_6*100;
X_9:=X_3-X_6;
X_10:=X_9/X_3*100;
X_11:=(OPEN+HIGH+LOW+CLOSE)/4;
X_12:=EMA(X_11,P);
X_13:=EMA(X_11,17);
X_14:=IF(DATE>=X_4 AND GF>=1,X_5*1.03,DRAWNULL);
X_15:=IF(DATE>=X_4 AND GF>=1,X_5*1.05,DRAWNULL);
X_16:=IF(DATE>=X_4 AND GF>=2,X_5*1.08,DRAWNULL);
X_17:=IF(DATE>=X_4 AND GF>=2,X_5*1.13,DRAWNULL);
X_18:=IF(DATE>=X_4 AND GF>=3,X_5*1.18,DRAWNULL);
X_19:=IF(DATE>=X_4 AND GF>=3,X_5*1.25,DRAWNULL);
X_20:=IF(DATE>=X_4 AND GF>=4,X_5*1.34,DRAWNULL);
X_21:=IF(DATE>=X_4 AND GF>=4,X_5*1.37,DRAWNULL);
DRAWTEXT(ISLASTBAR AND GF>=1,X_5*1.03,329),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND GF>=1,X_5*1.05,330),COLOR208FFF;
DRAWTEXT(DATE<=X_4 AND GF>=2,X_16,331),COLOR208FFF;
DRAWTEXT(DATE<=X_4 AND GF>=2,X_17,332),COLOR208FFF;
DRAWTEXT(DATE<=X_4 AND GF>=3,X_18,333),COLOR208FFF;
DRAWTEXT(DATE<=X_4 AND GF>=3,X_19,334),COLOR208FFF;
DRAWTEXT(DATE<=X_4 AND GF>=3,X_20,335),COLOR208FFF;
DRAWTEXT(DATE<=X_4 AND GF>=3,X_21,336),COLOR208FFF;
STICKLINE(DATE<=X_1,X_6,X_3,0,0),COLORGREEN;
STICKLINE(DATE<=X_4,X_3,X_6,0,0),COLORMAGENTA;
X_22:=(X_6+(X_3-X_5)*0.191)/X_3;
X_23:=(X_6+(X_3-X_5)*0.382)/X_3;
X_24:=(X_6+(X_3-X_5)*0.5)/X_3;
X_25:=(X_6+(X_3-X_5)*0.618)/X_3;
X_26:=(X_6+(X_3-X_5)*0.809)/X_3;
X_27:=(X_6+(X_3-X_5)*0.333)/X_3;
X_28:=(X_6+(X_3-X_5)*0.667)/X_3;
X_29:=IF(HF,DATE<=X_1,DATE<=X_4);
X_30:=IF(DATE>=X_4 AND XG>=2,X_2*X_22,DRAWNULL);
X_31:=IF(DATE>=X_4 AND XG>=2,X_2*X_23,DRAWNULL);
X_32:=IF(DATE>=X_4 AND XG>=2,X_2*X_24,DRAWNULL);
X_33:=IF(DATE>=X_4 AND XG>=2,X_2*X_25,DRAWNULL);
X_34:=IF(DATE>=X_4 AND XG>=2,X_2*X_26,DRAWNULL);
X_35:=IF(DATE>=X_4 AND XG>=2,X_2*X_27,DRAWNULL);
X_36:=IF(DATE>=X_4 AND XG>=2,X_2*X_28,DRAWNULL);
DRAWNUMBER(X_29,X_3*X_22*1.008,X_3*X_22),COLORYELLOW;
DRAWNUMBER(X_29,X_3*X_23*1.008,X_3*X_23),COLORYELLOW;
DRAWNUMBER(X_29,X_3*X_24*1.008,X_3*X_24),COLORYELLOW;
DRAWNUMBER(X_29,X_3*X_25*1.008,X_3*X_25),COLORYELLOW;
DRAWNUMBER(X_29,X_3*X_26*1.008,X_3*X_26),COLORYELLOW;
DRAWNUMBER(X_29,X_3*X_27*0.999,X_3*X_27),COLORGREEN;
DRAWNUMBER(X_29,X_3*X_28*1.01,X_3*X_28),COLORGREEN;
X_37:=EMA(X_11,P1);
X_38:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
X_39:=EMA(X_38,3);
X_40:=18;
X_41:=EMA(CLOSE,10)-EMA(CLOSE,22);
X_42:=CROSS(X_39,X_40);
DRAWICON(X_42,LOW,11);
DRAWNUMBER(ISLASTBAR AND X_37,X_37*1.005,X_37);
X_43:=X_13+2.58*STDP(CLOSE,20);
X_44:=X_13+1.96*STDP(CLOSE,20);
DRAWICON(CROSS(HIGH,X_43),HIGH,2);
DRAWTEXT(CROSS(HIGH,X_44),HIGH*1.007,337),COLOR80FFFF;
DRAWNUMBER(ISLASTBAR AND X_13,X_13*1.005,X_13);
X_45:=CROSS(X_12,X_13);
DRAWICON(CROSS(CLOSE,X_13) AND X_13>REF(X_13,1) AND X_41>REF(X_41,1),LOW,9);
DRAWTEXT(CROSS(CLOSE,X_13) AND X_13>REF(X_13,1) AND X_41>REF(X_41,1),LOW*0.97,338),COLOR80FFFF;
X_46:=REF(CLOSE,1);
X_47:=SMA(MAX(CLOSE-X_46,0),6,1)/SMA(ABS(CLOSE-X_46),6,1)*100;
X_48:=IF(X_47>76,HIGH*1.001,DRAWNULL);
X_49:=IF(X_47>80,HIGH*1.002,DRAWNULL);
低点:IF(CURRBARSCOUNT<=N,CONST(IF(ISLASTBAR=1,LLV(LOW,BARSLAST(CURRBARSCOUNT=45)),1)),DRAWNULL),COLORRED,LINETHICK3;
X_50:=CONST(LLVBARS(LOW,45))+1=CURRBARSCOUNT;
DRAWICON(X_50,低点,34);
X_51:=IF(CURRBARSCOUNT<=N,CONST(IF(ISLASTBAR=1,LLV(低点*(100-承担风险)/100,BARSLAST(CURRBARSCOUNT=45)),1)),DRAWNULL);
X_52:=((低点-低点*0.01)/CLOSE-1)*100;
X_53:=MA(REF(HHV(CLOSE,30),1),2);
X_54:=MA(REF(LLV(CLOSE,30),1),2);
中:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORBLUE,LINETHICK2;
IF(中>=REF(中,1),中,DRAWNULL),COLORYELLOW,LINETHICK2;
X_55:=BBI+3*STD(BBI,10);
下:BBI-3*STD(BBI,10),CIRCLEDOT,COLORRED;
X_56:=MA(CLOSE,30);
X_57:=下*1.05>中 AND 中*1.05>X_55 AND 中>=REF(中,1) AND REF(中,1)>=REF(中,2);
X_58:=LLV(REF(VOL,1),60);
X_59:=REF(VOL,1)+REF(VOL,2)+REF(VOL,3)+REF(VOL,4)+REF(VOL,5);
X_60:=X_59/5;
X_61:=VOL/X_60;
X_62:=CLOSE>LLV(LOW,120)*1.38;
X_63:=HIGH-LOW;
X_64:=ABS(OPEN-CLOSE);
X_65:=HIGH-IF(CLOSE>OPEN,CLOSE,OPEN);
X_66:=IF(CLOSE>OPEN,OPEN,CLOSE)-LOW;
X_67:=X_64/X_63*VOL;
X_68:=X_65/X_63*VOL;
X_69:=X_66/X_63*VOL;
X_70:=X_67>=X_68 AND X_67>=X_69 AND CLOSE>OPEN;
X_71:=X_61>2 OR VOL/REF(VOL,1)>2 AND X_70;
X_72:=EMA(CLOSE,3);
X_73:=EMA(CLOSE,5);
X_74:=EMA(X_73,5);
X_75:=CLOSE<X_55;
X_76:=X_72<REF(X_72,1);
X_77:=X_75 AND X_76;
X_78:=COUNT(X_77,7)=1;
X_79:=CLOSE<LLV(LOW,250)*2.1;
X_80:=FILTER(X_57 AND X_79 AND X_71,5) AND CLOSE<X_54*1.13;
DRAWICON(X_80,LOW*0.99,23);
DRAWICON(X_78 AND X_76 AND X_62 AND X_55>中*1.1,HIGH*1.01,19);
X_81:=中>=REF(中,1) AND LAST(中<=REF(中,1),8,1) AND CROSS(CLOSE,中) AND CLOSE<X_54*1.13;
X_82:=中>=REF(中,1) AND LAST(中<=REF(中,1),5,1) AND CROSS(CLOSE,中) AND CLOSE<HHV(HIGH,55)*0.72 AND CLOSE<X_54*1.13;
DRAWICON(X_81,LOW*0.98,26);
DRAWICON(X_82,LOW*0.96,25);
DRAWTEXT(X_82 OR X_81,LOW*0.99,339),COLORYELLOW;
gd55121
【下载地址隐藏】: 点:回复可见地址