通达信波段共振指标公式源码副图

X_1:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_2:=EMA(X_1,9);
X_3:=X_1>X_2;
X_4:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
X_5:=SMA(X_4,3,1);
X_6:=SMA(X_5,3,1);
X_7:=X_5>X_6;
X_8:=REF(CLOSE,1);
X_9:=SMA(MAX(CLOSE-X_8,0),9,1)/SMA(Abs(CLOSE-X_8),9,1)*100;
X_10:=SMA(MAX(CLOSE-X_8,0),26,1)/SMA(ABS(CLOSE-X_8),26,1)*100;
X_11:=X_9>X_10;
X_12:=SMA(X_4,3,1);
X_13:=SMA(X_12,3,1);
X_14:=X_12>X_13;
X_15:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4;
X_16:=CLOSE>X_15;
X_17:=CLOSE-REF(CLOSE,1);
X_18:=100*EMA(EMA(X_17,9),9)/EMA(EMA(ABS(X_17),9),3);
X_19:=100*EMA(EMA(X_17,26),12)/EMA(EMA(ABS(X_17),26),12);
X_20:=X_18>X_19;
X_21:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
X_22:=REF(EMA(X_21,3),1);
X_23:=vol/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_24:=IF(CLOSE>OPEN,X_23*(HIGH-LOW),IF(CLOSE<OPEN,X_23*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-X_23*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-X_23*(HIGH-LOW),0-VOL/2));
X_25:=X_24/20/1.15;
X_26:=X_25*0.55+REF(X_25,1)*0.33+REF(X_25,2)*0.22;
X_27:=EMA(X_26,8);
X_28:=EMA(X_26,3);
X_29:=X_28;
X_30:=VOL;
X_31:=MA(X_30,5);
X_32:=MA(X_30,10);
X_33:=X_31>=X_32;
X_34:=X_29>=0;
X_35:=X_34 AND X_33;
DRAWICON(X_35,1,1);
X_36:=MA(kdj.K#WEEK(9,3,3),5);
X_37:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
X_38:=EMA(X_37,9/2);
X_39:=X_36>=REF(X_36,1) AND X_37>=X_38;
DRAWICON(X_39,0.9,13);
X_40:=X_39 OR X_35;
X_41:=X_3 AND X_7 AND X_11 AND X_14 AND X_16 AND X_20;
X_42:=COST(50)*COST(50)/COST(80);
X_43:=COST(40)*COST(40)/COST(60);
X_44:=X_43-X_42;
X_45:=X_44>0 AND CLOSE>X_43;
X_46:=X_44<0 AND CLOSE>X_42;
X_47:=X_45 OR X_46 OR (X_45 AND X_46);
X_48:=X_47=0 OR (X_44>0 AND CLOSE>X_43 AND CLOSE<MA(CLOSE,10)) OR (X_44<0 AND CLOSE>X_42 AND CLOSE<MA(CLOSE,5));
X_49:=X_47 AND REF(X_48,1);
X_50:=X_48 AND REF(X_47,1);
STICKLINE(X_47,0.5,0.8,3,0),COLORRED;
STICKLINE(X_48,0.5,0.8,3,1),COLORGRAY;
STICKLINE(X_41,0.5,0.8,3,0),COLORMAGENTA;
DRAWICON(X_47 OR X_41 AND REF(X_47 OR X_41,1)=0 AND X_40,0.5,7);
X_51:=(HIGH+LOW+CLOSE*2)/4;
X_52:=EMA(X_51,17);
X_53:=STD(X_51,17);
X_54:=((X_51-X_52)/X_53*100+200)/4;
X_55:=(EMA(X_54,5)-25)*1.56;
X_56:=EMA(X_55,2)*1.22;
X_57:=EMA(X_56,2);
STICKLINE(X_56-X_57>0,0.2,0.4,3,0),COLORRED;
STICKLINE(X_56-X_57<0,0.2,0.4,3,0),COLORGREEN;
STICKLINE(X_56-X_57>0 AND REF(X_56-X_57<0,1),0.2,0.4,3.05,0),COLOR000099;
STICKLINE(X_56-X_57>0 AND REF(X_56-X_57<0,1),0.2,0.4,2.2,0),COLOR0000CC;
STICKLINE(X_56-X_57>0 AND REF(X_56-X_57<0,1),0.2,0.4,1.5,0),COLORRED;
STICKLINE(X_56-X_57>0 AND REF(X_56-X_57<0,1),0.2,0.4,0.5,0),COLORYELLOW;
STICKLINE(X_56-X_57>0 AND X_56-X_57<REF(X_56-X_57,1) AND X_57>110,0.2,0.4,3,0),COLORLIRED;
RSV2:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K1:=SMA(RSV2,3,1);
D1:=SMA(K1,3,1);
J1:=3*K1-2*D1;
牛1:(J1>REF(J1,1) AND REF(J1,1)<REF(J1,2) AND J1<15 AND MA(C,5)<MA(C,20))*0.4+0.2;
RSV8:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K2:=SMA(RSV8,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
牛2:(J2>REF(J2,1) AND REF(J2,1)<REF(J2,2) AND J2<15 AND MA(C,5)<MA(C,20))*0.6+0.2;
RSV5:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K3:=SMA(RSV5,3,1);
D3:=SMA(K3,3,1);
J3:=3*K3-2*D3;
牛3:(J3>REF(J3,1) AND REF(J3,1)<REF(J3,2) AND J3<15 AND MA(C,5)<MA(C,20))*0.8+0.2;
RN1:=2;
RN2:=3;
RN3:=5;
LC:=REF(CLOSE,1);
rsi1:=SMA(MAX(CLOSE-LC,0),RN1,1)/SMA(ABS(CLOSE-LC),RN1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),RN2,1)/SMA(ABS(CLOSE-LC),RN2,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),RN3,1)/SMA(ABS(CLOSE-LC),RN3,1)*100;
STICKLINE(RSI1>RSI2,0.8,0.5,0.3,0),COLORYELLOW;
STICKLINE(RSI1<RSI2,0.5,0.8,0.3,0),COLORGREEN;



未来函数检测结果如下:
该公式包含未来函数:COST
该公式包含未来函数:#WEEK
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图