通达信天穹缠论看盘系统 智能分析精准捕捉 主副图 指标源码

{天穹缠论主图 主图源码如下}

ZCMN:=2370.00;
ZCMY:=2102.00;
ZCMR:=2294.00;
ZCMB:=2063.00;

DRAWGBK(CLOSE>0,RGB(0,10,10),RGB(0,10,10),0,1,0);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.4,0,0,2),COLORRED;
X_1:=CLOSE-LOW;
X_2:=HIGH-LOW;
X_3:=CLOSE-HIGH;
X_4:=IF(HIGH>LOW,(X_1/X_2+X_3/X_2)*VOL,0);
X_5:=SUM(X_4,10)/10000;
X_6:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_7:=EMA(X_6,9);
X_8:=(X_6-X_7)*2;
X_9:=UPNDAY(X_8,1);
X_10:=REF(HIGH,5)=HHV(HIGH,11);
X_11:=REF(LOW,5)=LLV(LOW,11);
X_12:=BACKSET(X_10,6)>BACKSET(X_10,5);
X_13:=BACKSET(X_11,6)>BACKSET(X_11,5);
X_14:=IF(BARSLAST(X_12)=BARSLAST(X_13) AND MA(CLOSE,5)>MA(CLOSE,10),X_12,IF(BARSLAST(X_13)>BARSLAST(X_12),X_12,0));
X_15:=IF(BARSLAST(X_12)=BARSLAST(X_13) AND MA(CLOSE,10)>MA(CLOSE,5),X_13,IF(BARSLAST(X_12)>BARSLAST(X_13),X_13,0));
X_16:=X_14 AND HIGH=HHV(HIGH,BARSLAST(X_15));
X_17:=X_15 AND LOW=LLV(LOW,BARSLAST(X_14));
X_18:=LOW>REF(HIGH,1) AND DAY!=REF(DAY,1);
X_19:=HIGH<REF(LOW,1) AND DAY!=REF(DAY,1);
X_20:=REF(HIGH,BARSLAST(X_16));
X_21:=REF(LOW,BARSLAST(X_16));
X_22:=REF(HIGH,BARSLAST(X_16)+1);
X_23:=REF(LOW,BARSLAST(X_16)+1);
X_24:=REF(LOW,BARSLAST(X_16)+2);
X_25:=REF(HIGH,BARSLAST(X_17)+2);
X_26:=REF(HIGH,BARSLAST(X_17));
X_27:=REF(LOW,BARSLAST(X_17));
X_28:=REF(HIGH,BARSLAST(X_17)+1);
X_29:=REF(LOW,BARSLAST(X_17)+1);
X_30:=IF(X_22<X_21,X_21,IF(X_21<=X_23,X_24,X_23));
X_31:=IF(X_29>X_26,X_26,IF(X_26>=X_28,X_25,X_28));
X_32:=X_20>X_31 AND X_16;
X_33:=X_27<X_30 AND X_17;
X_34:=X_32 AND X_20>X_26 AND X_21>X_27 AND X_23>X_27;
X_35:=X_33 AND X_27<X_21 AND X_26<X_20 AND X_28<X_20;
X_36:=HIGH<=REF(HIGH,1) AND LOW>=REF(LOW,1) OR (HIGH>=REF(HIGH,1) AND LOW<=REF(LOW,1));
X_37:=COUNT(X_36,BARSLAST(X_17));
X_38:=COUNT(X_36,BARSLAST(X_16));
X_39:=COUNT(X_18,BARSLAST(X_17));
X_40:=COUNT(X_19,BARSLAST(X_16));
X_41:=IF(X_37>0,X_37+2,IF(X_38,X_38+2,3));
X_42:=IF(X_39,X_41-X_39,IF(X_40,X_41-X_40,X_41));
X_43:=X_34 AND BARSLAST(X_35)>X_42;
X_44:=X_35 AND BARSLAST(X_34)>X_42;
X_45:=X_16 AND REF(HIGH,BARSLAST(X_16))>=REF(HIGH,BARSLAST(X_43)) AND BARSLAST(X_44)>BARSLAST(X_43) OR (X_32 AND COUNT(X_18,BARSLAST(X_33))>0 AND REF(HIGH,BARSLAST(X_32))>REF(HIGH,BARSLAST(X_43)));
X_46:=X_17 AND REF(LOW,BARSLAST(X_17))<=REF(LOW,BARSLAST(X_44)) AND BARSLAST(X_43)>BARSLAST(X_44) OR (X_33 AND COUNT(X_19,BARSLAST(X_32))>0 AND REF(LOW,BARSLAST(X_33))<REF(HIGH,BARSLAST(X_44)));
X_47:=IF(BARSLAST(X_46)>BARSLAST(X_45),REF(HIGH,BARSLAST(X_45)),REF(HIGH,BARSLAST(X_46)));
X_48:=IF(BARSLAST(X_45)>BARSLAST(X_46),REF(LOW,BARSLAST(X_46)),REF(LOW,BARSLAST(X_45)));
X_49:=X_45 AND HIGH=HHV(X_47,BARSLAST(X_46)+1) AND HIGH>REF(HIGH,1) AND BARSLAST(X_46)>BARSLAST(X_45);
X_50:=X_46 AND LOW=LLV(X_48,BARSLAST(X_45)+1) AND LOW<REF(LOW,1) AND BARSLAST(X_45)>BARSLAST(X_46);
X_51:=X_49 OR (X_16 AND REF(HIGH,BARSLAST(X_16))>REF(HIGH,BARSLAST(X_49)) AND BARSLAST(X_50)>BARSLAST(X_49));
X_52:=X_50 OR (X_17 AND REF(LOW,BARSLAST(X_17))<REF(LOW,BARSLAST(X_50)) AND BARSLAST(X_49)>BARSLAST(X_50));
趋势向上:DRAWLINE(X_52,LOW,X_51,HIGH,0),DOTLINE,COLORYELLOW,LINETHICK2;
趋势向下:DRAWLINE(X_51,HIGH,X_52,LOW,0),DOTLINE,COLORWHITE,LINETHICK2;
找顶线:DRAWLINE(X_51,HIGH,REF(X_51,1),REF(HIGH,1),1),COLORGREEN;
找底线:DRAWLINE(X_52,LOW,REF(X_52,1),REF(LOW,1),1),COLORRED;
DRAWNUMBER(X_52,LOW*0.99,LOW),COLORRED;
DRAWNUMBER(X_51,HIGH*1,HIGH),COLORLICYAN;
X_53:=X_52 OR X_51;
X_54:=IF(X_52>X_51,LOW,IF(X_52<X_51,HIGH,DRAWNULL));
X_55:=IF(CLOSE>找顶线,HIGH,DRAWNULL);
X_56:=IF(CLOSE<找底线,LOW,DRAWNULL);
X_57:=IF(CLOSE>找底线 AND CLOSE<找顶线,LOW,DRAWNULL);
X_58:=CURRBARSCOUNT=1;
动态线过顶:DRAWLINE(X_53,X_54,X_58,X_55,0),DOTLINE,COLORRED,LINETHICK2;
动态线破底:DRAWLINE(X_53,X_54,X_58,X_56,0),DOTLINE,COLORGREEN,LINETHICK2;
动态线破底中跌:DRAWLINE(X_53,X_54,X_58,X_57,0),DOTLINE,COLORLIBLUE,LINETHICK2;
X_59:=REFDATE(REF(HHV(HIGH,50),5),DATE);
X_60:=REFDATE(REF(LLV(LOW,50),5),DATE);
X_61:=(X_59+X_60)/2;
X_62:=X_59*1.04;
X_63:=X_60*0.98;
X_64:=(X_62-X_63)/13*1.2;
6;
7;
8;
9;
X_65:=NOT(NAMELIKE(3) OR NAMELIKE(4) OR NAMELIKE(5) OR HYSYL OR HYSYL OR HYSYL OR HYSYL);
X_66:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL);
量价线:IF(X_66<X_59 AND X_66>X_60,X_66,DRAWNULL),DOTLINE,COLORGRAY;
X_67:=EMA(EMA(CLOSE,3),2);
X_68:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
STICKLINE(CLOSE<REF(CLOSE,1) OR CLOSE<OPEN,LOW,HIGH,0,1),COLORLIBLUE;
STICKLINE(CLOSE>=REF(CLOSE,1) OR CLOSE>OPEN,LOW,HIGH,0,1),COLORRED;
STICKLINE(OPEN>CLOSE AND CLOSE<REF(CLOSE,1),CLOSE,OPEN,3.05,0),COLORCCCC00;
STICKLINE(OPEN<=CLOSE AND (CLOSE<REF(CLOSE,1) OR CLOSE<OPEN),CLOSE,OPEN,3.05,1),COLORCCCC00;
STICKLINE(OPEN>CLOSE AND CLOSE>=REF(CLOSE,1),OPEN,CLOSE,3.05,0),COLORRED;
STICKLINE(OPEN<=CLOSE AND (CLOSE>=REF(CLOSE,1) OR CLOSE>OPEN),OPEN,CLOSE,3.05,1),COLORRED;
STICKLINE(X_67<=X_68,LOW,HIGH,0,1),COLORLIBLUE;
STICKLINE(X_67>=X_68,LOW,HIGH,0,1),COLORRED;
STICKLINE(OPEN>CLOSE AND X_67<X_68,CLOSE,OPEN,3.05,0),COLORCCCC00;
STICKLINE(OPEN<=CLOSE AND X_67<X_68,CLOSE,OPEN,3.05,1),COLORCCCC00;
STICKLINE(OPEN>CLOSE AND X_67>X_68,OPEN,CLOSE,3.05,0),COLORRED;
STICKLINE(OPEN<=CLOSE AND X_67>X_68,OPEN,CLOSE,3.05,1),COLORRED;
X_69:=(CLOSE+HIGH+OPEN+LOW)/4;
X_70:=XMA(X_69,20)*(1+80/1000);
X_71:=CLOSE>X_70 OR (HIGH>X_70 AND OPEN>CLOSE);
STICKLINE(X_71,CLOSE,OPEN,1,0),COLORGREEN;
X_72:=VOL>=REF(VOL,1)*1.91 AND CLOSE>REF(CLOSE,1)*1.01;
STICKLINE(X_72,CLOSE,OPEN+(CLOSE-OPEN)/2,1,0),COLORYELLOW;
X_73:=20;
X_74:=MA(CLOSE,X_73);
X_75:=POW(CLOSE-X_74,2);
X_76:=MA(X_75,X_73);
X_77:=SQRT(X_76);
X_78:=X_74+2*X_77;
X_79:=X_74-2*X_77;
X_80:=REF(X_74,1);
X_81:=REF(X_78,1);
X_82:=REF(X_79,1);
X_83:=X_64;
X_84:=X_83;
X_85:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
X_86:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
X_87:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
X_88:=X_86<REF(X_87,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
X_89:=IF(X_88 AND COUNT(X_88,30)=1,X_84,X_84);
X_90:=IF(X_88 AND COUNT(X_88,30)=1,1,0);
DRAWTEXT(X_88 AND COUNT(X_88,30)=1,LOW-X_89,10),COLORMAGENTA;
X_91:=(2*CLOSE+HIGH+LOW)/3;
X_92:=EMA(X_91,3);
X_93:=EMA(X_92,3);
X_94:=EMA(X_93,3);
X_95:=(X_94-REF(X_94,1))/REF(X_94,1)*100;
X_96:=MA(X_95,1);
X_97:=MA(X_95,2);
X_98:=CROSS(X_96,X_97);
X_99:=X_96>=X_97;
X_100:=CROSS(X_97,X_96);
X_101:=X_96<=X_97;
X_102:=CROSS(ZIG(3,10),REF(ZIG(3,10),1));
X_103:=ZIG(3,10)>REF(ZIG(3,10),1);
X_104:=CROSS(REF(ZIG(3,10),1),ZIG(3,10));
X_105:=ZIG(3,10)<=REF(ZIG(3,10),1);
X_106:=X_89;
X_107:=X_98 AND (X_102 OR REF(X_102,1) OR REF(X_102,2)) OR (X_102 AND X_99) AND X_96<2;
X_108:=X_98 AND (X_102 OR REF(X_102,1) OR REF(X_102,2)) OR (X_102 AND X_99) AND X_96<2 AND SUM(趋势向下>0,2)<2 AND 找底线>0 AND SUM(趋势向上>0,5)<5;
X_109:=X_103 AND X_99;
X_110:=LOW>REF(LOW,BARSLAST(REF(X_108,1))+1);
X_111:=LOW<=REF(LOW,BARSLAST(REF(X_108,1))+1);
X_112:=X_100 AND (X_104 OR REF(X_104,1) OR REF(X_104,2)) OR (X_104 AND (X_100 OR REF(X_100,1) OR REF(X_100,2) OR X_101)) AND SUM(趋势向上>0,3)<3 AND 找顶线 AND 趋势向下 AND SUM(趋势向下>0,5)<5;
X_113:=X_105 AND X_101;
DRAWICON(X_108,LOW-X_64,1);
X_114:=IF(X_112,X_64,X_64);
DRAWICON(X_112,HIGH+X_114,2);
X_115:=AMOUNT/VOL;
X_116:=LOW<X_115*0.9;
X_117:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
X_118:=LOW<MA(CLOSE,5)*0.921;
X_119:=VOL<MA(VOL,5)*1.5;
X_120:=X_116 AND X_117 AND X_118 AND X_119;
X_121:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
X_122:=EMA(X_121,9);
X_123:=(X_121-X_122)*2*60;
X_124:=CROSS(X_123-REF(X_123,1),15);
X_125:=EMA(CLOSE,3);
X_126:=EMA(CLOSE,5);
X_127:=EMA(CLOSE,7);
X_128:=EMA(CLOSE,12);
X_129:=EMA(CLOSE,20);
X_130:=EMA(CLOSE,50);
X_131:=CROSS(X_125,X_129) AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1) AND CLOSE/REF(CLOSE,1)>=1.018;
X_132:=REF(LOW,1);
X_133:=SMA(ABS(LOW-X_132),3,1)/SMA(MAX(LOW-X_132,0),3,1)*100;
X_134:=EMA(IF(CLOSE*1.3,X_133*10,X_133/10),3);
X_135:=LLV(LOW,30);
X_136:=HHV(X_134,30);
X_137:=IF(MA(CLOSE,58),1,0);
X_138:=EMA(IF(LOW<=X_135,(X_134+X_136*2)/2,0),3)/618*X_137;
X_139:=IF(X_138>100,50,X_138);
X_140:=CLOSE-REF(CLOSE,1);
X_141:=100*EMA(EMA(X_140,6),6)/EMA(EMA(ABS(X_140),6),6);
X_142:=IF(LLV(X_141,2)=LLV(X_141,7) AND COUNT(X_141<0,2) AND CROSS(X_141,MA(X_141,2)),1,0);
X_143:=FILTER(X_142=1,5);
X_144:=MA(CLOSE,3);
X_145:=ATAN((X_144/REF(X_144,1)-1)*100)*180/3.1416;
X_146:=MA(X_145,2);
X_147:=IF(X_124 OR X_131 OR X_143 OR X_120,IF(X_146>=(-76.199997) AND X_146<=(-57),11,IF(X_146>=(-50) AND X_146<=(-44),12,IF(X_146>=(-39) AND X_146<=(-35),13,IF(X_146>=(-28) AND X_146<=(-10),14,IF(X_139>0.1,15,16))))),17);
X_148:=IF(X_124 OR X_131 OR X_143 OR X_120,IF(X_146>=(-76.199997) AND X_146<=(-57),30,IF(X_146>=(-50) AND X_146<=(-44),70,IF(X_146>=(-39) AND X_146<=(-35),60,IF(X_146>=(-28) AND X_146<=(-10),80,IF(X_139>0.1,2,29))))),0);
X_149:=IF(X_110,18,IF(X_111,19,1));
X_150:=IF(X_108,X_106+X_64,X_106);
X_151:=IF(X_108,X_150+X_64,X_150);
DRAWTEXT(X_108,LOW-X_151,X_147),COLORYELLOW,LINETHICK3;
DRAWTEXT(X_108,LOW-X_150,X_149),COLORYELLOW,LINETHICK3;
X_152:=REF((OPEN+HIGH+LOW+2*CLOSE)/5,1);
X_153:=SMA(MAX(CLOSE-X_152,0),3,1)/SMA(ABS(CLOSE-X_152),3,1)*100;
X_154:=CROSS(88,X_153);
X_155:=IF(X_154,X_114+X_64,X_114);
DRAWTEXT(X_154,HIGH+X_155,20),COLORGREEN;
X_156:=(CLOSE+HIGH+OPEN+LOW)/4;
X_157:=XMA(X_156,20)*(1+80/1000);
X_158:=IF(CROSS(CLOSE,X_157),1,0);
X_159:=IF(X_158,X_155+X_64,X_155);
DRAWTEXT(X_158,HIGH+X_159,21),COLORYELLOW;
X_160:=MA(CLOSE,5);
X_161:=MA(CLOSE,10);
X_162:=MA(CLOSE,20);
X_163:=MA(CLOSE,30);
X_164:=ATAN((X_160/REF(X_160,1)-1)*100)*180/3.1416;
X_165:=(CLOSE-X_163)/X_163*100;
X_166:=FILTER(COUNT(CROSS(30,X_164),5)>=1 AND (CLOSE>X_163 OR OPEN>X_163) AND X_160<REF(X_160,1) AND X_165<REF(X_165,1) AND X_161<REF(X_161,1),10);
X_167:=IF(X_166,X_159+X_64,X_159);
DRAWTEXT(X_166,HIGH+X_167,22),COLORFFCC00;
X_168:=X_167;
X_169:=EMA(EMA(CLOSE,13),13);
X_170:=(X_169-REF(X_169,1))/REF(X_169,1)*1000;
X_171:=X_170<0;
X_172:=X_170>REF(X_170,1) AND X_170>0;
X_173:=DYNAINFO(11);
X_174:=21;
X_175:=8;
X_176:=3;
X_177:=(EMA(CLOSE,X_175)-EMA(CLOSE,X_174))*50;
X_178:=EMA(X_177,X_176);
X_179:=(CLOSE-X_173)/X_173<(-0.03);
X_180:=(CLOSE-X_173)/X_173<(-0.03);
X_181:=LAST(X_173>=REF(X_173,1),5,1) AND (CLOSE-X_173)/X_173<0.005;
X_182:=(CLOSE-X_173)/X_173>0.005;
X_183:=X_170<REF(X_170,1) AND X_170>0.5;
X_184:=X_170>0;
X_185:=X_170>REF(X_170,1) AND X_170<(-0.2);
X_186:=X_170>REF(X_170,1) AND X_170<0;
X_187:=CROSS(X_177,X_178) AND X_177<(-0.3);
X_188:=CROSS(X_177,X_178) AND X_177<(-0.1);
X_189:=CROSS(X_178,X_177);
X_190:=CROSS(X_178,X_177) AND X_177>1.618;
X_191:=FILTER(X_180 AND X_185 AND X_187,13);
X_192:=FILTER(X_191,30);
X_193:=IF(X_192,X_151,X_151);
X_194:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
X_195:=IF(X_194 AND COUNT(X_194,30)=1,X_193,X_193);
X_196:=X_195;
X_197:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
X_198:=IF(X_197>20 AND FILTER(X_197<REF(X_197,1),5),X_168+X_64,X_168);
DRAWTEXT(X_197>20 AND FILTER(X_197<REF(X_197,1),5),HIGH+X_198,25),COLORCYAN;
X_199:=IF(X_197<(-20) AND FILTER(X_197>REF(X_197,1),5),X_196+X_64,X_196);
DRAWTEXT(X_197<(-20) AND FILTER(X_197>REF(X_197,1),5),LOW-X_199,26);
X_200:=IF(FILTER(X_197<(-9) AND X_197>REF(X_197,1),18),X_199+X_64,X_199);
DRAWTEXT(FILTER(X_197<(-9) AND X_197>REF(X_197,1),18),LOW-X_200,27),COLORWHITE;
X_201:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_202:=SMA(X_201,3,1);
X_203:=SMA(X_202,3,1);
X_204:=3*X_202-2*X_203;
X_205:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_206:=EMA(X_205,9);
X_207:=2*(X_205-X_206);
X_208:=IF(CLOSE=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(VOL+0.01)/100);
X_209:=IF(X_205>=REF(X_205,1) AND (X_202>=REF(X_202,1) OR X_202>X_203),10,0);
X_210:=IF(X_205<REF(X_205,1) AND X_202<=REF(X_202,1),10,0);
X_211:=IF(FILTER(X_210,15),X_198+X_64,X_198);
DRAWTEXT(FILTER(X_210,15),HIGH+X_211,28),COLORGREEN;
X_212:=1/WINNER(CLOSE);
X_213:=MA(CLOSE,13);
X_214:=100-ABS((CLOSE-X_213)/X_213*100);
X_215:=LLV(LOW,120);
X_216:=HHV(HIGH,120);
X_217:=(X_216-X_215)/100;
X_218:=SMA((CLOSE-X_215)/X_217,20,1);
X_219:=SMA((OPEN-X_215)/X_217,20,1);
X_220:=3*X_218-2*SMA(X_218,10,1);
X_221:=3*X_219-2*SMA(X_219,10,1);
X_222:=100-X_221;
X_223:=100-X_220;
X_224:=MA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
X_225:=X_224+100;
X_226:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
X_227:=X_226+100;
X_228:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
X_229:=(HIGH+LOW+CLOSE)/3;
X_230:=(X_229-MA(X_229,14))/(0.015*AVEDEV(X_229,14));
X_231:=(X_229-MA(X_229,70))/(0.015*AVEDEV(X_229,70));
X_232:=IF(X_230>=150 AND X_230<200 AND X_231>=150 AND X_231<200,10,0);
X_233:=IF(X_230<=(-150) AND X_230>(-200) AND X_231<=(-150) AND X_231>(-200),(-10),X_232);
X_234:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
X_235:=100-ABS(X_234);
X_236:=IF(X_235<90,X_235,100);
X_237:=IF(X_228>0,X_228,0);
X_238:=IF(X_231>=200 AND X_230>=150,15,IF(X_231<=(-200) AND X_230<=(-150),(-15),X_233))+60;
X_239:=X_237>48 AND X_238>60 AND X_236<100;
X_240:=IF(X_239 AND COUNT(X_239,30)=1,X_211+X_64,X_211);
DRAWTEXT(X_239 AND COUNT(X_239,30)=1,HIGH+X_240,29),COLORLIBLUE;
X_241:=CLOSE>REF(CLOSE,4);
X_242:=BARSLASTCOUNT(X_241);
X_243:=X_242=9;
X_244:=ISLASTBAR AND BETWEEN(X_242,5,8);
X_245:=(BACKSET(X_243>0,9) OR BACKSET(X_244>0,X_242))*X_242;
DRAWTEXT(X_245>0,HIGH*1.02,VAR2STR(X_245,0)),COLORMAGENTA;
DRAWTEXT(X_242=9,HIGH*1.02,30),COLORMAGENTA;
X_246:=CLOSE<REF(CLOSE,4);
X_247:=BARSLASTCOUNT(X_246);
X_248:=REF(X_247,1)=8 AND X_247>REF(X_247,1);
X_249:=REF(BETWEEN(X_247,5,8),1) AND X_247<REF(X_247,1);
X_250:=ISLASTBAR AND BETWEEN(X_247,6,8);
X_251:=(BACKSET(X_248>0,9) OR BACKSET(X_249>0,X_247+1)*0 OR BACKSET(X_250>0,X_247))*X_247;
DRAWTEXT(X_251>0,HIGH*1.01,VAR2STR(X_251,0)),COLORGREEN;
DRAWTEXT(X_247=9,HIGH*1.01,30),COLORGREEN;
X_252:=IF(MA(CLOSE,5)>=MA(CLOSE,10) AND MA(CLOSE,10)>=MA(CLOSE,20) AND MA(CLOSE,20)>=MA(CLOSE,30) AND MA(CLOSE,30)>=MA(CLOSE,30) AND MA(CLOSE,30)>=MA(CLOSE,30) AND MA(CLOSE,5)>LLV(MA(CLOSE,5),5),1,0);
X_253:=IF(SUM(CROSS(MA(CLOSE,10),MA(CLOSE,5)) OR CROSS(MA(CLOSE,20),MA(CLOSE,5)),7)>1,1,0);
X_254:=IF(MA(CLOSE,5)<=MA(CLOSE,10) AND MA(CLOSE,10)<=MA(CLOSE,20) AND MA(CLOSE,20)<=MA(CLOSE,30) AND MA(CLOSE,5)>LLV(MA(CLOSE,5),5),1,0);
X_255:=MIN(MA(CLOSE,5),MIN(MA(CLOSE,10),MIN(MA(CLOSE,20),MIN(MA(CLOSE,30),MIN(MA(CLOSE,30),MA(CLOSE,30))))));
X_256:=MAX(MA(CLOSE,5),MAX(MA(CLOSE,10),MAX(MA(CLOSE,20),MAX(MA(CLOSE,30),MAX(MA(CLOSE,30),MA(CLOSE,30))))));
X_257:=X_256/X_255<1.08;
X_258:=X_256/X_255>1.1;
X_259:=X_257 AND (MA(CLOSE,5)>LLV(MA(CLOSE,5),5) OR X_252=1) AND INTPART(X_66)=HHV(INTPART(X_66),20) OR (INTPART(X_66)=LLV(INTPART(X_66),20) AND CLOSE<MA(CLOSE,30) AND X_254=1 AND X_258=1);
X_260:=IF(FILTER(X_209,15) OR (CROSS(X_67,X_68) AND X_259),X_200+X_64,X_200);
DRAWTEXT(X_209=10 AND LOW>REF(LOW,1) AND CROSS(X_67,X_68) AND CLOSE>REF(CLOSE,1) AND X_223>50 AND X_225=HHV(X_225,10) AND (X_257 AND HHV(MA(CLOSE,30),20)/MA(CLOSE,30)>0.98 AND HHV(MA(CLOSE,30),20)/MA(CLOSE,30)<1.01 AND CLOSE>MA(CLOSE,30)) AND SUM(CROSS(X_225,X_227),7)=1 AND SUM(CROSS(X_227,X_225),7)=1 AND X_225=HHV(X_225,10),LOW-X_260,31),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(X_209,5) AND (X_257 AND MA(CLOSE,30)=HHV(MA(CLOSE,30),5) AND CLOSE>MA(CLOSE,30) AND X_252 OR (MA(CLOSE,30)=LLV(MA(CLOSE,30),5) AND X_254=1 AND X_258)) AND CROSS(X_67,X_68) AND CLOSE/REF(CLOSE,1)>1.05 AND DYNAINFO(37)<0.2 AND DYNAINFO(37)>0.02 AND (X_225>70 AND HHV(X_225,7)-LLV(X_225,7)<3 OR (X_225<85 AND HHV(X_225,7)=X_225 AND X_225-LLV(X_225,10)>20)),LOW-X_260-X_64,32),COLORCYAN,LINETHICK2;
DRAWTEXT(CROSS(X_209,5) AND SUM(CROSS(X_225,X_227),7)=1 AND HHV(X_225,7)-X_225<2 AND (X_225>20 AND X_225<60 AND HHV(X_225,7)-LLV(X_227,7)>HHV(X_225,7)/3 AND (X_257 AND MA(CLOSE,30)=HHV(MA(CLOSE,30),5) AND CLOSE>MA(CLOSE,30) OR (MA(CLOSE,30)=LLV(MA(CLOSE,30),5) AND X_254=1 AND X_258)) OR (X_225>60 AND CLOSE=HIGH AND CROSS(X_67,X_68) AND X_252 AND CROSS(CLOSE,MA(CLOSE,20)))) AND X_254=0,LOW-X_260-X_64,32),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(X_209,5) AND X_252 AND CROSS(X_67,X_68) AND CLOSE/OPEN>=1.05 AND SUM(CROSS(X_225,X_227),2)>=1 AND SUM(CROSS(X_227,X_225),2)>=1 AND X_225>50 AND X_225=HHV(X_225,20) AND REF(HHV(MA(CLOSE,5),5),1)/LLV(MA(CLOSE,5),4)<1.04 AND CROSS(CLOSE,MA(CLOSE,10)),LOW,33),COLORYELLOW,LINETHICK2;
X_261:=REF(OPEN,1);
X_262:=ABS((REF(CLOSE,1)-X_261)/X_261);
X_263:=ABS((REF(HIGH,1)-X_261)/X_261);
X_264:=ABS((REF(LOW,1)-X_261)/X_261);
X_265:=ABS((X_262+X_263+X_264)/3);
X_266:=OPEN*X_265;
X_267:=OPEN-X_266;
X_268:=OPEN+X_266;
X_269:=OPEN;
X_270:=REF(OPEN,1);
X_271:=HIGH;
X_272:=REF(HIGH,1);
X_273:=LOW;
X_274:=REF(LOW,1);
X_275:=CLOSE;
X_276:=REF(CLOSE,1);
X_277:=X_272;
X_278:=X_274;
X_279:=X_270;
X_280:=X_276;
X_281:=(X_277+X_278+X_279+2*X_280)/5;
X_282:=X_281+(X_277-X_278);
X_283:=2*X_281-X_278;
X_284:=2*X_281-X_277;
X_285:=X_281-(X_277-X_278);
X_286:=X_282;
X_287:=X_283;
X_288:=X_284;
X_289:=X_285;
X_290:=(X_281+X_286+X_287+X_288+X_289)/5;
X_291:=X_290;
X_292:=(X_290+X_269)/2;
X_293:=(X_267+X_292)/2;
X_294:=X_293;
X_295:=27;
X_296:=0.03;
X_297:=0.1;
X_298:=1;
X_299:=MA(REF(HIGH,1)/REF(CLOSE,2),X_295)*REF(CLOSE,1);
DRAWTEXT_FIX(1,X_297,X_298,0,37),COLORYELLOW;
DRAWNUMBER_FIX(1,X_297+0.08,X_298,0,CONST(X_294)),COLORYELLOW;
DRAWTEXT_FIX(1,X_297+0.15,X_298,0,35),COLORYELLOW;
DRAWTEXT_FIX(1,X_297+0.4,X_298,0,38),COLORWHITE;
DRAWNUMBER_FIX(1,X_297+0.4+0.08,X_298,0,CONST(X_299)),COLORWHITE;
DRAWTEXT_FIX(1,X_297+0.4+0.15,X_298,0,35),COLORWHITE;
DRAWTEXT_FIX(1,X_297+0.2,X_298,0,39),COLOR4080FF;
X_300:=(X_267+X_294)/2;
DRAWNUMBER_FIX(1,X_297+0.2+0.08,X_298,0,CONST(X_300)),COLOR4080FF;
DRAWTEXT_FIX(1,X_297+0.2+0.15,X_298,0,35),COLOR4080FF;
DRAWTEXT_FIX(1,X_297+0.6,X_298,0,40),COLOR4080FF;
X_301:=(X_268+X_299)/2;
DRAWNUMBER_FIX(1,X_297+0.6+0.08,X_298,0,CONST(X_301)),COLOR4080FF;
DRAWTEXT_FIX(1,X_297+0.6+0.15,X_298,0,35),COLOR4080FF;
X_302:=XMA(XMA(XMA(EMA(CLOSE,1),2),2),2);
X_303:=EMA((X_302-REF(X_302,1))/REF(X_302,1),1)*1000;
X_304:=XMA(X_303,11);
X_305:=EMA(X_304,11);
X_306:=EMA(X_304+X_305,1)-XMA(X_304-X_305,2);
X_307:=XMA(X_306,11);
X_308:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
X_309:=3*SMA((OPEN-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((OPEN-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
X_310:=MA(WINNER(CLOSE*0.95)*100,3);
X_311:=EMA(EMA(CLOSE,3),2);
X_312:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
X_313:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
X_314:=SMA(X_313,3,1);
X_315:=SMA(X_314,3,1);
X_316:=3*X_314-2*X_315;
X_317:=EMA(X_316,5);
X_318:=MA(CLOSE,5);
X_319:=MA(CLOSE,60);
X_320:=MA(CLOSE,120);
X_321:=CLOSE>MAX(X_318,X_161) AND CLOSE>=MAX(X_319,X_320);
X_322:=BARSLAST(CROSS(X_318,X_161));
X_323:=CLOSE>=REF(CLOSE,X_322/2)*1.03 AND REF(CLOSE,X_322/2)>=REF(CLOSE,X_322)*1.08;
X_324:=VOL.VOLUME>LLV(VOL.VOLUME,X_322/2) AND LLV(VOL.VOLUME,X_322/2)>LLV(VOL.VOLUME,X_322);
X_325:=COUNT(CROSS(X_161,X_318),X_322)=0;
X_326:=COUNT(X_161>REF(X_161,1),X_322)>=X_322-1 AND COUNT(X_318>REF(X_318,1),X_322)>=X_322-1;
X_327:=X_322 AND X_325 AND X_326;
X_328:=X_322>=10;
X_329:=IF(X_321 AND X_328 AND X_323 AND X_327,1,0);
X_330:=IF(X_239 AND COUNT(X_239,30)=1,1,0);
X_331:=EXIST(CROSS(MA(CLOSE,10),MA(CLOSE,5)),5);
X_332:=EXIST(MA(CLOSE,10)/LLV(MA(CLOSE,5),5)<1.05,4);
X_333:=CLOSE>MA(CLOSE,5) AND MA(CLOSE,5)>REF(MA(CLOSE,5),1);
X_334:=MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>MA(CLOSE,60);
X_335:=IF(X_331 AND X_332 AND X_333 AND X_334,1,0);
X_336:=ABS(EMA(WINNER(CLOSE)*70,3));
X_337:=ABS(EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*70,3));
X_338:=X_337-X_336;
X_339:=100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55));
X_340:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3);
X_341:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1),3,1);
X_342:=IF(EMA(X_341,3)>60 AND EMA(X_341,3)>REF(EMA(X_341,3),1),1,0);
DRAWTEXT(X_330 OR X_90 AND CROSS(X_336,X_337) AND LOW>REF(CLOSE,1)*1.045 AND CLOSE=HIGH AND CLOSE>REF(CLOSE,1)*1.095 AND SUM(X_339=0,2)>1 AND X_158=0 AND SUM(X_72=0,2)=2 AND MA(CLOSE,5)*1.03>X_81 AND SUM(X_342,3)<=2,LOW-X_64,41),COLORFFCC66;
DRAWTEXT(X_330 OR X_90 AND SUM(CROSS(X_336,X_337),2)>0 AND SUM(CLOSE>REF(CLOSE,1)*1.095,4)<4 AND CLOSE=HIGH AND SUM(CROSS(X_336,X_338) OR CROSS(X_336,X_337),3)>1 AND SUM(X_339=0,2)>1 AND SUM(X_339=0,4)<4 AND X_158=0 AND REF(CLOSE,1)*1.09<OPEN AND X_72=0 AND MA(CLOSE,5)*1.03>X_81 AND (CROSS(X_336,X_337) OR X_66>X_81 OR X_335),LOW-X_64,42),COLORFFCC66;
DRAWTEXT(CROSS(X_336,X_337) AND MAX(MA(CLOSE,5),X_81)-MIN(MA(CLOSE,5),X_81)<MIN(MA(CLOSE,5),X_81)*0.01 AND HIGH-LOW<REF(CLOSE,1)*0.03 AND CLOSE=HIGH AND CLOSE>REF(CLOSE,1)*1.092 AND X_339>0 AND X_81>X_66 AND MA(CLOSE,5)*1.05>X_81,X_82*1.05,43),COLORFFCC66;
X_343:=COUNT(CROSS(90,X_308),6)=1 AND COUNT(CROSS(90,X_308),10)=1 AND HHV(X_307,5)>85 AND X_107 AND SUM(CLOSE>=MA(CLOSE,5),3)>0 AND X_81>0 AND X_310<70 AND CROSS(X_336,X_337) AND X_72=0;
DRAWTEXT(X_343,LOW-X_64,44),COLORFFCC66;
X_344:=IF(SUM(CROSS(90,X_308),10)=1 AND SUM(CROSS(90,X_308),6)=1 AND HHV(X_307,5)>85 AND X_107 AND SUM(CLOSE>=MA(CLOSE,5),3)>0 AND X_81>0 AND X_310<70,1,0);
X_345:=IF(X_197<(-20) AND FILTER(X_197>REF(X_197,1),5) AND HHV(X_307,70)>85,1,0);
DRAWTEXT(X_345 AND SUM(X_344,70)>0,LOW-X_199,45),COLORWHITE;
X_346:=IF(X_330 OR X_90 AND CROSS(X_340,10) AND SUM(CLOSE>REF(CLOSE,1)*1.092,4)<3 AND CLOSE>REF(CLOSE,1)*1.092 AND CLOSE=HIGH AND CLOSE>OPEN AND SUM(X_340>10,15)=1 AND CROSS(X_336,X_337) AND SUM(X_339=0,2)>1 AND SUM(X_339=0,4)<3 AND X_339=0 AND X_158=0 AND (SUM(X_72=1,2)=2 OR (X_72=0 AND MA(CLOSE,5)*1.03>MAX(X_81,X_66))) AND MA(CLOSE,5)*1.03>X_81,1,0);
X_347:=IF(X_330=0 AND CROSS(X_340,10) AND SUM(CROSS(X_336,X_337),2)=1 AND SUM(CLOSE>REF(CLOSE,1)*1.095,4)<3 AND CLOSE>REF(CLOSE,1)*1.095 AND LOW=HIGH AND SUM(X_340>10,15)=1 AND X_339>0 AND X_339<30 AND X_158=0 AND X_72=0 AND SUM(OPEN>X_81,3)=1 AND OPEN>X_81 AND X_81>X_66 AND SUM(X_342,5)<1 AND MA(CLOSE,5)*1.03>X_81,1,0);
X_348:=IF(CROSS(X_340,10) AND SUM(CROSS(X_336,X_337),1)=1 AND SUM(CLOSE>REF(CLOSE,1)*1.09,4)=2 AND SUM(CLOSE>REF(CLOSE,1)*1.09,2)=2 AND CLOSE=HIGH AND SUM(X_340>10,15)=1 AND SUM(X_339=0,2)<2 AND SUM(X_72=1,2)=2 AND CROSS(OPEN,X_81) AND CLOSE>X_66 AND MA(CLOSE,5)*1.02>MAX(X_81,X_66) AND X_158=0 AND CLOSE=HHV(CLOSE,60) AND SUM(X_342,5)<=1 AND CLOSE>OPEN,1,0);
DRAWTEXT(X_347 OR X_348 OR X_346 AND X_65 AND CLOSE>5,LOW-X_64,46),COLORFFCC66;
X_349:=X_239 AND COUNT(X_239,30)=1 AND CROSS(X_336,X_337) AND SUM(CLOSE>REF(CLOSE,1)*1.095,4)=1 AND SUM(X_339=0,2)=1 AND SUM(X_72,2)=1 AND SUM(CLOSE>REF(CLOSE,1),3)=3 AND X_335 AND CLOSE>REF(CLOSE,1)*1.095 AND X_340>10 AND OPEN>=REF(HIGH,1) AND MA(CLOSE,5)*1.05>X_81;
X_350:=SUM(CLOSE>REF(CLOSE,1)*1.095,4)<3 AND SUM(CROSS(X_336,X_337),2)>0 AND SUM(X_339=0,2)=1 AND SUM(X_72,2)=1 AND SUM(CLOSE>REF(CLOSE,1),3)=3 AND X_335 AND CLOSE>REF(CLOSE,1)*1.095 AND CROSS(X_340,10) AND OPEN=CLOSE AND MIN(MA(CLOSE,5),X_66)*1.03>MAX(X_66,MA(CLOSE,5));
DRAWTEXT(X_349 OR X_350,X_82*1.05,47),COLORFFCC66;
X_351:=X_72=0 AND X_310>50 AND X_311>X_312 AND X_307>40 AND (CROSS(X_336,X_337) AND X_99 AND X_103 AND X_307=HHV(X_307,20) OR (X_329 AND X_307=HHV(X_307,20)) OR (X_329 AND X_310>70 AND X_107)) AND HHV(X_307,20)<85 AND SUM(CROSS(90,X_308),5)<=1 AND SUM(CROSS(90,X_308),10)<=1 AND CROSS(CLOSE,MA(CLOSE,5)) AND CLOSE>ZTPRICE(REF(CLOSE,1),0.092);
DRAWTEXT(X_351,LOW-X_64,48),COLORFFCC66;
X_352:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
X_353:=SMA(X_352,3,1);
X_354:=SMA(X_353,3,1);
X_355:=3*X_353-2*X_354;
X_356:=EMA(X_355,5);
X_357:=WINNER(CLOSE)*100;
X_358:=MA(X_357,5);
X_359:=EMA(100*(1-WINNER(1.2*CLOSE)),1);
X_360:=FILTER(CROSS(X_357,X_358) AND X_358>80,5) AND X_359=0;
X_361:=FILTER(COUNT(CROSS(X_357,X_358),15)>=3 AND X_358>61.799999,15) AND CLOSE<MA(CLOSE,3);
X_362:=X_360 OR X_361;
X_363:=X_107 AND X_110 AND X_310>70 AND X_356<20 AND SUM(X_112,8)<1 AND X_160>=REF(X_160,1) AND X_310<85 AND X_72=0 AND X_158=0 AND SUM(X_107,40)>1;
X_364:=X_107 AND X_110 AND X_310>70 AND X_356-X_310>18 AND X_362=0 AND X_310<85 AND X_72=0 AND X_158=0 AND SUM(X_107,40)>1;
X_365:=IF(X_364,X_200+X_64,X_200);
DRAWTEXT(X_364,LOW-X_365,49),COLORFFCC66;



{天穹短买副图源码如下}

X_1:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
X_2:=SMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3,1);
X_3:=SMA((X_2-50)*2,3,1)+SMA((X_1-50)*2,3,1)/1;
顶警戒:150,DOTLINE,COLORMAGENTA;
底戒线:(-150),DOTLINE,COLORGREEN;
STICKLINE(X_3>(-100),X_3,100,0,0),COLOR323232;
STICKLINE(X_3<(-100),X_3,100,0,0),COLOR9F9F5F;
STICKLINE(X_3<(-100),X_3,(-100),1,0),COLORYELLOW;
STICKLINE(X_3<(-120),X_3,(-120),1,0),COLORFF2400;
STICKLINE(X_3<(-140),X_3,(-140),1,0),COLORMAGENTA;
STICKLINE(X_3<(-150),X_3,(-150),1,0),COLORRED;
STICKLINE(X_3>100,X_3,100,1,0),COLORWHITE;
STICKLINE(X_3>120,X_3,120,1,0),COLORFF2400;
STICKLINE(X_3>140,X_3,140,1,0),COLORMAGENTA;
STICKLINE(X_3>150,X_3,150,1,0),COLORRED;
X_4:=LOW>MA(SLOPE(CLOSE,20)*5+CLOSE,10) AND LOW<MA(CLOSE,20);
X_5:=COUNT(CROSS(MA(CLOSE,10),MA(CLOSE,5)),5)>=1;
神猎手:CROSS(CLOSE,REF(LLV(LOW,250/12),2)) AND X_4 AND X_5,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0,0,GNBLOCK),COLOR00CCCC;
X_6:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
赶快买:CROSS(X_6,5),NODRAW;
秘密买:X_6<=5,NODRAW,COLOR00FF99;
尝试买:X_6<=13,NODRAW,COLORCYAN;
STICKLINE(尝试买,0,(-100),4,(-1)),COLORCYAN;
STICKLINE(秘密买,(-90),(-10),1,0),COLOR00FF99;
STICKLINE(赶快买,(-90),100,1,0),COLORMAGENTA;
STICKLINE(神猎手,(-90),90,1,0),COLORRED;
X_7:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
X_8:=CROSS(X_7,8) AND 尝试买;
X_9:=LOW<=REFDATE(REF(LLV(LOW,150),3),DATE) AND 尝试买;
超短买:X_8 OR X_9,NODRAW,COLOR0099FF;
STICKLINE(超短买,(-60),20,3,0),COLOR0090FF;
STICKLINE(超短买,(-55),15,1,(-1)),COLORRED;
X_10:=DMA((HIGH+LOW+CLOSE*2)/4.15,0.9);
X_11:=REF(EMA(X_10,3),1);
X_12:=KDJ.J<50 AND CLOSE>REF(CLOSE,3);
X_13:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;
X_14:=CROSS(0,(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100);
X_15:=X_13<REF(X_13,1);
X_16:=MA(CLOSE,10)>REF(MA(CLOSE,10),1);
X_17:=FILTER(X_14 AND X_15 AND X_16,10);
X_18:=(2*CLOSE+HIGH+LOW)/4;
X_19:=MA(EMA((X_18-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5),1);
X_20:=REF(X_17,2) AND CROSS(CLOSE,EMA(CLOSE,5));
X_21:=X_19>REF(X_19,1) AND REF(X_19,1)<REF(X_19,2);
X_22:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_23:=IF(CLOSE>OPEN,X_22*(HIGH-LOW),IF(CLOSE<OPEN,X_22*(HIGH-OPEN+(CLOSE-LOW)),VOL/2));
X_24:=IF(CLOSE>OPEN,X_22*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,X_22*(HIGH-LOW),VOL/2));
X_25:=KDJ.J<20;
X_26:=X_23>X_24*6 AND X_25;
X_27:=CROSS(CLOSE,X_11) AND X_12;
X_28:=X_20 AND X_21;
短爆买:尝试买 AND (X_26 OR X_27 OR X_28),NODRAW,COLORRED;
STICKLINE(短爆买,0,70,3,0),COLORRED;
DRAWTEXT(短爆买,40,1207),COLORYELLOW;
DRAWTEXT(超短买,(-20),1208),COLORWHITE;
DRAWTEXT(赶快买,85,1209),COLORGREEN;
DRAWTEXT(神猎手,60,1210),COLORWHITE;
【短线趋势】:SMA((X_2-50)*2,3,1)+SMA((X_1-50)*2,3,1)/1,COLORYELLOW,LINETHICK2;
IF(X_3<=REF(X_3,1),X_3,DRAWNULL),COLORFF2400,LINETHICK2;
X_29:=X_3>REF(X_3,1);
X_30:=X_3<=REF(X_3,1);
DRAWICON(X_29 AND REF(NOT(X_29),1),X_3,1);
DRAWICON(X_30 AND REF(NOT(X_30),1),X_3,2);


{天穹能量场副图源码如下}

{主散资金}
A:=V*50/CAPITAL;
主力A:=MA(A,4),COLORRED,LINETHICK3;
游资A:=MA(A,8),COLORYELLOW,LINETHICK3;
大户A:=MA(A,16),COLORMAGENTA,LINETHICK3;
散户A:=MA(A,32),COLORGREEN,LINETHICK2;
STICKLINE(主力A>0,0,主力A,2,0),COLORRED;
STICKLINE(游资A>0,0,游资A,2,0),COLORYELLOW;
STICKLINE(大户A>0,0,大户A,2,1),COLORMAGENTA;

{VOL量能}

TWJIAN:=(CODELIKE('999') OR CODELIKE('399'));
HROL:=20*VOL/(FINANCE(7)/100);
JL:=IF(TWJIAN,VOL,HROL);
RSV:=(JL-LLV(JL,20))/(HHV(JL,20)-LLV(JL,20))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
量W:=DMA(MA(JL,5),D);
BOLL:=MA(量W,20);
UP:=BOLL+2*STD(量W,20);
DN:=BOLL-2*STD(量W,20);
TTR:=MA(ABS(REF(量W,1)-量W),15);
VM:=MA(量W,6);
VU:=VM+2*TTR;
VD:=VM-2*TTR;
DRAWBAND(UP,RGB(0,100,150),DN,RGB(0,100,150));
DRAWBAND(VU,RGB(120,20,120),VD,RGB(120,20,120));
量能趋势:量W,COLORYELLOW,LINETHICK2;

警戒线:MA(A,180),COLORCYAN,DOTLINE;



{量能平台突破}

N天内:=21;
成交量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL) ,COLORFFFFFF;
价新高:=HHV(H,N天内)=H,COLORFFFFFF;
量新高:=HHV(成交量,N天内)=成交量,COLORFFFFFF;
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
去除停牌:=DYNAINFO(4)>0;
{ K线60日上要求 AND AND AND }
量能平台突破:量新高 AND 价新高 AND BARSCOUNT(CLOSE)>200 AND S2 AND S3 AND 去除停牌 ,COLORCYAN,LINETHICK2;

{四量副图}
MID9:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线1:=(20*MID9+19*REF(MID9,1)+18*REF(MID9,2)+17*REF(MID9,3)+16*REF(MID9,4)+15*REF(MID9,5)+14*REF(MID9,6)+13*REF(MID9,7)+12*REF(MID9,8)+11*REF(MID9,9)+10*REF(MID9,10)+9*REF(MID9,11)+8*REF(MID9,12)+7*REF(MID9,13)+6*REF(MID9,14)+5*REF(MID9,15)+4*REF(MID9,16)+3*REF(MID9,17)+2*REF(MID9,18)+REF(MID9,20))/210,COLORCYAN{COLORWHITE};
马线1:=MA(牛线1,6),COLORLIMAGENTA{COLORBLUE};
STICKLINE(C>牛线1,-1.3,-1.6,4,0),COLOR000099{COLOR017700},LINETHICK2;
STICKLINE(C<马线1,-1.3,-1.6,4,0),COLOR017700{COLOR000099},LINETHICK2;
STICKLINE(牛线1>=C AND C>=马线1,-1.3,-1.6,8,0),,COLOR017700{COLOR000099},LINETHICK2;
DRAWTEXT(ISLASTBAR=1,IF(V>=0,-1.45,0),'机构'),COLORYELLOW;

MID1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(20*MID1+19*REF(MID1,1)+18*REF(MID1,2)+17*REF(MID1,3)+16*REF(MID1,4)+15*REF(MID1,5)+14*REF(MID1,6)+13*REF(MID1,7)+12*REF(MID1,8)+11*REF(MID1,9)+10*REF(MID1,10)+9*REF(MID1,11)+8*REF(MID1,12)+7*REF(MID1,13)+6*REF(MID1,14)+5*REF(MID1,15)+4*REF(MID1,16)+3*REF(MID1,17)+2*REF(MID1,18)+REF(MID1,20))/210,COLORCYAN{COLORWHITE};
GB:=(C-牛线);
换手:=V*100/CAPITAL;
主:=MA(换手,5);
大:=MA(换手,12);
中:=MA(换手,34);
散:=MA(换手,55);
均:=(主+大+中+散)/4;
GBB:=(主-散);
GB1:=GB+GBB;
STICKLINE(GB1>=0,-0.5,-0.8,4,0),COLOR000099{COLOR017700},LINETHICK2;
STICKLINE(GB1<0,-0.5,-0.8,4,0),COLOR017700{COLOR000099},LINETHICK2;
DRAWTEXT(ISLASTBAR=1,IF(V>=0,-0.65,0),'散户'),COLORYELLOW;


Q:=EMA(V,5);
Q1:=EMA(V,50);
OBV:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);
OBV1:=EMA(OBV,5);
OBV2:=EMA(OBV,50);
W:=(Q-Q1)*0.00001;
W1:=(OBV1-OBV2)*0.000001;
W2:=W+W1;
STICKLINE(W2>=0,-0.9,-1.2,4,0),COLOR000099{COLOR017700},LINETHICK2;
STICKLINE(W2<0,-0.9,-1.2,4,0),COLOR017700{COLOR000099},LINETHICK2;
DRAWTEXT(ISLASTBAR=1,IF(V>=0,-1.05,0),'游资'),COLORYELLOW;


MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
MADKX:=MA(DKX,6);
MDD:=(DKX-MADKX)*1.2;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,6)-EMA(V1,55);
V3:=EMA(V2,6);
V5:=(V2-V3)*0.06;
V6:=MDD+V5;
STICKLINE(V6>=0,-1.7,-2,4,0),COLOR000099{COLOR017700},LINETHICK2;
STICKLINE(V6<0,-1.7,-2,4,0),COLOR017700{COLOR000099},LINETHICK2;
DRAWTEXT(ISLASTBAR=1,IF(V>=0,-1.85,0),'主力'),COLORYELLOW;

{趋势形成}
VAR12:=(HIGH - LOW);
VAR3:=ABS((OPEN - CLOSE));
VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);
VAR6:=((VAR3 / VAR12) * VOL);
VAR7:=((VAR4 / VAR12) * VOL);
VAR8:=((VAR5 / VAR12) * VOL);
VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));
短趋势线:=MA(C,13);
趋势形成:-(((((VAR6 > (MA(VOL,5) * 2)) AND 短趋势线>REF(短趋势线 ,1) AND (VAR6 >= VAR7)) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)) OR ((VOL > (MA(VOL,5) * 3)) AND VARB AND 短趋势线>REF(短趋势线 ,1))),COLORLIBLUE,LINETHICK2;

{主力与散户}
M:=55;
N:=21;{有用34的}
散户: (HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))-2,COLORFFFF00,LINETHICK2;
RSVX:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
KK:=SMA(RSVX,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
主力:EMA(JJ,6)/100-2,COLORYELLOW,LINETHICK2;


{庄家控盘
1.黄色柱体为庄家低控盘,即控盘程度>=50;
2.红色柱体为庄家中控盘,即控盘程度>=60;
3.紫色柱体为庄家高控盘,即控盘程度>=80;
}

AAA:=(3*CLOSE+OPEN+HIGH+LOW)/6;
MA12:=EMA(AAA,12);
MA36:=EMA(AAA,36);
MA108:=EMA(AAA,108);
MA250:=EMA(AAA,250);
控盘度:(EMA(AAA,12)-REF(EMA(AAA,36),1))/REF(EMA(AAA,36),1)*100+50,NODRAW;
低控盘:IF(控盘度>=50 AND 控盘度<60,控盘度,0),COLORYELLOW,NODRAW;
中控盘:IF(控盘度>=60 AND 控盘度<80,控盘度,0),COLORRED,NODRAW;
高控盘:IF(控盘度>=80 AND 控盘度<100,控盘度,0),COLORMAGENTA,NODRAW;
STICKLINE( 控盘度>=50,-2.5,-控盘度/10+2.5,2,0),COLORYELLOW;
STICKLINE( 控盘度>=60,-3.5,-控盘度/10+2.5,2,0),COLORRED;
STICKLINE( 控盘度>=80,-5.5,-控盘度/10+2.5,2,0),COLORMAGENTA;




未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:BACKSET
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
该公式包含未来函数:XMA
该公式包含未来函数:DCLOSE

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

{天穹缠论主图 主图源码如下}ZCMN赋值:2370.00
ZCMY赋值:2102.00
ZCMR赋值:2294.00
ZCMB赋值:2063.00
DRAWGBK(收盘价>0,RGB(0,10,10),RGB(0,10,10),0,1,0)
当满足条件CURRBARSCOUNT=1时,在横轴0.4纵轴0位置书写文字
X_1赋值:收盘价-LOW
X_2赋值:最高价-LOW
X_3赋值:收盘价-最高价
X_4赋值:IF(最高价>LOW,(X_1/X_2+X_3/X_2)*成交量,0)
X_5赋值:10的X_4日累和/10000
X_6赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
X_7赋值:X_6的9日指数移动平均
X_8赋值:(X_6-X_7)*2
X_9赋值:UPNDAY(X_8,1)
X_10:=5日前的最高价=11日内最高价最高值
X_11:=5日前的LOW=11日内LOW最低值
X_12:=BACKSET(X_10,6)>BACKSET(X_10,5)
X_13:=BACKSET(X_11,6)>BACKSET(X_11,5)
X_14:=IF(上次X_12距今天数=BARSLAST(X_13) AND 收盘价的5日简单移动平均>收盘价的10日简单移动平均,X_12,IF(BARSLAST(X_13)>上次X_12距今天数,X_12,0))
X_15:=IF(上次X_12距今天数=BARSLAST(X_13) AND 收盘价的10日简单移动平均>收盘价的5日简单移动平均,X_13,IF(上次X_12距今天数>BARSLAST(X_13),X_13,0))
X_16:=X_14 AND 最高价=HHV(最高价,上次X_15距今天数)
X_17:=X_15 AND LOW=LLV(LOW,上次X_14距今天数)
X_18:=LOW>1日前的最高价 AND DAY!=1日前的DAY
X_19:=最高价<1日前的LOW AND DAY!=1日前的DAY
X_20:=REF(最高价,上次X_16距今天数)
X_21:=REF(LOW,上次X_16距今天数)
X_22:=REF(最高价,上次X_16距今天数+1)
X_23:=REF(LOW,上次X_16距今天数+1)
X_24:=REF(LOW,上次X_16距今天数+2)
X_25:=REF(最高价,上次X_17距今天数+2)
X_26:=REF(最高价,上次X_17距今天数)
X_27:=REF(LOW,上次X_17距今天数)
X_28:=REF(最高价,上次X_17距今天数+1)
X_29:=REF(LOW,上次X_17距今天数+1)
X_30:=IF(X_22X_31:=IF(X_29>X_26,X_26,IF(X_26>=X_28,X_25,X_28))
X_32:=X_20>X_31 AND X_16
X_33:=X_27X_34:=X_32 AND X_20>X_26 AND X_21>X_27 AND X_23>X_27
X_35:=X_33 AND X_27X_36:=最高价<=1日前的最高价 AND LOW>=1日前的LOW OR (最高价>=1日前的最高价 AND LOW<=1日前的LOW)
X_37:=COUNT(X_36,上次X_17距今天数)
X_38:=COUNT(X_36,上次X_16距今天数)
X_39:=COUNT(X_18,上次X_17距今天数)
X_40:=COUNT(X_19,上次X_16距今天数)
X_41:=IF(X_37>0,X_37+2,IF(X_38,X_38+2,3))
X_42:=IF(X_39,X_41-X_39,IF(X_40,X_41-X_40,X_41))
X_43:=X_34 AND 上次X_35距今天数>X_42
X_44:=X_35 AND 上次X_34距今天数>X_42
X_45:=X_16 AND REF(最高价,上次X_16距今天数)>=REF(最高价,BARSLAST(X_43)) AND BARSLAST(X_44)>BARSLAST(X_43) OR (X_32 AND COUNT(X_18,BARSLAST(X_33))>0 AND REF(最高价,BARSLAST(X_32))>REF(最高价,BARSLAST(X_43)))
X_46:=X_17 AND REF(LOW,上次X_17距今天数)<=REF(LOW,BARSLAST(X_44)) AND BARSLAST(X_43)>BARSLAST(X_44) OR (X_33 AND COUNT(X_19,BARSLAST(X_32))>0 AND REF(LOW,BARSLAST(X_33))X_47:=IF(上次X_46距今天数>BARSLAST(X_45),REF(最高价,BARSLAST(X_45)),REF(最高价,上次X_46距今天数))
X_48:=IF(上次X_45距今天数>BARSLAST(X_46),REF(LOW,BARSLAST(X_46)),REF(LOW,上次X_45距今天数))
X_49:=X_45 AND 最高价=HHV(X_47,上次X_46距今天数+1) AND 最高价>1日前的最高价 AND 上次X_46距今天数>BARSLAST(X_45)
X_50:=X_46 AND LOW=LLV(X_48,上次X_45距今天数+1) AND LOW<1日前的LOW AND 上次X_45距今天数>BARSLAST(X_46)
X_51:=X_49 OR (X_16 AND REF(最高价,上次X_16距今天数)>REF(最高价,BARSLAST(X_49)) AND BARSLAST(X_50)>BARSLAST(X_49))
X_52:=X_50 OR (X_17 AND REF(LOW,上次X_17距今天数)BARSLAST(X_50))
输出趋势向上:DRAWLINE(X_52,LOW,X_51,最高价,0),DOTLINE,COLORYELLOW,LINETHICK2
输出趋势向下:DRAWLINE(X_51,最高价,X_52,LOW,0),DOTLINE,COLORWHITE,LINETHICK2
输出找顶线:DRAWLINE(X_51,最高价,1日前的X_51,1日前的最高价,1),COLORGREEN
输出找底线:DRAWLINE(X_52,LOW,1日前的X_52,1日前的LOW,1),COLORRED
DRAWNUMBER(X_52,LOW*0.99,LOW),COLORRED
DRAWNUMBER(X_51,最高价*1,最高价),COLORLICYAN
X_53:=X_52 OR X_51
X_54:=IF(X_52>X_51,LOW,IF(X_52如果收盘价>找顶线返回最高价否则返回DRAWNULL
如果收盘价<找底线返回LOW否则返回DRAWNULL
如果收盘价>找底线 AND 收盘价<找顶线返回LOW否则返回DRAWNULL
X_58:=CURRBARSCOUNT=1
输出动态线过顶:DRAWLINE(X_53,X_54,X_58,X_55,0),DOTLINE,COLORRED,LINETHICK2
输出动态线破底:DRAWLINE(X_53,X_54,X_58,X_56,0),DOTLINE,COLORGREEN,LINETHICK2
动态线破底中跌:DRAWLINE(X_53,X_54,X_58,X_57,0),DOTLINE, 画淡蓝色,LINETHICK2
X_59:=REFDATE(REF(50日内最高价最高值,5),DATE)
X_60:=REFDATE(REF(50日内LOW最低值,5),DATE)
X_61:=(X_59+X_60)/2
X_62:=X_59*1.04
X_63:=X_60*0.98
X_64:=(X_62-X_63)/13*1.2
6
7
8
9
X_65:=NOT(NAMELIKE(3) OR NAMELIKE(4) OR NAMELIKE(5) OR HYSYL OR HYSYL OR HYSYL OR HYSYL)
X_66:=DMA(AMOUNT/(100*成交量),成交量/当前流通股本)
如果X_66X_60返回X_66否则返回DRAWNULL
X_67:=收盘价的3日指数移动平均,2)
X_68:=EMA(SLOPE(收盘价,21)*20+收盘价,42)
STICKLINE(收盘价<1日前的收盘价 OR 收盘价STICKLINE(收盘价>=1日前的收盘价 OR 收盘价>OPEN,LOW,最高价,0,1),COLORRED
STICKLINE(OPEN>收盘价 AND 收盘价<1日前的收盘价,收盘价,OPEN,3.05,0),COLORCCCC00
STICKLINE(OPEN<=收盘价 AND (收盘价<1日前的收盘价 OR 收盘价STICKLINE(OPEN>收盘价 AND 收盘价>=1日前的收盘价,OPEN,收盘价,3.05,0),COLORRED
STICKLINE(OPEN<=收盘价 AND (收盘价>=1日前的收盘价 OR 收盘价>OPEN),OPEN,收盘价,3.05,1),COLORRED
当满足条件X_67<=X_68时,在LOW和最高价之间画柱状线
当满足条件X_67>=X_68时,在LOW和最高价之间画柱状线
当满足条件OPEN>收盘价 AND X_67当满足条件OPEN<=收盘价 AND X_67当满足条件OPEN>收盘价 AND X_67>X_68时,在OPEN和收盘价之间画柱状线
当满足条件OPEN<=收盘价 AND X_67>X_68时,在OPEN和收盘价之间画柱状线
X_69:=(收盘价+最高价+OPEN+LOW)/4
X_70:=XX_69的20日简单移动平均*(1+80/1000)
X_71:=收盘价>X_70 OR (最高价>X_70 AND OPEN>收盘价)
当满足条件X_71时,在收盘价和OPEN之间画柱状线
X_72:=成交量>=1日前的成交量*1.91 AND 收盘价>1日前的收盘价*1.01
STICKLINE(X_72,收盘价,OPEN+(收盘价-OPEN)/2,1,0),COLORYELLOW
X_73:=20
X_74:=收盘价的X_73日简单移动平均
X_75:=POW(收盘价-X_74,2)
X_76:=X_75的X_73日简单移动平均
X_77:=SQRT(X_76)
X_78:=X_74+2*X_77
X_79:=X_74-2*X_77
X_80:=1日前的X_74
X_81:=1日前的X_78
X_82:=1日前的X_79
X_83:=X_64
X_84:=X_83
X_85:=MA(100*(收盘价-34日内收盘价最低值)/(34日内最高价最高值-34日内LOW最低值),5)-20
X_86:=100-3*SMA((收盘价-75日内LOW最低值)/(75日内最高价最高值-75日内LOW最低值)*100,20,1)+2*SMA(SMA((收盘价-75日内LOW最低值)/(75日内最高价最高值-75日内LOW最低值)*100,20,1),15,1)
X_87:=100-3*SMA((OPEN-75日内LOW最低值)/(75日内最高价最高值-75日内LOW最低值)*100,20,1)+2*SMA(SMA((OPEN-75日内LOW最低值)/(75日内最高价最高值-75日内LOW最低值)*100,20,1),15,1)
X_88:=X_86<1日前的X_87 AND 成交量>1日前的成交量 AND 收盘价>1日前的收盘价
X_89:=IF(X_88 AND 统计30日满足X_88的天数=1,X_84,X_84)
X_90:=IF(X_88 AND 统计30日满足X_88的天数=1,1,0)
DRAWTEXT(X_88 AND 统计30日满足X_88的天数=1,LOW-X_89,10),COLORMAGENTA
X_91:=(2*收盘价+最高价+LOW)/3
X_92:=X_91的3日指数移动平均
X_93:=X_92的3日指数移动平均
X_94:=X_93的3日指数移动平均
X_95:=(X_94-1日前的X_94)/1日前的X_94*100
X_96:=X_95的1日简单移动平均
X_97:=X_95的2日简单移动平均
X_98:=X_96上穿X_97
X_99:=X_96>=X_97
X_100:=X_97上穿X_96
X_101:=X_96<=X_97
X_102:=CROSS(ZIG(3,10),REF(ZIG(3,10),1))
X_103:=ZIG(3,10)>REF(ZIG(3,10),1)
X_104:=CROSS(REF(ZIG(3,10),1),ZIG(3,10))
X_105:=ZIG(3,10)<=REF(ZIG(3,10),1)
X_106:=X_89
X_107:=X_98 AND (X_102 OR 1日前的X_102 OR 2日前的X_102) OR (X_102 AND X_99) AND X_96<2
X_108:=X_98 AND (X_102 OR 1日前的X_102 OR 2日前的X_102) OR (X_102 AND X_99) AND X_96<2 AND 2的趋势向下>0日累和<2 AND 找底线>0 AND 5的趋势向上>0日累和<5
X_109:=X_103 AND X_99
X_110:=LOW>REF(LOW,上次REF(X_108,1距今天数)+1)
X_111:=LOW<=REF(LOW,上次REF(X_108,1距今天数)+1)
X_112:=X_100 AND (X_104 OR 1日前的X_104 OR 2日前的X_104) OR (X_104 AND (X_100 OR 1日前的X_100 OR 2日前的X_100 OR X_101)) AND 3的趋势向上>0日累和<3 AND 找顶线 AND 趋势向下 AND 5的趋势向下>0日累和<5
X_113:=X_105 AND X_101
当满足条件X_108时,在LOW-X_64和1之间画图标
如果X_112返回X_64否则返回X_64
当满足条件X_112时,在最高价+X_114和2之间画图标
X_115:=AMOUNT/成交量
X_116:=LOWX_117:=(收盘价-1日前的收盘价)/1日前的收盘价*100>1.2
X_118:=LOW<收盘价的5日简单移动平均*0.921
X_119:=成交量<成交量的5日简单移动平均*1.5
X_120:=X_116 AND X_117 AND X_118 AND X_119
X_121:=D收盘价的12日指数移动平均-D收盘价的26日指数移动平均
X_122:=X_121的9日指数移动平均
X_123:=(X_121-X_122)*2*60
X_124:=CROSS(X_123-1日前的X_123,15)
X_125:=收盘价的3日指数移动平均
X_126:=收盘价的5日指数移动平均
X_127:=收盘价的7日指数移动平均
X_128:=收盘价的12日指数移动平均
X_129:=收盘价的20日指数移动平均
X_130:=收盘价的50日指数移动平均
X_131:=X_125上穿X_129 AND 收盘价>OPEN AND 收盘价>1日前的收盘价 AND 收盘价/1日前的收盘价>=1.018
X_132:=1日前的LOW
X_133:=SMA(LOW-X_132的绝对值,3,1)/SMA(LOW-X_132和0较大值,3,1)*100
如果收盘价*1.3返回X_133*10否则返回X_133/10
X_135:=30日内LOW最低值
X_136:=30日内X_134最高值
X_137:=IF(收盘价的58日简单移动平均,1,0)
X_138:=EMA(IF(LOW<=X_135,(X_134+X_136*2)/2,0),3)/618*X_137
如果X_138>100返回50否则返回X_138
X_140:=收盘价-1日前的收盘价
X_141:=100*X_140的6日指数移动平均,6)/EMA(EMA(X_140的绝对值,6),6)
X_142:=IF(2日内X_141最低值=7日内X_141最低值 AND 统计2日满足X_141<0的天数 AND CROSS(X_141,X_141的2日简单移动平均),1,0)
X_143:=X_142=1的5过滤
X_144:=收盘价的3日简单移动平均
X_145:=ATAN((X_144/1日前的X_144-1)*100)*180/3.1416
X_146:=X_145的2日简单移动平均
X_147:=IF(X_124 OR X_131 OR X_143 OR X_120,IF(X_146>=(-76.199997) AND X_146<=(-57),11,IF(X_146>=(-50) AND X_146<=(-44),12,IF(X_146>=(-39) AND X_146<=(-35),13,IF(X_146>=(-28) AND X_146<=(-10),14,IF(X_139>0.1,15,16))))),17)
X_148:=IF(X_124 OR X_131 OR X_143 OR X_120,IF(X_146>=(-76.199997) AND X_146<=(-57),30,IF(X_146>=(-50) AND X_146<=(-44),70,IF(X_146>=(-39) AND X_146<=(-35),60,IF(X_146>=(-28) AND X_146<=(-10),80,IF(X_139>0.1,2,29))))),0)
X_149:=IF(X_110,18,IF(X_111,19,1))
如果X_108返回X_106+X_64否则返回X_106
如果X_108返回X_150+X_64否则返回X_150
当满足条件X_108时,在LOW-X_151和X_147位置书写文字
当满足条件X_108时,在LOW-X_150和X_149位置书写文字
X_152:=REF((OPEN+最高价+LOW+2*收盘价)/5,1)
X_153:=SMA(收盘价-X_152和0较大值,3,1)/SMA(收盘价-X_152的绝对值,3,1)*100
X_154:=88上穿X_153
如果X_154返回X_114+X_64否则返回X_114
当满足条件X_154时,在最高价+X_155和20位置书写文字
X_156:=(收盘价+最高价+OPEN+LOW)/4
X_157:=XX_156的20日简单移动平均*(1+80/1000)
X_158:=IF(收盘价上穿X_157,1,0)
如果X_158返回X_155+X_64否则返回X_155
当满足条件X_158时,在最高价+X_159和21位置书写文字
X_160:=收盘价的5日简单移动平均
X_161:=收盘价的10日简单移动平均
X_162:=收盘价的20日简单移动平均
X_163:=收盘价的30日简单移动平均
X_164:=ATAN((X_160/1日前的X_160-1)*100)*180/3.1416
X_165:=(收盘价-X_163)/X_163*100
X_166:=FILTER(统计5日满足30上穿X_164的天数>=1 AND (收盘价>X_163 OR OPEN>X_163) AND X_160<1日前的X_160 AND X_165<1日前的X_165 AND X_161<1日前的X_161,10)
如果X_166返回X_159+X_64否则返回X_159
当满足条件X_166时,在最高价+X_167和22位置书写文字
X_168:=X_167
X_169:=收盘价的13日指数移动平均,13)
X_170:=(X_169-1日前的X_169)/1日前的X_169*1000
X_171:=X_170<0
X_172:=X_170>1日前的X_170 AND X_170>0
X_173:=DYNAINFO(11)
X_174:=21
X_175:=8
X_176:=3
X_177:=(收盘价的X_175日指数移动平均-收盘价的X_174日指数移动平均)*50
X_178:=X_177的X_176日指数移动平均
X_179:=(收盘价-X_173)/X_173<(-0.03)
X_180:=(收盘价-X_173)/X_173<(-0.03)
X_181:=LAST(X_173>=1日前的X_173,5,1) AND (收盘价-X_173)/X_173<0.005
X_182:=(收盘价-X_173)/X_173>0.005
X_183:=X_170<1日前的X_170 AND X_170>0.5
X_184:=X_170>0
X_185:=X_170>1日前的X_170 AND X_170<(-0.2)
X_186:=X_170>1日前的X_170 AND X_170<0
X_187:=X_177上穿X_178 AND X_177<(-0.3)
X_188:=X_177上穿X_178 AND X_177<(-0.1)
X_189:=X_178上穿X_177
X_190:=X_178上穿X_177 AND X_177>1.618
X_191:=X_180 AND X_185 AND X_187的13过滤
X_192:=X_191的30过滤
如果X_192返回X_151否则返回X_151
X_194:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3)
X_195:=IF(X_194 AND 统计30日满足X_194的天数=1,X_193,X_193)
X_196:=X_195
X_197:=((收盘价-收盘价的6日简单移动平均)/收盘价的6日简单移动平均*100+(收盘价-收盘价的24日简单移动平均)/收盘价的24日简单移动平均*100+(收盘价-收盘价的32日简单移动平均)/收盘价的32日简单移动平均*100)/3
X_198:=IF(X_197>20 AND FILTER(X_197<1日前的X_197,5),X_168+X_64,X_168)
DRAWTEXT(X_197>20 AND FILTER(X_197<1日前的X_197,5),最高价+X_198,25),COLORCYAN
X_199:=IF(X_197<(-20) AND FILTER(X_197>1日前的X_197,5),X_196+X_64,X_196)
DRAWTEXT(X_197<(-20) AND FILTER(X_197>1日前的X_197,5),LOW-X_199,26)
X_200:=IF(FILTER(X_197<(-9) AND X_197>1日前的X_197,18),X_199+X_64,X_199)
DRAWTEXT(FILTER(X_197<(-9) AND X_197>1日前的X_197,18),LOW-X_200,27),COLORWHITE
X_201:=(收盘价-9日内LOW最低值)/(9日内最高价最高值-9日内LOW最低值)*100
X_201的3日[1日权重]移动平均
X_202的3日[1日权重]移动平均
X_204:=3*X_202-2*X_203
X_205:=收盘价的12日指数移动平均-收盘价的26日指数移动平均
X_206:=X_205的9日指数移动平均
X_207:=2*(X_205-X_206)
X_208:=IF(收盘价=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(成交量+0.01)/100)
X_209:=IF(X_205>=1日前的X_205 AND (X_202>=1日前的X_202 OR X_202>X_203),10,0)
X_210:=IF(X_205<1日前的X_205 AND X_202<=1日前的X_202,10,0)
X_211:=IF(X_210的15过滤,X_198+X_64,X_198)
DRAWTEXT(X_210的15过滤,最高价+X_211,28),COLORGREEN
X_212:=1/收盘价计算的获利盘比例
X_213:=收盘价的13日简单移动平均
X_214:=100-(收盘价-X_213的绝对值/X_213*100)
X_215:=120日内LOW最低值
X_216:=120日内最高价最高值
X_217:=(X_216-X_215)/100
X_218:=SMA((收盘价-X_215)/X_217,20,1)
X_219:=SMA((OPEN-X_215)/X_217,20,1)
X_218的10日[1日权重]移动平均
X_219的10日[1日权重]移动平均
X_222:=100-X_221
X_223:=100-X_220
X_224:=MA((-100)*(34日内最高价最高值-收盘价)/(34日内最高价最高值-34日内LOW最低值),19)
X_225:=X_224+100
X_226:=EMA((-100)*(34日内最高价最高值-收盘价)/(34日内最高价最高值-34日内LOW最低值),4)
X_227:=X_226+100
X_228:=MA(100*(收盘价-34日内收盘价最低值)/(34日内最高价最高值-34日内LOW最低值),5)-20
X_229:=(最高价+LOW+收盘价)/3
X_230:=(X_229-X_229的14日简单移动平均)/(0.015*AVEDEV(X_229,14))
X_231:=(X_229-X_229的70日简单移动平均)/(0.015*AVEDEV(X_229,70))
如果X_230>=150 AND X_230<200 AND X_231>=150 AND X_231<200返回10否则返回0
X_233:=IF(X_230<=(-150) AND X_230>(-200) AND X_231<=(-150) AND X_231>(-200),(-10),X_232)
X_234:=(收盘价-收盘价的13日简单移动平均)/收盘价的13日简单移动平均*100
X_235:=100-X_234的绝对值
如果X_235<90返回X_235否则返回100
如果X_228>0返回X_228否则返回0
X_238:=IF(X_231>=200 AND X_230>=150,15,IF(X_231<=(-200) AND X_230<=(-150),(-15),X_233))+60
X_239:=X_237>48 AND X_238>60 AND X_236<100
X_240:=IF(X_239 AND 统计30日满足X_239的天数=1,X_211+X_64,X_211)
DRAWTEXT(X_239 AND 统计30日满足X_239的天数=1,最高价+X_240,29), 画淡蓝色
X_241:=收盘价>4日前的收盘价
X_242:=BARSLASTCOUNT(X_241)
X_243:=X_242=9
X_244:=ISLASTBAR AND BETWEEN(X_242,5,8)
X_245:=(BACKSET(X_243>0,9) OR BACKSET(X_244>0,X_242))*X_242
DRAWTEXT(X_245>0,最高价*1.02,VAR2STR(X_245,0)),COLORMAGENTA
当满足条件X_242=9时,在最高价*1.02和30位置书写文字
X_246:=收盘价<4日前的收盘价
X_247:=BARSLASTCOUNT(X_246)
X_248:=1日前的X_247=8 AND X_247>1日前的X_247
X_249:=REF(BETWEEN(X_247,5,8),1) AND X_247X_250:=ISLASTBAR AND BETWEEN(X_247,6,8)
X_251:=(BACKSET(X_248>0,9) OR BACKSET(X_249>0,X_247+1)*0 OR BACKSET(X_250>0,X_247))*X_247
DRAWTEXT(X_251>0,最高价*1.01,VAR2STR(X_251,0)),COLORGREEN
当满足条件X_247=9时,在最高价*1.01和30位置书写文字
X_252:=IF(收盘价的5日简单移动平均>=收盘价的10日简单移动平均 AND 收盘价的10日简单移动平均>=收盘价的20日简单移动平均 AND 收盘价的20日简单移动平均>=收盘价的30日简单移动平均 AND 收盘价的30日简单移动平均>=收盘价的30日简单移动平均 AND 收盘价的30日简单移动平均>=收盘价的30日简单移动平均 AND 收盘价的5日简单移动平均>LLV(收盘价的5日简单移动平均,5),1,0)
X_253:=IF(SUM(CROSS(收盘价的10日简单移动平均,收盘价的5日简单移动平均) OR CROSS(收盘价的20日简单移动平均,收盘价的5日简单移动平均),7)>1,1,0)
X_254:=IF(收盘价的5日简单移动平均<=收盘价的10日简单移动平均 AND 收盘价的10日简单移动平均<=收盘价的20日简单移动平均 AND 收盘价的20日简单移动平均<=收盘价的30日简单移动平均 AND 收盘价的5日简单移动平均>LLV(收盘价的5日简单移动平均,5),1,0)
X_255:=MIN(收盘价的5日简单移动平均,MIN(收盘价的10日简单移动平均,MIN(收盘价的20日简单移动平均,MIN(收盘价的30日简单移动平均,MIN(收盘价的30日简单移动平均,收盘价的30日简单移动平均)))))
X_256:=MAX(收盘价的5日简单移动平均,MAX(收盘价的10日简单移动平均,MAX(收盘价的20日简单移动平均,MAX(收盘价的30日简单移动平均,MAX(收盘价的30日简单移动平均,收盘价的30日简单移动平均)))))
X_257:=X_256/X_255<1.08
X_258:=X_256/X_255>1.1
X_259:=X_257 AND (收盘价的5日简单移动平均>LLV(收盘价的5日简单移动平均,5) OR X_252=1) AND INTPART(X_66)=HHV(INTPART(X_66),20) OR (INTPART(X_66)=LLV(INTPART(X_66),20) AND 收盘价<收盘价的30日简单移动平均 AND X_254=1 AND X_258=1)
X_260:=IF(X_209的15过滤 OR (X_67上穿X_68 AND X_259),X_200+X_64,X_200)
DRAWTEXT(X_209=10 AND LOW>1日前的LOW AND X_67上穿X_68 AND 收盘价>1日前的收盘价 AND X_223>50 AND X_225=10日内X_225最高值 AND (X_257 AND HHV(收盘价的30日简单移动平均,20)/收盘价的30日简单移动平均>0.98 AND HHV(收盘价的30日简单移动平均,20)/收盘价的30日简单移动平均<1.01 AND 收盘价>收盘价的30日简单移动平均) AND 7的X_225上穿X_227日累和=1 AND 7的X_227上穿X_225日累和=1 AND X_225=10日内X_225最高值,LOW-X_260,31),COLORYELLOW,LINETHICK2
DRAWTEXT(X_209上穿5 AND (X_257 AND 收盘价的30日简单移动平均=HHV(收盘价的30日简单移动平均,5) AND 收盘价>收盘价的30日简单移动平均 AND X_252 OR (收盘价的30日简单移动平均=LLV(收盘价的30日简单移动平均,5) AND X_254=1 AND X_258)) AND X_67上穿X_68 AND 收盘价/1日前的收盘价>1.05 AND DYNAINFO(37)<0.2 AND DYNAINFO(37)>0.02 AND (X_225>70 AND HHV(X_225,7)-LLV(X_225,7)<3 OR (X_225<85 AND HHV(X_225,7)=X_225 AND X_225-LLV(X_225,10)>20)),LOW-X_260-X_64,32),COLORCYAN,LINETHICK2
DRAWTEXT(X_209上穿5 AND 7的X_225上穿X_227日累和=1 AND 7日内X_225最高值-X_225<2 AND (X_225>20 AND X_225<60 AND 7日内X_225最高值-7日内X_227最低值>7日内X_225最高值/3 AND (X_257 AND 收盘价的30日简单移动平均=HHV(收盘价的30日简单移动平均,5) AND 收盘价>收盘价的30日简单移动平均 OR (收盘价的30日简单移动平均=LLV(收盘价的30日简单移动平均,5) AND X_254=1 AND X_258)) OR (X_225>60 AND 收盘价=最高价 AND X_67上穿X_68 AND X_252 AND CROSS(收盘价,收盘价的20日简单移动平均))) AND X_254=0,LOW-X_260-X_64,32),COLORYELLOW,LINETHICK2
DRAWTEXT(X_209上穿5 AND X_252 AND X_67上穿X_68 AND 收盘价/OPEN>=1.05 AND 2的X_225上穿X_227日累和>=1 AND 2的X_227上穿X_225日累和>=1 AND X_225>50 AND X_225=20日内X_225最高值 AND REF(HHV(收盘价的5日简单移动平均,5),1)/LLV(收盘价的5日简单移动平均,4)<1.04 AND CROSS(收盘价,收盘价的10日简单移动平均),LOW,33),COLORYELLOW,LINETHICK2
X_261:=1日前的OPEN
X_262:=(1日前的收盘价-X_261的绝对值/X_261)
X_263:=(1日前的最高价-X_261的绝对值/X_261)
X_264:=(1日前的LOW-X_261的绝对值/X_261)
X_265:=(X_262+X_263+X_264的绝对值/3)
X_266:=OPEN*X_265
X_267:=OPEN-X_266
X_268:=OPEN+X_266
X_269:=OPEN
X_270:=1日前的OPEN
X_271:=最高价
X_272:=1日前的最高价
X_273:=LOW
X_274:=1日前的LOW
X_275:=收盘价
X_276:=1日前的收盘价
X_277:=X_272
X_278:=X_274
X_279:=X_270
X_280:=X_276
X_281:=(X_277+X_278+X_279+2*X_280)/5
X_282:=X_281+(X_277-X_278)
X_283:=2*X_281-X_278
X_284:=2*X_281-X_277
X_285:=X_281-(X_277-X_278)
X_286:=X_282
X_287:=X_283
X_288:=X_284
X_289:=X_285
X_290:=(X_281+X_286+X_287+X_288+X_289)/5
X_291:=X_290
X_292:=(X_290+X_269)/2
X_293:=(X_267+X_292)/2
X_294:=X_293
X_295:=27
X_296:=0.03
X_297:=0.1
X_298:=1
X_299:=1日前的最高价/2日前的收盘价的X_295日简单移动平均*1日前的收盘价
当满足条件1时,在横轴X_297纵轴X_298位置书写文字
DRAWNUMBER_FIX(1,X_297+0.08,X_298,0,CONST(X_294)),COLORYELLOW
当满足条件1时,在横轴X_297+0.15纵轴X_298位置书写文字
当满足条件1时,在横轴X_297+0.4纵轴X_298位置书写文字
DRAWNUMBER_FIX(1,X_297+0.4+0.08,X_298,0,CONST(X_299)),COLORWHITE
当满足条件1时,在横轴X_297+0.4+0.15纵轴X_298位置书写文字
当满足条件1时,在横轴X_297+0.2纵轴X_298位置书写文字
X_300:=(X_267+X_294)/2
DRAWNUMBER_FIX(1,X_297+0.2+0.08,X_298,0,CONST(X_300)),COLOR4080FF
当满足条件1时,在横轴X_297+0.2+0.15纵轴X_298位置书写文字
当满足条件1时,在横轴X_297+0.6纵轴X_298位置书写文字
X_301:=(X_268+X_299)/2
DRAWNUMBER_FIX(1,X_297+0.6+0.08,X_298,0,CONST(X_301)),COLOR4080FF
当满足条件1时,在横轴X_297+0.6+0.15纵轴X_298位置书写文字
X_302:=XXX收盘价的1日指数移动平均的2日简单移动平均,2),2)
X_303:=EMA((X_302-1日前的X_302)/1日前的X_302,1)*1000
X_304:=XX_303的11日简单移动平均
X_305:=X_304的11日指数移动平均
X_306:=X_304+X_305的1日指数移动平均-XX_304-X_305的2日简单移动平均
X_307:=XX_306的11日简单移动平均
X_308:=3*SMA((收盘价-27日内LOW最低值)/(27日内最高价最高值-27日内LOW最低值)*100,5,1)-2*SMA(SMA((收盘价-27日内LOW最低值)/(27日内最高价最高值-27日内LOW最低值)*100,5,1),3,1)
X_309:=3*SMA((OPEN-27日内LOW最低值)/(27日内最高价最高值-27日内LOW最低值)*100,5,1)-2*SMA(SMA((OPEN-27日内LOW最低值)/(27日内最高价最高值-27日内LOW最低值)*100,5,1),3,1)
X_310:=MA(收盘价*0.95计算的获利盘比例*100,3)
X_311:=收盘价的3日指数移动平均,2)
X_312:=EMA(SLOPE(收盘价,21)*20+收盘价,42)
X_313:=(收盘价-21日内LOW最低值)/(21日内最高价最高值-21日内LOW最低值)*100
X_313的3日[1日权重]移动平均
X_314的3日[1日权重]移动平均
X_316:=3*X_314-2*X_315
X_317:=X_316的5日指数移动平均
X_318:=收盘价的5日简单移动平均
X_319:=收盘价的60日简单移动平均
X_320:=收盘价的120日简单移动平均
X_321:=收盘价>X_318和X_161较大值 AND 收盘价>=X_319和X_320较大值
X_322:=上次X_318上穿X_161距今天数
X_323:=收盘价>=X_322/2日前的收盘价*1.03 AND X_322/2日前的收盘价>=X_322日前的收盘价*1.08
X_324:=成交量.成交量UME>X_322/2日内成交量.成交量UME最低值 AND X_322/2日内成交量.成交量UME最低值>X_322日内成交量.成交量UME最低值
X_325:=统计X_322日满足X_161上穿X_318的天数=0
X_326:=COUNT(X_161>1日前的X_161,X_322)>=X_322-1 AND COUNT(X_318>1日前的X_318,X_322)>=X_322-1
X_327:=X_322 AND X_325 AND X_326
X_328:=X_322>=10
如果X_321 AND X_328 AND X_323 AND X_327返回1否则返回0
X_330:=IF(X_239 AND 统计30日满足X_239的天数=1,1,0)
X_331:=EXIST(CROSS(收盘价的10日简单移动平均,收盘价的5日简单移动平均),5)
X_332:=EXIST(收盘价的10日简单移动平均/LLV(收盘价的5日简单移动平均,5)<1.05,4)
X_333:=收盘价>收盘价的5日简单移动平均 AND 收盘价的5日简单移动平均>REF(收盘价的5日简单移动平均,1)
X_334:=收盘价的10日简单移动平均>收盘价的20日简单移动平均 AND 收盘价的20日简单移动平均>收盘价的60日简单移动平均
如果X_331 AND X_332 AND X_333 AND X_334返回1否则返回0
X_336:=EMA(收盘价计算的获利盘比例*70,3的绝对值)
X_337:=EMA((收盘价*1.1计算的获利盘比例-WINNER(收盘价*0.9的绝对值)*70,3))
X_338:=X_337-X_336
X_339:=100*(55日内最高价最高值-收盘价)/(55日内最高价最高值-55日内LOW最低值)
X_340:=EMA((收盘价-MA((2*收盘价+最高价+LOW)/4,30))/MA((2*收盘价+最高价+LOW)/4,30)*100,3)
X_341:=3*SMA((收盘价-55日内LOW最低值)/(55日内最高价最高值-55日内LOW最低值)*100,5,1)-2*SMA(SMA((收盘价-55日内LOW最低值)/(55日内最高价最高值-55日内LOW最低值)*100,5,1),3,1)
X_342:=IF(X_341的3日指数移动平均>60 AND X_341的3日指数移动平均>1日前的X_341的3日指数移动平均,1,0)
DRAWTEXT(X_330 OR X_90 AND X_336上穿X_337 AND LOW>1日前的收盘价*1.045 AND 收盘价=最高价 AND 收盘价>1日前的收盘价*1.095 AND 2的X_339=0日累和>1 AND X_158=0 AND 2的X_72=0日累和=2 AND 收盘价的5日简单移动平均*1.03>X_81 AND 3的X_342日累和<=2,LOW-X_64,41),COLORFFCC66
DRAWTEXT(X_330 OR X_90 AND 2的X_336上穿X_337日累和>0 AND 4的收盘价>1日前的收盘价*1.095日累和<4 AND 收盘价=最高价 AND 3的X_336上穿X_338 OR X_336上穿X_337日累和>1 AND 2的X_339=0日累和>1 AND 4的X_339=0日累和<4 AND X_158=0 AND 1日前的收盘价*1.09X_81 AND (X_336上穿X_337 OR X_66>X_81 OR X_335),LOW-X_64,42),COLORFFCC66
DRAWTEXT(X_336上穿X_337 AND MAX(收盘价的5日简单移动平均,X_81)-MIN(收盘价的5日简单移动平均,X_81)1日前的收盘价*1.092 AND X_339>0 AND X_81>X_66 AND 收盘价的5日简单移动平均*1.05>X_81,X_82*1.05,43),COLORFFCC66
X_343:=统计6日满足90上穿X_308的天数=1 AND 统计10日满足90上穿X_308的天数=1 AND 5日内X_307最高值>85 AND X_107 AND SUM(收盘价>=收盘价的5日简单移动平均,3)>0 AND X_81>0 AND X_310<70 AND X_336上穿X_337 AND X_72=0
当满足条件X_343时,在LOW-X_64和44位置书写文字
X_344:=IF(10的90上穿X_308日累和=1 AND 6的90上穿X_308日累和=1 AND 5日内X_307最高值>85 AND X_107 AND SUM(收盘价>=收盘价的5日简单移动平均,3)>0 AND X_81>0 AND X_310<70,1,0)
X_345:=IF(X_197<(-20) AND FILTER(X_197>1日前的X_197,5) AND 70日内X_307最高值>85,1,0)
DRAWTEXT(X_345 AND 70的X_344日累和>0,LOW-X_199,45),COLORWHITE
X_346:=IF(X_330 OR X_90 AND X_340上穿10 AND 4的收盘价>1日前的收盘价*1.092日累和<3 AND 收盘价>1日前的收盘价*1.092 AND 收盘价=最高价 AND 收盘价>OPEN AND 15的X_340>10日累和=1 AND X_336上穿X_337 AND 2的X_339=0日累和>1 AND 4的X_339=0日累和<3 AND X_339=0 AND X_158=0 AND (2的X_72=1日累和=2 OR (X_72=0 AND 收盘价的5日简单移动平均*1.03>X_81和X_66较大值)) AND 收盘价的5日简单移动平均*1.03>X_81,1,0)
X_347:=IF(X_330=0 AND X_340上穿10 AND 2的X_336上穿X_337日累和=1 AND 4的收盘价>1日前的收盘价*1.095日累和<3 AND 收盘价>1日前的收盘价*1.095 AND LOW=最高价 AND 15的X_340>10日累和=1 AND X_339>0 AND X_339<30 AND X_158=0 AND X_72=0 AND 3的OPEN>X_81日累和=1 AND OPEN>X_81 AND X_81>X_66 AND 5的X_342日累和<1 AND 收盘价的5日简单移动平均*1.03>X_81,1,0)
X_348:=IF(X_340上穿10 AND 1的X_336上穿X_337日累和=1 AND 4的收盘价>1日前的收盘价*1.09日累和=2 AND 2的收盘价>1日前的收盘价*1.09日累和=2 AND 收盘价=最高价 AND 15的X_340>10日累和=1 AND 2的X_339=0日累和<2 AND 2的X_72=1日累和=2 AND OPEN上穿X_81 AND 收盘价>X_66 AND 收盘价的5日简单移动平均*1.02>X_81和X_66较大值 AND X_158=0 AND 收盘价=60日内收盘价最高值 AND 5的X_342日累和<=1 AND 收盘价>OPEN,1,0)
当满足条件X_347 OR X_348 OR X_346 AND X_65 AND 收盘价>5时,在LOW-X_64和46位置书写文字
X_349:=X_239 AND 统计30日满足X_239的天数=1 AND X_336上穿X_337 AND 4的收盘价>1日前的收盘价*1.095日累和=1 AND 2的X_339=0日累和=1 AND 2的X_72日累和=1 AND 3的收盘价>1日前的收盘价日累和=3 AND X_335 AND 收盘价>1日前的收盘价*1.095 AND X_340>10 AND OPEN>=1日前的最高价 AND 收盘价的5日简单移动平均*1.05>X_81
X_350:=4的收盘价>1日前的收盘价*1.095日累和<3 AND 2的X_336上穿X_337日累和>0 AND 2的X_339=0日累和=1 AND 2的X_72日累和=1 AND 3的收盘价>1日前的收盘价日累和=3 AND X_335 AND 收盘价>1日前的收盘价*1.095 AND X_340上穿10 AND OPEN=收盘价 AND MIN(收盘价的5日简单移动平均,X_66)*1.03>MAX(X_66,收盘价的5日简单移动平均)
当满足条件X_349 OR X_350时,在X_82*1.05和47位置书写文字
X_351:=X_72=0 AND X_310>50 AND X_311>X_312 AND X_307>40 AND (X_336上穿X_337 AND X_99 AND X_103 AND X_307=20日内X_307最高值 OR (X_329 AND X_307=20日内X_307最高值) OR (X_329 AND X_310>70 AND X_107)) AND 20日内X_307最高值<85 AND 5的90上穿X_308日累和<=1 AND 10的90上穿X_308日累和<=1 AND CROSS(收盘价,收盘价的5日简单移动平均) AND 收盘价>ZTPRICE(1日前的收盘价,0.092)
当满足条件X_351时,在LOW-X_64和48位置书写文字
X_352:=(收盘价-21日内LOW最低值)/(21日内最高价最高值-21日内LOW最低值)*100
X_352的3日[1日权重]移动平均
X_353的3日[1日权重]移动平均
X_355:=3*X_353-2*X_354
X_356:=X_355的5日指数移动平均
X_357:=收盘价计算的获利盘比例*100
X_358:=X_357的5日简单移动平均
X_359:=EMA(100*(1-1.2*收盘价计算的获利盘比例),1)
X_360:=FILTER(X_357上穿X_358 AND X_358>80,5) AND X_359=0
X_361:=FILTER(统计15日满足X_357上穿X_358的天数>=3 AND X_358>61.799999,15) AND 收盘价<收盘价的3日简单移动平均
X_362:=X_360 OR X_361
X_363:=X_107 AND X_110 AND X_310>70 AND X_356<20 AND 8的X_112日累和<1 AND X_160>=1日前的X_160 AND X_310<85 AND X_72=0 AND X_158=0 AND 40的X_107日累和>1
X_364:=X_107 AND X_110 AND X_310>70 AND X_356-X_310>18 AND X_362=0 AND X_310<85 AND X_72=0 AND X_158=0 AND 40的X_107日累和>1
如果X_364返回X_200+X_64否则返回X_200
当满足条件X_364时,在LOW-X_365和49位置书写文字
{天穹短买副图源码如下}X_1赋值:SMA((收盘价-9日内LOW最低值)/(9日内最高价最高值-9日内LOW最低值)*100,3,1)
X_2赋值:SMA((收盘价-10日内LOW最低值)/(10日内最高价最高值-10日内LOW最低值)*100,3,1)
X_3赋值:SMA((X_2-50)*2,3,1)+SMA((X_1-50)*2,3,1)/1
输出顶警戒:150,DOTLINE,COLORMAGENTA
输出底戒线:(-150),DOTLINE,COLORGREEN
STICKLINE(X_3>(-100),X_3,100,0,0),COLOR323232
STICKLINE(X_3<(-100),X_3,100,0,0),COLOR9F9F5F
STICKLINE(X_3<(-100),X_3,(-100),1,0),COLORYELLOW
STICKLINE(X_3<(-120),X_3,(-120),1,0),COLORFF2400
STICKLINE(X_3<(-140),X_3,(-140),1,0),COLORMAGENTA
STICKLINE(X_3<(-150),X_3,(-150),1,0),COLORRED
当满足条件X_3>100时,在X_3和100之间画柱状线
当满足条件X_3>120时,在X_3和120之间画柱状线
当满足条件X_3>140时,在X_3和140之间画柱状线
当满足条件X_3>150时,在X_3和150之间画柱状线
X_4赋值:LOW>MA(SLOPE(收盘价,20)*5+收盘价,10) AND LOWX_5赋值:COUNT(CROSS(收盘价的10日简单移动平均,收盘价的5日简单移动平均),5)>=1
输出神猎手:CROSS(收盘价,REF(250/12日内LOW最低值,2)) AND X_4 AND X_5,NODRAW
当满足条件ISLASTBAR时,在横轴0.01纵轴0位置书写文字
X_6赋值:3*SMA((收盘价-27日内LOW最低值)/(27日内最高价最高值-27日内LOW最低值)*100,5,1)-2*SMA(SMA((收盘价-27日内LOW最低值)/(27日内最高价最高值-27日内LOW最低值)*100,5,1),3,1)
输出赶快买:X_6上穿5,NODRAW
输出秘密买:X_6<=5,NODRAW,COLOR00FF99
输出尝试买:X_6<=13,NODRAW,COLORCYAN
STICKLINE(尝试买,0,(-100),4,(-1)),COLORCYAN
STICKLINE(秘密买,(-90),(-10),1,0),COLOR00FF99
STICKLINE(赶快买,(-90),100,1,0),COLORMAGENTA
STICKLINE(神猎手,(-90),90,1,0),COLORRED
X_7赋值:4*SMA((收盘价-5日内LOW最低值)/(5日内最高价最高值-5日内LOW最低值)*100,5,1)-3*SMA(SMA((收盘价-5日内LOW最低值)/(5日内最高价最高值-5日内LOW最低值)*100,5,1),3.2,1)
X_8赋值:X_7上穿8 AND 尝试买
X_9赋值:LOW<=REFDATE(REF(150日内LOW最低值,3),DATE) AND 尝试买
输出超短买:X_8 OR X_9,NODRAW,COLOR0099FF
STICKLINE(超短买,(-60),20,3,0),COLOR0090FF
STICKLINE(超短买,(-55),15,1,(-1)),COLORRED
X_10:=DMA((最高价+LOW+收盘价*2)/4.15,0.9)
X_11:=1日前的X_10的3日指数移动平均
X_12:=KDJ.J<50 AND 收盘价>3日前的收盘价
X_13:=(收盘价-收盘价的30日简单移动平均)/收盘价的30日简单移动平均*100
X_14:=CROSS(0,(收盘价-收盘价的5日简单移动平均)/收盘价的5日简单移动平均*100)
X_15:=X_13<1日前的X_13
X_16:=收盘价的10日简单移动平均>REF(收盘价的10日简单移动平均,1)
X_17:=X_14 AND X_15 AND X_16的10过滤
X_18:=(2*收盘价+最高价+LOW)/4
X_19:=MA(EMA((X_18-5日内LOW最低值)/(5日内最高价最高值-5日内LOW最低值)*100,5),1)
X_20:=2日前的X_17 AND CROSS(收盘价,收盘价的5日指数移动平均)
X_21:=X_19>1日前的X_19 AND 1日前的X_19<2日前的X_19
X_22:=成交量/((最高价-LOW)*2-收盘价-OPEN的绝对值)
X_23:=IF(收盘价>OPEN,X_22*(最高价-LOW),IF(收盘价X_24:=IF(收盘价>OPEN,X_22*(最高价-收盘价+(OPEN-LOW)),IF(收盘价X_25:=KDJ.J<20
X_26:=X_23>X_24*6 AND X_25
X_27:=收盘价上穿X_11 AND X_12
X_28:=X_20 AND X_21
输出短爆买:尝试买 AND (X_26 OR X_27 OR X_28),NODRAW,COLORRED
当满足条件短爆买时,在0和70之间画柱状线
当满足条件短爆买时,在40和1207位置书写文字
DRAWTEXT(超短买,(-20),1208),COLORWHITE
当满足条件赶快买时,在85和1209位置书写文字
当满足条件神猎手时,在60和1210位置书写文字
输出【短线趋势】:SMA((X_2-50)*2,3,1)+SMA((X_1-50)*2,3,1)/1,COLORYELLOW,LINETHICK2
IF(X_3<=1日前的X_3,X_3,DRAWNULL),COLORFF2400,LINETHICK2
X_29:=X_3>1日前的X_3
X_30:=X_3<=1日前的X_3
DRAWICON(X_29 AND REF(NOT(X_29),1),X_3,1)
DRAWICON(X_30 AND REF(NOT(X_30),1),X_3,2)
{天穹能量场副图源码如下}{主散资金}A赋值:V*50/当前流通股本
主力A赋值:A的4日简单移动平均,COLORRED,LINETHICK3
游资A赋值:A的8日简单移动平均,COLORYELLOW,LINETHICK3
大户A赋值:A的16日简单移动平均,COLORMAGENTA,LINETHICK3
散户A赋值:A的32日简单移动平均,COLORGREEN,LINETHICK2
当满足条件主力A>0时,在0和主力A之间画柱状线
当满足条件游资A>0时,在0和游资A之间画柱状线
当满足条件大户A>0时,在0和大户A之间画柱状线
{VOL量能}TWJIAN赋值:(CODELIKE('999') OR CODELIKE('399'))
HROL赋值:20*成交量/(FINANCE(7)/100)
如果TWJIAN返回成交量否则返回HROL
RSV赋值:(JL-20日内JL最低值)/(20日内JL最高值-20日内JL最低值)*100
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
量W赋值:DJL的5日简单移动平均,D)
BOLL赋值:量W的20日简单移动平均
UP赋值:BOLL+2*量W的20估算标准差
DN赋值:BOLL-2*量W的20估算标准差
TTR赋值:MA(1日前的量W-量W的绝对值,15)
VM赋值:量W的6日简单移动平均
VU赋值:VM+2*TTR
VD赋值:VM-2*TTR
DRAWBAND(UP,RGB(0,100,150),DN,RGB(0,100,150))
DRAWBAND(VU,RGB(120,20,120),VD,RGB(120,20,120))
输出量能趋势:量W,COLORYELLOW,LINETHICK2
输出警戒线:A的180日简单移动平均,COLORCYAN,DOTLINE
{量能平台突破}N天内赋值:21
如果CURRBARSCOUNT=1 AND PERIOD=5返回成交量*240/FROMOPEN否则返回成交量
价新高赋值:N天内日内H最高值=H,COLORFFFFFF
量新高赋值:N天内日内成交量最高值=成交量,COLORFFFFFF
S2赋值:IF(NAMELIKE('S'),0,1)
S3赋值:IF(NAMELIKE('*'),0,1)
去除停牌赋值:DYNAINFO(4)>0
{ K线60日上要求 AND AND AND } 量能平台突破:量新高 AND 价新高 AND 收盘价的有效数据周期数>200 AND S2 AND S3 AND 去除停牌 ,COLORCYAN,LINETHICK2
{四量副图}MID9:=(3*收盘价+LOW+OPEN+最高价)/6
牛线1赋值:(20*MID9+19*1日前的MID9+18*2日前的MID9+17*3日前的MID9+16*4日前的MID9+15*5日前的MID9+14*6日前的MID9+13*7日前的MID9+12*8日前的MID9+11*9日前的MID9+10*10日前的MID9+9*11日前的MID9+8*12日前的MID9+7*13日前的MID9+6*14日前的MID9+5*15日前的MID9+4*16日前的MID9+3*17日前的MID9+2*18日前的MID9+20日前的MID9)/210,COLORCYAN{COLORWHITE}
马线1赋值:牛线1的6日简单移动平均,COLORLIMAGENTA{ 画蓝色}
当满足条件C>牛线1时,在-1.3和-1.6之间画柱状线
当满足条件C<马线1时,在-1.3和-1.6之间画柱状线
当满足条件牛线1>=C AND C>=马线1时,在-1.3和-1.6之间画柱状线
如果V>=0返回-1.45否则返回0
MID1:=(3*收盘价+LOW+OPEN+最高价)/6
牛线赋值:(20*MID1+19*1日前的MID1+18*2日前的MID1+17*3日前的MID1+16*4日前的MID1+15*5日前的MID1+14*6日前的MID1+13*7日前的MID1+12*8日前的MID1+11*9日前的MID1+10*10日前的MID1+9*11日前的MID1+8*12日前的MID1+7*13日前的MID1+6*14日前的MID1+5*15日前的MID1+4*16日前的MID1+3*17日前的MID1+2*18日前的MID1+20日前的MID1)/210,COLORCYAN{COLORWHITE}
GB赋值:(C-牛线)
换手赋值:V*100/当前流通股本
主赋值:换手的5日简单移动平均
大赋值:换手的12日简单移动平均
中赋值:换手的34日简单移动平均
散赋值:换手的55日简单移动平均
均赋值:(主+大+中+散)/4
GBB:=(主-散)
GB1:=GB+GBB
当满足条件GB1>=0时,在-0.5和-0.8之间画柱状线
当满足条件GB1<0时,在-0.5和-0.8之间画柱状线
如果V>=0返回-0.65否则返回0
Q赋值:V的5日指数移动平均
Q1:=V的50日指数移动平均
OBV赋值:SUM(IF(收盘价>1日前的收盘价,成交量,IF(收盘价<1日前的收盘价,-成交量,0)),0)
OBV1:=OBV的5日指数移动平均
OBV2:=OBV的50日指数移动平均
W赋值:(Q-Q1)*0.00001
W1:=(OBV1-OBV2)*0.000001
W2:=W+W1
当满足条件W2>=0时,在-0.9和-1.2之间画柱状线
当满足条件W2<0时,在-0.9和-1.2之间画柱状线
如果V>=0返回-1.05否则返回0
MID赋值:(3*收盘价+LOW+OPEN+最高价)/6
DKX:=(20*MID+19*1日前的MID+18*2日前的MID+17*3日前的MID+16*4日前的MID+15*5日前的MID+14*6日前的MID+13*7日前的MID+12*8日前的MID+11*9日前的MID+10*10日前的MID+9*11日前的MID+8*12日前的MID+7*13日前的MID+6*14日前的MID+5*15日前的MID+4*16日前的MID+3*17日前的MID+2*18日前的MID+20日前的MID)/210
MADKX:=DKX的6日简单移动平均
MDD赋值:(DKX-MADKX)*1.2
V1赋值:(C*2+H+L)/4*10
V2赋值:V1的6日指数移动平均-V1的55日指数移动平均
V3赋值:V2的6日指数移动平均
V5赋值:(V2-V3)*0.06
V6赋值:MDD+V5
当满足条件V6>=0时,在-1.7和-2之间画柱状线
当满足条件V6<0时,在-1.7和-2之间画柱状线
如果V>=0返回-1.85否则返回0
{趋势形成}VAR12赋值:(最高价 - LOW)
VAR3赋值:(OPEN - 收盘价的绝对值)
VAR4赋值:(最高价 - IF((收盘价 > OPEN),收盘价,OPEN))
VAR5赋值:(IF((收盘价 > OPEN),OPEN,收盘价) - LOW)
VAR6赋值:((VAR3 / VAR12) * 成交量)
VAR7赋值:((VAR4 / VAR12) * 成交量)
VAR8赋值:((VAR5 / VAR12) * 成交量)
VARB赋值:(((收盘价的5日简单移动平均 > 收盘价的10日简单移动平均) AND (收盘价的10日简单移动平均 > 收盘价的30日简单移动平均)) AND (收盘价的30日简单移动平均 > 收盘价的60日简单移动平均))
短趋势线赋值:C的13日简单移动平均
输出趋势形成:-(((((VAR6 > (成交量的5日简单移动平均 * 2)) AND 短趋势线>1日前的短趋势线 AND (VAR6 >= VAR7)) AND (VAR6 >= VAR8)) AND (收盘价 > OPEN)) OR ((成交量 > (成交量的5日简单移动平均 * 3)) AND VARB AND 短趋势线>1日前的短趋势线 )), 画淡蓝色,LINETHICK2
{主力与散户}M:=55
N赋值:21
{有用34的}散户: (M日内最高价最高值-收盘价)/(M日内最高价最高值-M日内LOW最低值)-2,COLORFFFF00,LINETHICK2
RSVX:=(收盘价-N日内LOW最低值)/(N日内最高价最高值-N日内LOW最低值)*100
RSVX的3日[1日权重]移动平均
KK的3日[1日权重]移动平均
JJ赋值:3*KK-2*DD
主力:JJ的6日指数移动平均/100-2,COLORYELLOW,LINETHICK2
{庄家控盘1.黄色柱体为庄家低控盘,即控盘程度>=50;2.红色柱体为庄家中控盘,即控盘程度>=60;3.紫色柱体为庄家高控盘,即控盘程度>=80; }AAA:=(3*收盘价+OPEN+最高价+LOW)/6
MA12赋值:AAA的12日指数移动平均
MA36赋值:AAA的36日指数移动平均
MA108赋值:AAA的108日指数移动平均
MA250赋值:AAA的250日指数移动平均
输出控盘度:(AAA的12日指数移动平均-1日前的AAA的36日指数移动平均)/1日前的AAA的36日指数移动平均*100+50,NODRAW
如果控盘度>=50 AND 控盘度<60返回控盘度否则返回0
如果控盘度>=60 AND 控盘度<80返回控盘度否则返回0
如果控盘度>=80 AND 控盘度<100返回控盘度否则返回0
当满足条件 控盘度>=50时,在-2.5和-控盘度/10+2.5之间画柱状线
当满足条件 控盘度>=60时,在-3.5和-控盘度/10+2.5之间画柱状线
当满足条件 控盘度>=80时,在-5.5和-控盘度/10+2.5之间画柱状线

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

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