通达信缠论中枢 王任远看盘主图指标 源码

[复制链接]
查看418 | 回复0 | 2021-8-28 01:38:54 | 显示全部楼层 |阅读模式

以下是通达信缠论中枢 王任远看盘主图指标 源码(无源码的请下载附件导入)

X_1:=4;
X_2:=HIGH=HHV(HIGH,X_1*5) AND HHV(HIGH,X_1*5)>REF(HHV(HIGH,X_1*5),1);
X_3:=LOW=LLV(LOW,X_1*5) AND LLV(LOW,X_1*5)<REF(LLV(LOW,X_1*5),1);
CC1:DRAWLINE(X_2,HIGH,X_3,LOW,0);
CC2:DRAWLINE(X_3,LOW,X_2,HIGH,0);
X_4:=1;
X_5:=BACKSET(LLV(LOW,5)<REF(LLV(LOW,4),1),4);
X_6:=BACKSET(X_5=0 AND REF(X_5,1)=1,2);
X_7:=IF(X_6=1 AND REF(X_6,1)=0,(-1),0);
X_8:=BACKSET(HHV(HIGH,5)>REF(HHV(HIGH,4),1),4);
X_9:=BACKSET(X_8=0 AND REF(X_8,1)=1,2);
X_10:=IF(X_9=1 AND REF(X_9,1)=0,1,0);
X_11:=IF(LOW>REF(HIGH,1),1,IF(HIGH<REF(LOW,1),(-1),0));
X_12:=BARSLAST(X_10=1);
X_13:=BARSLAST(X_7=(-1));
X_14:=LOWRANGE(LOW);
X_15:=TOPRANGE(HIGH);
X_16:=IF(X_7=(-1) AND REF(X_12,1)>REF(X_13,1) AND LLV(LOW,X_12+1)<REF(LLV(LOW,X_12+1),1),(-1),0);
X_17:=IF(X_7=(-1) AND REF(X_12,1)<=REF(X_13,1) AND (X_12>=4 OR LLV(X_11,X_12)=(-1) OR LLV(LOW,X_13+2)<REF(LLV(LOW,X_13+1),1)),(-1),0);
X_18:=IF(X_16=(-1) OR X_17=(-1) AND LOW<REF(HIGH,X_12+1),(-1),0);
X_19:=IF(X_13<4 AND HHV(X_11,X_13)!=1 OR REF(X_18,X_13)=0,1,0);
X_20:=IF(X_10=1 AND REF(X_13,1)<=REF(X_12,1) AND X_19=1 AND X_15>REF(X_14,X_13+1) AND X_15>REF(X_14,X_13) AND X_15>REF(X_15,X_12),1,0);
X_21:=IF(X_10=1 AND REF(X_13,1)>REF(X_12,1) AND HHV(HIGH,X_13+1)>REF(HHV(HIGH,X_13+1),1),1,0);
X_22:=IF(X_10=1 AND REF(X_13,1)<=REF(X_12,1) AND REF(X_18,X_13)=(-1) AND (X_13>=4 OR HHV(X_11,X_13)=1),1,0);
X_23:=IF(X_21=1 OR X_22=1 OR X_20=1 AND HIGH>REF(LOW,X_13+1),1,0);
X_24:=IF(X_12<4 AND HHV(X_11,X_12)!=1 OR REF(X_23,X_12)=0,1,0);
X_25:=IF(X_7=(-1) AND REF(X_12,1)<=REF(X_13,1) AND X_24=1 AND X_14>REF(X_15,X_12+1) AND X_14>REF(X_15,X_12) AND X_14>REF(X_14,X_13),(-1),0);
X_26:=IF(X_7=(-1) AND REF(X_12,1)>REF(X_13,1) AND LLV(LOW,X_12+1)<REF(LLV(LOW,X_12+1),1),(-1),0);
X_27:=IF(X_7=(-1) AND REF(X_12,1)<=REF(X_13,1) AND (X_12>=4 OR LLV(X_11,X_12)=(-1) OR X_25=(-1)),(-1),0);
X_28:=IF(X_26=(-1) OR X_27=(-1) AND LOW<REF(HIGH,X_12+1),(-1),0);
X_29:=BARSLAST(X_23=1);
X_30:=BARSLAST(X_28=(-1));
X_31:=IF(X_30<4 AND HHV(X_11,X_30)!=1 OR REF(X_28,X_30)=0,1,0);
X_32:=IF(X_10=1 AND REF(X_30,1)<=REF(X_29,1) AND X_31=1 AND X_15>REF(X_14,X_30+1) AND X_15>REF(X_14,X_30) AND X_15>REF(X_15,X_29),1,0);
X_33:=IF(X_10=1 AND REF(X_30,1)>REF(X_29,1) AND HHV(HIGH,X_30+1)>REF(HHV(HIGH,X_30+1),1),1,0);
X_34:=IF(X_10=1 AND REF(X_30,1)<=REF(X_29,1) AND REF(X_28,X_30)=(-1) AND (X_30>=4 OR HHV(X_11,X_30)=1),1,0);
X_35:=IF(X_33=1 OR X_34=1 OR X_32=1 AND HIGH>REF(LOW,X_30+1),1,0);
X_36:=IF(X_29<4 AND HHV(X_11,X_29)!=1 OR REF(X_33,X_29)=0,1,0);
X_37:=IF(X_7=(-1) AND REF(X_29,1)<=REF(X_30,1) AND X_36=1 AND X_14>REF(X_15,X_29+1) AND X_14>REF(X_15,X_29) AND X_14>REF(X_14,X_30),(-1),0);
X_38:=IF(X_7=(-1) AND REF(X_29,1)>REF(X_30,1) AND LLV(LOW,X_29+1)<REF(LLV(LOW,X_29+1),1),(-1),0);
X_39:=IF(X_7=(-1) AND REF(X_29,1)<=REF(X_30,1) AND (X_29>=4 OR LLV(X_11,X_29)=(-1) OR X_37=(-1)),(-1),0);
X_40:=IF(X_38=(-1) OR X_39=(-1) AND LOW<REF(HIGH,X_29+1),(-1),0);
X_41:=BARSLAST(X_35=1);
X_42:=BARSLAST(X_40=(-1));
X_43:=IF(X_42<4 AND HHV(X_11,X_42)!=1 OR REF(X_40,X_42)=0,1,0);
X_44:=IF(X_10=1 AND REF(X_42,1)<=REF(X_41,1) AND X_43=1 AND X_15>REF(X_14,X_42+1) AND X_15>REF(X_14,X_42) AND X_15>REF(X_15,X_41),1,0);
X_45:=IF(X_10=1 AND REF(X_42,1)>REF(X_41,1) AND HHV(HIGH,X_42+1)>REF(HHV(HIGH,X_42+1),1),1,0);
X_46:=IF(X_10=1 AND REF(X_42,1)<=REF(X_41,1) AND REF(X_40,X_42)=(-1) AND (X_42>=4 OR HHV(X_11,X_42)=1),1,0);
X_47:=IF(X_45=1 OR X_46=1 OR X_44=1 AND HIGH>REF(LOW,X_42+1),1,0);
X_48:=IF(X_41<4 AND HHV(X_11,X_41)!=1 OR REF(X_45,X_41)=0,1,0);
X_49:=IF(X_7=(-1) AND REF(X_41,1)<=REF(X_42,1) AND X_48=1 AND X_14>REF(X_15,X_41+1) AND X_14>REF(X_15,X_41) AND X_14>REF(X_14,X_42),(-1),0);
X_50:=IF(X_7=(-1) AND REF(X_41,1)>REF(X_42,1) AND LLV(LOW,X_41+1)<REF(LLV(LOW,X_41+1),1),(-1),0);
X_51:=IF(X_7=(-1) AND REF(X_41,1)<=REF(X_42,1) AND (X_41>=4 OR LLV(X_11,X_41)=(-1) OR X_49=(-1)),(-1),0);
X_52:=IF(X_50=(-1) OR X_51=(-1) AND LOW<REF(HIGH,X_41+1),(-1),0);
X_53:=IF(X_47=1 AND X_52=(-1) AND HIGH>REF(HIGH,REF(X_41,1)+2),1,IF(X_47=1 AND X_52=(-1) AND LOW<REF(LOW,REF(X_42,1)+2),(-1),0));
X_54:=IF(X_53=0,X_47+X_52,X_53);
局部极点:IF(X_54=(-1),LOW,IF(X_54=1,HIGH,DRAWNULL)),CIRCLEDOT,COLORLIMAGENTA;
C1:DRAWLINE(X_54=(-1),局部极点,X_54=1,局部极点,0),COLORLIGRAY;
C2:DRAWLINE(X_54=1,局部极点,X_54=(-1),局部极点,0),COLORLIGRAY;
X_55:=IF(X_4=1,C2=C1 AND X_8 AND X_54=1,DRAWNULL);
X_56:=IF(X_4=1,C2=C1 AND X_5 AND X_54=(-1),DRAWNULL);
X_57:=BARSLAST(X_55);
X_58:=CURRBARSCOUNT=CONST(X_57)+1;
X_59:=BARSLAST(X_58);
X_60:=CONST(REF(HIGH,X_59));
X_61:=REF(X_57,X_57+1)+X_57+1;
X_62:=CURRBARSCOUNT=CONST(X_61)+1;
X_63:=BARSLAST(X_62);
X_64:=CONST(REF(HIGH,X_63));
X_65:=REF(X_61,X_57+1)+X_57+1;
X_66:=CURRBARSCOUNT=CONST(X_65)+1;
X_67:=BARSLAST(X_66);
X_68:=CONST(REF(HIGH,X_67));
X_69:=BARSLAST(X_56);
X_70:=CURRBARSCOUNT=CONST(X_69)+1;
X_71:=BARSLAST(X_70);
X_72:=CONST(REF(LOW,X_71));
X_73:=REF(X_69,X_69+1)+X_69+1;
X_74:=CURRBARSCOUNT=CONST(X_73)+1;
X_75:=BARSLAST(X_74);
X_76:=CONST(REF(LOW,X_75));
X_77:=REF(X_73,X_69+1)+X_69+1;
X_78:=CURRBARSCOUNT=CONST(X_77)+1;
X_79:=BARSLAST(X_78);
X_80:=CONST(REF(LOW,X_79));
X_81:=X_72<X_76 AND X_64>X_60 AND X_73>X_57 AND X_57>X_69 AND X_61>X_73 AND CONST(CLOSE)>X_76;
X_82:=IF(X_81 AND CONST(CLOSE)<X_60,X_74,DRAWNULL);
STICKLINE(X_82,CONST(CLOSE),X_76,0,0),COLORLIMAGENTA;
X_83:=IF(X_81 AND CONST(CLOSE)<X_60,ISLASTBAR,DRAWNULL);
STICKLINE(X_83,CONST(CLOSE),X_76,0,0),COLORLIMAGENTA;
DRAWLINE(X_82=1,CONST(CLOSE),X_83=1,CONST(CLOSE),0),DOTLINE,COLORLIMAGENTA;
DRAWLINE(X_82=1,X_76,X_83=1,X_76,0),COLORLIMAGENTA;
X_84:=IF(X_81 AND CONST(CLOSE)>=X_60,X_74,DRAWNULL);
STICKLINE(X_84,X_60,X_72,0,0),COLORLIMAGENTA;
X_85:=IF(X_81 AND CONST(CLOSE)>=X_60,ISLASTBAR,DRAWNULL);
STICKLINE(X_85,X_60,X_72,0,0),COLORLIMAGENTA;
DRAWLINE(X_84=1,X_60,X_85=1,X_60,0),COLORLIMAGENTA;
DRAWLINE(X_84=1,X_72,X_85=1,X_72,0),COLORLIMAGENTA;
X_86:=X_72>X_76 AND X_60>X_64 AND X_69>X_57 AND X_61>X_69 AND X_73>X_61 AND CONST(CLOSE)<X_64;
X_87:=IF(X_86 AND CONST(CLOSE)>X_72,X_62,DRAWNULL);
STICKLINE(X_87,CONST(CLOSE),X_64,0,0),COLORGREEN;
X_88:=IF(X_86 AND CONST(CLOSE)>X_72,ISLASTBAR,DRAWNULL);
STICKLINE(X_88,CONST(CLOSE),X_64,0,0),COLORGREEN;
DRAWLINE(X_87=1,X_64,X_88=1,X_64,0),COLORGREEN;
DRAWLINE(X_87=1,CONST(CLOSE),X_88=1,CONST(CLOSE),0),DOTLINE,COLORGREEN;
X_89:=IF(X_86 AND CONST(CLOSE)<=X_72,X_62,DRAWNULL);
STICKLINE(X_89,X_64,X_72,0,0),COLORGREEN;
X_90:=IF(X_86 AND CONST(CLOSE)<=X_72,ISLASTBAR,DRAWNULL);
STICKLINE(X_90,X_64,X_72,0,0),COLORGREEN;
DRAWLINE(X_89=1,X_64,X_90=1,X_64,0),COLORGREEN;
DRAWLINE(X_89=1,X_72,X_90=1,X_72,0),COLORGREEN;
X_91:=X_72>X_76 AND X_64>X_60 AND X_73>X_57 AND X_57>X_69 AND X_61>X_73 AND CONST(CLOSE)>X_72;
X_92:=IF(X_91 AND CONST(CLOSE)<X_60,X_74,DRAWNULL);
STICKLINE(X_92,CONST(CLOSE),X_72,0,0),COLORYELLOW;
X_93:=IF(X_91 AND CONST(CLOSE)<X_60,ISLASTBAR,DRAWNULL);
STICKLINE(X_93,CONST(CLOSE),X_72,0,0),COLORYELLOW;
DRAWLINE(X_92=1,CONST(CLOSE),X_93=1,CONST(CLOSE),0),DOTLINE,COLORYELLOW;
DRAWLINE(X_92=1,X_72,X_93=1,X_72,0),COLORYELLOW;
X_94:=IF(X_91 AND CONST(CLOSE)>=X_60,X_74,DRAWNULL);
STICKLINE(X_94,X_60,X_72,0,0),COLORYELLOW;
X_95:=IF(X_91 AND CONST(CLOSE)>=X_60,ISLASTBAR,DRAWNULL);
STICKLINE(X_95,X_60,X_72,0,0),COLORYELLOW;
DRAWLINE(X_94=1,X_60,X_95=1,X_60,0),COLORYELLOW;
DRAWLINE(X_94=1,X_72,X_95=1,X_72,0),COLORYELLOW;
X_96:=X_72>X_76 AND X_60<X_64 AND X_69>X_57 AND X_61>X_69 AND X_73>X_61 AND CONST(CLOSE)<X_60;
X_97:=IF(X_96 AND CONST(CLOSE)>X_72,X_62,DRAWNULL);
STICKLINE(X_97,CONST(CLOSE),X_60,0,0),COLORLICYAN;
X_98:=IF(X_96 AND CONST(CLOSE)>X_72,ISLASTBAR,DRAWNULL);
STICKLINE(X_98,CONST(CLOSE),X_60,0,0),COLORLICYAN;
DRAWLINE(X_97=1,X_60,X_98=1,X_60,0),COLORLICYAN;
DRAWLINE(X_97=1,CONST(CLOSE),X_98=1,CONST(CLOSE),0),DOTLINE,COLORLICYAN;
X_99:=IF(X_96 AND CONST(CLOSE)<=X_72,X_62,DRAWNULL);
STICKLINE(X_99,X_60,X_72,0,0),COLORLICYAN;
X_100:=IF(X_96 AND CONST(CLOSE)<=X_72,ISLASTBAR,DRAWNULL);
STICKLINE(X_100,X_60,X_72,0,0),COLORLICYAN;
DRAWLINE(X_99=1,X_60,X_100=1,X_60,0),COLORLICYAN;
DRAWLINE(X_99=1,X_72,X_100=1,X_72,0),COLORLICYAN;
X_101:=LLV(LOW,13);
X_102:=HHV(HIGH,13);
X_103:=SMA((CLOSE-X_101)/(X_102-X_101)*100,5,1);
X_104:=SMA((X_102-CLOSE)/(X_102-X_101)*100,5,1);
X_105:=X_103;
X_106:=X_104;
X_107:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100;
X_108:=EMA(X_107,3);
X_109:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_110:=EMA(X_109,9);
X_111:=CROSS(X_109,0) OR CROSS(X_110,0);

X_112:=CROSS(X_108,X_106) AND X_108>=REF(X_108,1) AND X_106<=REF(X_106,3) AND X_108>=49.5 AND MA(CLOSE,3)>=REF(MA(CLOSE,3),1) AND MA(CLOSE,7)>=REF(MA(CLOSE,7),1) AND MA(CLOSE,60)>REF(MA(CLOSE,60),3) AND X_111;
STICKLINE(X_112,CLOSE,OPEN,4,0),COLORBLUE;
STICKLINE(X_112>0,CLOSE,OPEN,3,0),COLORBLUE;
STICKLINE(X_112>0,CLOSE,OPEN,2.5,0),COLOR730000;
STICKLINE(X_112>0,CLOSE,OPEN,1.5,0),COLOR870000;
STICKLINE(X_112>0,CLOSE,OPEN,0.8,0),COLOR9B0000;
STICKLINE(X_112>0,CLOSE,OPEN,0.1,0),COLORAF0000;
STICKLINE(X_112>0,CLOSE,OPEN,0.5,0),COLORC30000;
X_113:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
X_114:=100-ABS(X_113);
X_115:=IF(X_114<90,X_114,100);
X_116:=(HIGH+LOW+CLOSE)/3;
X_117:=(X_116-MA(X_116,14))/(0.015*AVEDEV(X_116,14));
X_118:=(X_116-MA(X_116,70))/(0.015*AVEDEV(X_116,70));
X_119:=IF(X_117>=150 AND X_117<200 AND X_118>=150 AND X_118<200,10,0);
X_120:=IF(X_117<=(-150) AND X_117>(-200) AND X_118<=(-150) AND X_118>(-200),(-10),X_119);
X_121:=IF(X_118>=200 AND X_117>=150,15,IF(X_118<=(-200) AND X_117<=(-150),(-15),X_120))+60;
X_122:=X_115<100 AND X_121>60;
X_123:=VOL>SMA(VOL,3,1)*1.5;
X_124:=X_122 AND X_123;
DRAWICON(X_124,HIGH*1.03,19);
X_125:=MA(CLOSE,3);
X_126:=MA(CLOSE,5);
X_127:=MA(CLOSE,10);
X_128:=MA(CLOSE,20);
X_129:=(X_125+X_126)/2;
X_130:=IF(CLOSE>=OPEN,CLOSE,OPEN);
X_131:=(HIGH-X_130)/X_130*100;
X_132:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_133:=(REF(HIGH,1)-REF(CLOSE,6))/REF(CLOSE,6)*100;
X_134:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_135:=(LOW-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_136:=(CLOSE-OPEN)/CLOSE*100;
X_137:=COUNT(COUNT(X_132>9.9 AND CLOSE=HIGH,1)>=1,30)>0;
X_138:=COUNT(COUNT(X_132>9.9 AND CLOSE=HIGH,1)>=1,60)>0;
X_139:=REF(HHV(VOL,10),1);
X_140:=X_128>REF(X_128,1) AND VOL<X_139 AND X_137 AND X_134>3 AND OPEN<=X_126 AND CLOSE>X_126 AND (COUNT(X_129>REF(X_129,1),3)>=3 OR COUNT(X_126>REF(X_126,1),3)>=3) AND COUNT(X_128>REF(X_128,1),25)>=16;
X_141:=(CLOSE-OPEN)/OPEN*100;
X_142:=X_138 AND VOL<1.3*REF(VOL,1) AND COUNT(X_141>0.5,6)>=5 AND COUNT(X_125>X_126,5)>=5 AND COUNT(HIGH>REF(HIGH,1),6)>=5 AND X_134>4.5 AND OPEN<=X_125 AND CLOSE>X_125 AND OPEN>X_126;
X_143:=X_112;
X_144:=X_143=1 AND COUNT(X_143,15)=1;
X_145:=COUNT(X_144,8)=1 AND COUNT(VOL>REF(VOL,1),3)<3 AND COUNT(X_131>4 AND CLOSE<OPEN,1)=0 AND X_136>(-5.2) AND VOL<1.17*REF(VOL,1) AND VOL<X_139 AND (X_126>REF(X_126,1) OR X_125>REF(X_125,1));
X_146:=X_145;
X_147:=X_144=0 AND COUNT(X_144,8)>=1 AND (X_146=0 OR COUNT(X_146=1,8)>=8);
X_148:=X_144=0 AND COUNT(X_144,8)>=1 AND X_146=1;
X_149:=X_147=1 AND COUNT(X_147,8)=1;
X_150:=X_148=1 AND COUNT(X_148,8)>=1 AND COUNT(X_147,8)=0;
MR:DRAWICON(X_144,(OPEN+CLOSE)/2,23);
MC:DRAWICON(X_149,(OPEN+CLOSE)/2,35);
CG:DRAWICON(X_150,(OPEN+CLOSE)/2,1);

1312111753.png

1312111753.png

1312199529.png

1312199529.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则