主图指标
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;
副图1 筹码进出看盘专用
{看盘专用}
ZLCM:=EMA(WINNER(CLOSE)*70,3)NODRAW;
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3)NODRAW;
ZSHTL:=SHCM/(ZLCM+SHCM)*100,NODRAW;
ZZLKP:=ZLCM/(ZLCM+SHCM)*100,NODRAW;
ZSHJJ:=EMA(ZSHTL,55)NODRAW;
ZZLJJ:=EMA(ZZLKP,55)NODRAW;
黄金坑:=IF(ZZLKP<=10,ZZLKP,ZZLKP),COLORMAGENTA,NODRAW;
STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,2.5,0),COLOR00AA00;
STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,1.5,0),COLOR00CC00;
STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,0.5,0),COLOR00FF00;
STICKLINE(C>0,ZSHTL,ZZLKP,2,0),COLOR808080;
STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLORC0C0C0;
STICKLINE(ZZLKP<=10,ZZLKP,0,5,0),COLORDD00DD;
{以下抓妖股主图中的庄进和妖股部分}
{有庄控盘}
VAW1:=EMA(EMA(CLOSE,13),13);
控盘:=(VAW1-REF(VAW1,1))/REF(VAW1,1)*1000;
无庄控盘:=控盘<0;
有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;
{分时价格原码}
JJ:=DYNAINFO(11);
{波段买卖原码}
P:=21;S:=8;M1:=3;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*50;
神:=EMA(财,M1);
{股价与均线偏离买卖条件}
BTJ1:=(C-JJ)/JJ<-0.03;
BTJ11:=(C-JJ)/JJ<-0.03;
BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;
STJ1:=(C-JJ)/JJ>0.005;
{控盘买卖条件}
STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;
STJ02:=控盘>0;
BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;
BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;
{波段买卖条件}
BTJ3:=CROSS(财,神) AND 财<-0.3;
BTJ32:=CROSS(财,神) AND 财<-0.1;
STJ31:=CROSS(神,财);
STJ32:=CROSS(神,财) AND 财>1.618;
{以下为信号};
BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);
BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);
BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);
STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);
STJ82:=FILTER(STJ02 AND STJ32 ,13);
STJ83:=STJ81 AND STJ82;
STICKLINE(STJ83,20,50,2,0),COLOR00FF00;
DRAWTEXT(STJ83,30,' 庄出'),COLOR00FF00;
庄:= BTJ11 AND BTJ2 AND BTJ3;
有庄:=FILTER(庄,30);
STICKLINE(有庄,50,80,2,0),COLORRED;
DRAWTEXT(有庄,60,' 庄进'),COLORRED;
副图2 资金进出专用看盘
X_1:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);X_2:=REF(EMA(X_1,3),1);X_3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));X_4:=IF(CLOSE>OPEN,X_3*(HIGH-LOW),IF(CLOSE<OPEN,X_3*(HIGH-OPEN+(CLOSE-LOW)),VOL/2))+IF(CLOSE>OPEN,0-X_3*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,0-X_3*(HIGH-LOW),0-VOL/2));X_5:=VOL/CAPITAL;X_6:=IF(X_5>10,10,X_5);X_7:=X_4/20/1.15;X_8:=X_7*0.55+REF(X_7,1)*0.33+REF(X_7,2)*0.22;X_9:=EMA(X_8,8);X_10:=EMA(X_8,3);STICKLINE(X_7*0.4>=0,X_7*0.4+X_10,0,3,0),COLORYELLOW;STICKLINE(X_7*0.4<0,X_7*0.4+X_10,0,3,0),COLORGREEN;X_11:=IF(X_7*0.4+X_10>0,X_7*0.4+X_10,DRAWNULL);X_12:=IF(X_7*0.4+X_10<0,X_7*0.4+X_10,DRAWNULL);X_13:=X_7*0.4+X_10;X_14:=AMOUNT/10000;资金净进出:IF(X_7*0.4+X_10>0,X_11,X_12),POINTDOT,COLORWHITE;进出比例%:IF(X_7*0.4+X_10>0,X_11/X_14*100,X_12/X_14*100),COLORYELLOW;X_15:=X_10;STICKLINE(X_15>0,X_15,0,3,0),COLORRED;STICKLINE(X_15<0,X_15,0,3,0),COLORFF3300;X_16:=REF(X_12,1)<0 AND X_11>30 AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1) AND CLOSE>MA(CLOSE,3);X_17:=(3*CLOSE+2*LOW+OPEN+HIGH)/7;X_18:=(20*X_17+19*REF(X_17,1)+18*REF(X_17,2)+17*REF(X_17,3)+16*REF(X_17,4)+15*REF(X_17,5)+14*REF(X_17,6)+13*REF(X_17,7)+12*REF(X_17,8)+11*REF(X_17,9)+10*REF(X_17,10)+9*REF(X_17,11)+8*REF(X_17,12)+7*REF(X_17,13)+6*REF(X_17,14)+5*REF(X_17,15)+4*REF(X_17,16)+3*REF(X_17,17)+2*REF(X_17,18)+REF(X_17,20))/210;X_19:=X_11>300 AND CROSS(CLOSE,X_18);
副图3 杀破狼副图选股一体
X_11:=MA((LOW+HIGH+CLOSE)/3,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);X_94,LINETHICK2,COLORRED;