通达信起涨主图指标源码分享

 


X_1:=IF(DATE<=1261231,1,1);
X_2:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
IF(X_1=1,X_2,DRAWNULL),COLORYELLOW,LINETHICK6;
IF(CLOSE>X_2 AND X_1=1,X_2,DRAWNULL),COLORRED,LINETHICK6;
IF(CLOSE< X_2 AND X_1=1,X_2,DRAWNULL),COLORGREEN,LINETHICK6;
X_3:=REF(CLOSE,1);
X_4:=IF((CLOSE-X_3)*100/X_3>=10-0.07*100/X_3,1,0);
STICKLINE(X_4,OPEN,CLOSE,0.2,0),COLORYELLOW;
X_5:=IF((X_3-CLOSE)*100/X_3>=10-0.03*100/X_3,1,0);
STICKLINE(X_5,OPEN,CLOSE,1,0),COLORBLUE;
DRAWTEXT_FIX(CLOSE< 0,0.01,0.9,0,22),COLORBLACK;
X_6:=STRCAT(HYBLOCK,4);
X_7:=STRCAT(X_6,DYBLOCK);
X_8:=STRCAT(X_7,4);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(X_8,GNBLOCK)),COLORWHITE;
X_9:=CLOSE>REF(CLOSE,1)*1.098 AND CLOSE=HIGH;
X_10:=MA(CLOSE,5);
X_11:=MA((LOW+HIGH+CLOSE)/3,5);
X_12:=MA(CLOSE,5);
X_13:=CLOSE*VOL;
X_14:=EMA((EMA(X_13,3)/EMA(VOL,3)+EMA(X_13,6)/EMA(VOL,6)+EMA(X_13,12)/EMA(VOL,12)+EMA(X_13,24)/EMA(VOL,24))/4,13);
X_15:=HHV(MA((LOW+HIGH+CLOSE+OPEN)/4,5),58);
X_16:=LLV(MA((LOW+HIGH+CLOSE+OPEN)/4,6),58);
X_17:=EMA((HIGH+LOW+CLOSE)/3*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*20/10+X_16,2);
X_18:=(3*X_13-2*SMA(X_17,5,1))*0.3;
X_19:=(HHV(INDEXH,13)-INDEXC)/(HHV(INDEXH,13)-LLV(INDEXL,13));
X_20:=EMA(3*X_19-2*SMA(X_19,18,1),5);
X_21:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8));
X_22:=3*SMA(X_21,3,1)-2*SMA(SMA(X_21,3,1),5,1);
X_23:=(INDEXC*2+INDEXH+INDEXL)/4;
X_24:=EMA(X_23,13)-EMA(X_23,34);
X_25:=EMA(X_24,5);
X_26:=1.86*EMA(CLOSE,12)-EMA(CLOSE,34);
X_27:=SMA(CLOSE,160,1);
X_28:=(55*X_27+34*REF(X_27,1)+22*REF(X_27,2)+15*REF(X_27,3)+8*REF(X_27,4)+5*REF(X_27,5)+3*REF(X_27,6)+2*REF(X_27,7)+REF(X_27,8)+REF(X_27,9))/155;
X_29:=REF(X_28,1);
X_30:=CLOSE=HHV(CLOSE,20);
X_31:=BARSLAST(X_30);
X_32:=IF(X_31>0,REF(CLOSE,X_31),REF(CLOSE,X_31));
X_33:=CROSS(CLOSE,REF(X_32,1));
X_34:=X_33 AND COUNT(X_33,5)=1 AND COUNT(REF(CLOSE,1)/REF(CLOSE,2)>1.095,10);
DRAWICON(X_34,LOW*0.95,9);
X_35:=(CLOSE+LOW+HIGH)/3;
X_36:=ATAN(EMA(X_35,13)-REF(EMA(X_35,13),1))*3.1416*10;
X_37:=EMA(CLOSE,8);
X_38:=MA(CLOSE,5);
X_39:=(CLOSE-X_38)/X_38*100;
X_40:=ATAN((X_38/REF(X_38,1)-1)*100)*180/3.1416;
X_41:=SMA(EMA((X_38-REF(X_38,1))/REF(X_38,1),3)*100,3,1);
X_42:=EMA(X_41-REF(X_41,1),3);
X_43:=MA(CLOSE,10);
X_44:=MA(CLOSE,20);
X_45:=ATAN((X_43/REF(X_43,1)-1)*100)*180/3.1416;
X_46:=MA(CLOSE,30);
X_47:=(CLOSE-X_46)/X_46*100;
X_48:=X_44-X_46>REF(X_44-X_46,1) AND X_44>REF(X_44,1) AND X_46>REF(X_46,1);
X_49:=X_46-X_44< REF(X_46-X_44,1) AND X_44< REF(X_44,1) AND X_46< REF(X_46,1);
X_50:=ATAN((X_46/REF(X_46,1)-1)*100)*180/3.1416;
X_51:=FILTER(X_50>30 AND X_45>45 AND CROSS(X_40,60),10);
X_52:=FILTER(COUNT(CROSS(X_40,30),5)>=1 AND X_38>REF(X_38,1) AND X_47>REF(X_47,1) AND X_43>REF(X_43,1) AND X_42>REF(X_42,1) AND X_41>REF(X_41,1),10) AND COUNT(REF(CLOSE,1)/REF(CLOSE,2)>1.095,20);
DRAWTEXT(X_52,LOW*0.95,'加仓'),COLORRED;
X_53:=MA(CLOSE,24)+2*STD(CLOSE,24);
X_54:=MA(CLOSE,5);
X_55:=MA(CLOSE,5)>REF(MA(CLOSE,5),1) AND X_53>REF(X_53,1) AND X_53/MA(CLOSE,5)< 1.07 AND OPEN< X_53 AND CLOSE>X_53 AND CLOSE/REF(CLOSE,1)>1.031;
X_56:=MA(CLOSE,25)+MA(CLOSE,25)*20/100;
X_57:=X_55 AND CLOSE>X_56;
X_58:=OPEN< MA(CLOSE,5) AND X_55 AND CLOSE< X_56;
X_59:=X_57 OR X_58;
X_60:=X_59 AND NOT(REF(X_59,1));
上轨:(1+11/100)*MA(CLOSE,10),DOTLINE,COLORWHITE;
X_61:=(1-9/100)*MA(CLOSE,10);
下轨:(上轨+X_61)/2.2,DOTLINE,COLORRED;
X_62:=OPEN;
X_63:=CLOSE;
X_64:=MA(REF(HHV(X_63,30),1),2);
X_65:=MA(REF(LLV(X_63,30),1),2);
X_66:=EMA(CLOSE,2);
X_67:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
X_68:=MA(CLOSE,60);
X_69:=88;
X_70:=6;
X_71:=EMA(EMA(EMA(CLOSE,2),2),2);
X_72:=MA(X_71,13)*0.99;
X_73:=MAX(MAX(HIGH-LOW,ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
X_74:=MA(X_73,13);
X_75:=REF(CLOSE,1)-REF(X_74,1);
支撑线:HHV(X_75,15),COLORMAGENTA,LINETHICK2;
X_76:=EMA(AMOUNT/VOL/100,3);
X_77:=MA(CLOSE,5);
X_78:=MA(CLOSE,10);
X_79:=MA(CLOSE,20);
X_80:=MA(CLOSE,60);
X_81:=MA(CLOSE,120);
X_82:=CLOSE>X_77 AND X_77>X_78 AND X_78>X_79 AND X_79>X_80 AND X_80>X_81;
X_83:=X_82 AND REF(NOT(X_82),1) AND CLOSE>REF(CLOSE,1) AND COUNT(REF(CLOSE,1)/REF(CLOSE,2)>1.095,15);
DRAWICON(X_83,HIGH*1.046,17);
X_84:=CLOSE>MAX(X_77,MAX(X_78,X_79)) AND X_68>X_81 AND CLOSE>X_80;
X_85:=X_84 AND REF(NOT(X_84),1) AND CLOSE>REF(CLOSE,1) AND COUNT(REF(CLOSE,1)/REF(CLOSE,2)>1.095,15);
DRAWICON(X_85,HIGH*1.028,18);
X_86:=CLOSE>MAX(X_77,MAX(X_78,X_79)) AND CLOSE>MAX(X_80,X_81) AND NOT(X_68>X_81);
X_87:=X_86 AND REF(NOT(X_86),1) AND CLOSE>REF(CLOSE,1) AND COUNT(REF(CLOSE,1)/REF(CLOSE,2)>1.095,15);
DRAWICON(X_87,HIGH*0.97,16);
X_88:=CLOSE>X_77 AND X_77>X_78 AND X_78>X_79;
X_89:=X_88 AND REF(NOT(X_88),1) AND CLOSE>REF(CLOSE,1) AND COUNT(REF(CLOSE,1)/REF(CLOSE,2)>1.095,15);
DRAWICON(X_89,HIGH*0.9,23);
X_90:=CLOSE>MAX(X_10,MAX(X_78,X_79));
X_91:=X_90 AND REF(NOT(X_90),1) AND CLOSE>REF(CLOSE,1) AND COUNT(REF(CLOSE,1)/REF(CLOSE,2)>1.095,15);
DRAWICON(X_91,HIGH*0.93,22);
X_92:=(2*CLOSE+HIGH+LOW)/4;
X_93:=MA(X_92,5);
X_94:=REF(CLOSE,1)< REF(X_11,1) AND CLOSE>X_11 AND CLOSE>REF(CLOSE,1) AND COUNT(REF(CLOSE,1)/REF(CLOSE,2)>1.095,20) AND NOT(REF(CLOSE,2)/REF(CLOSE,3)>1.09);
DRAWTEXT(X_94,LOW*0.94,'起涨'),COLORYELLOW;






来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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