主图
X_36:=COST(1);
X_37:=COST(10);
X_38:=COST(20);
X_39:=COST(30);
X_40:=COST(40);
X_41:=COST(50);
X_42:=COST(60);
X_43:=COST(70);
X_44:=COST(80);
X_45:=COST(90);
X_46:=COST(99);
X_47:=COST(5);
X_48:=COST(15);
X_49:=COST(25);
X_50:=COST(35);
X_51:=COST(45);
X_52:=COST(55);
X_53:=COST(65);
X_54:=COST(75);
X_55:=COST(85);
X_56:=COST(95);
X_57:=X_47-X_36;
X_58:=X_37-X_47;
X_59:=X_48-X_37;
X_60:=X_38-X_48;
X_61:=X_49-X_38;
X_62:=X_39-X_49;
X_63:=X_50-X_39;
X_64:=X_40-X_50;
X_65:=X_51-X_40;
X_66:=X_41-X_51;
X_67:=X_52-X_41;
X_68:=X_42-X_52;
X_69:=X_53-X_42;
X_70:=X_43-X_53;
X_71:=X_54-X_43;
X_72:=X_44-X_54;
X_73:=X_55-X_44;
X_74:=X_45-X_55;
X_75:=X_56-X_45;
X_76:=X_46-X_56;
X_77:=MIN(X_57,MIN(X_58,MIN(X_59,MIN(X_60,MIN(X_61,MIN(X_62,MIN(X_63,MIN(X_64,MIN(X_65,
MIN(X_66,MIN(X_67,MIN(X_68,MIN(X_69,MIN(X_70,MIN(X_71,MIN(X_72,MIN(X_73,MIN(X_74,
MIN(X_75,X_76)))))))))))))))))));
X_78:=IF(X_57=X_77,(X_47+X_36)/2,IF(X_58=X_77,(X_47+X_37)/2,IF(X_59=X_77,(X_48+X_37)
/2,IF(X_60=X_77,(X_48+X_38)/2,IF(X_61=X_77,(X_49+X_38)/2,IF(X_62=X_77,(X_49+X_39)
/2,IF(X_63=X_77,(X_50+X_39)/2,IF(X_64=X_77,(X_50+X_40)/2,IF(X_65=X_77,(X_51+X_40)
/2,IF(X_66=X_77,(X_51+X_41)/2,IF(X_67=X_77,(X_52+X_41)/2,IF(X_68=X_77,(X_52+X_42)
/2,IF(X_69=X_77,(X_53+X_42)/2,IF(X_70=X_77,(X_53+X_43)/2,IF(X_71=X_77,(X_54+X_43)
/2,IF(X_72=X_77,(X_54+X_44)/2,IF(X_73=X_77,(X_55+X_44)/2,IF(X_74=X_77,(X_55+X_45)
/2,IF(X_75=X_77,(X_56+X_45)/2,(X_56+X_46)/2)))))))))))))))))));
筹码峰线:X_78,NODRAW,COLOR00EEEE;
STICKLINE(ISLASTBAR,筹码峰线,筹码峰线*1.001,20,0),COLORYELLOW,LINETHICK3;
{Z字庄家成本线}
P1:=10;
N:=10;
M:=3;
NP:=10;
MP:=2.5;
TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
UP:=(H+L)/2+MA(TR1,NP)*MP;
DN:=(H+L)/2-MA(TR1,NP)*MP;
L1:=REF(UP,BARSLAST(UP<=REF(UP,1)));
L2:=LLV(UP,N*1.5);
LL:=IF(L2<>REF(L2,1) AND L1<REF(L1,1),L1,IF(L1=L2,L1,L2));
S1:=BARSLAST(CROSS(0.5,UP=LL))+1;
S2:=CROSS(COUNT((CROSS(C,LL) OR CROSS(C,REF(LL,2))) AND UP>LL,S1),0.5);
A6:=BARSLAST(S2);
B6:=BARSLAST(CROSS(HHV(DN,A6+1),C));
BY:=CROSS(B6,A6);
SL:=CROSS(A6,B6);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
SUPERTREN:IF(B6>A6,HHV(DN,BARSLAST(BY)+1),LLV(UP,BARSLAST(SL)+1)),COLORGREEN,LINETHICK6;
庄家成本线:IF(B6>A6,SUPERTREN,DRAWNULL),COLOR0000C8,LINETHICK6;
DRAWICON(CROSS(B6,A6),SUPERTREN*0.99,1);
DRAWICON(CROSS(A6,B6),SUPERTREN*1.015,2);
买进:CROSS(B6,A6)*100,NODRAW,COLORRED;
卖出:CROSS(A6,B6)*100,NODRAW;
副图1
X_1:=IF(NAMELIKE(1),0,1);
X_2:=IF(NAMELIKE(2),0,1);
X_3:=IF(CODELIKE(3),0,1);
X_4:=X_1 AND X_2 AND X_3;
X_5:=MA(CLOSE,60);
X_6:=(CLOSE-X_5)/X_5*100;
X_7:=LLV(LOW,21);
X_8:=HHV(HIGH,21);
X_9:=EMA((CLOSE-X_7)/(X_8-X_7)*100,5);
X_10:=EMA((CLOSE-X_7)/(X_8-X_7)*50,13);
X_11:=CROSS(X_9,X_10);
X_12:=X_11=1;
X_13:=AMOUNT/VOL;
X_14:=LOW<X_13*0.9;
X_15:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
X_16:=LOW<MA(CLOSE,5)*0.921;
X_17:=VOL<MA(VOL,5)*1.5;
X_18:=SMA((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100,3,1);
X_19:=X_18<50;
X_20:=X_12 OR (X_14 AND X_15 AND X_16 AND X_17);
X_21:=X_4 AND X_19 AND X_20;
XG1:X_21 AND X_6<(-20) AND X_4;
副图2
XA_1:=IF(CLOSE<OPEN,(CLOSE-OPEN)/OPEN,0);
XA_2:=IF(CLOSE>OPEN,(CLOSE-OPEN)/OPEN,0);
XA_3:=IF(CLOSE>OPEN,(OPEN-LOW)/OPEN,(CLOSE-LOW)/OPEN);
XA_4:=IF(CLOSE>OPEN,(HIGH-CLOSE)/OPEN,(HIGH-OPEN)/OPEN);
XA_5:=IF(BARSLAST(CLOSE>MA(CLOSE,20))>34,34,BARSLAST(CLOSE>MA(CLOSE,20)));
XA_6:=IF(BARSLAST(CLOSE>MA(CLOSE,60))>120,120,BARSLAST(CLOSE>MA(CLOSE,60)));
XA_7:=IF(COUNT(CLOSE>0,250)<240,CAPITAL,SUM(VOL,480)/8);
XA_8:=MA(LOW,20)*1.2;
XA_9:=MA(LOW,20)*1.1;
XA_10:=MA(HIGH,20)*0.9;
XA_11:=MA(HIGH,20)*0.8;
XA_12:=CLOSE/(1+(CLOSE/MA(CLOSE,240)-1)-MA(INDEXC/MA(INDEXC,240)-1,3));
短线上攻:IF(BARSLAST(CLOSE>XA_9)<4 AND CLOSE>MA(CLOSE,5) AND BARSLAST(CLOSE=HHV(CLOSE,21))<4,(MA(CLOSE,5)-REF(MA(CLOSE,5),1))/REF(MA(CLOSE,5),1)*300,0),COLORMAGENTA;
中线强势:(CLOSE/XA_12-1)*50,COLORRED,LINETHICK2;
中线控盘:MA(IF(CLOSE>MA(CLOSE,240) AND (CLOSE-MA(CLOSE,240))/MA(CLOSE,240)+SUM(XA_1,20)>0,((CLOSE-MA(CLOSE,240))/MA(CLOSE,240)+SUM(XA_1,20))/MA(VOL/XA_7,20)/2.5,0),10),COLORYELLOW,LINETHICK2;
短线超跌:IF(CLOSE<MA(CLOSE,20),((REF(CLOSE,XA_5)-CLOSE)/REF(CLOSE,XA_5)+SUM(XA_3,XA_5)-SUM(XA_4,XA_5))*20,0),COLORBLUE,LINETHICK2;
中线超跌:(REF(CLOSE,XA_6)-CLOSE)/CLOSE*2,COLORGREEN,LINETHICK2;
STICKLINE(中线强势>0,0,中线强势,0.7,0),COLORRED;
STICKLINE(中线控盘>0,0,中线控盘,0.7,0),COLORYELLOW;
STICKLINE(短线上攻>0,0,短线上攻,0.7,0),COLORMAGENTA;
STICKLINE(中线超跌>0,0,中线超跌,0.7,0),COLORGREEN;
STICKLINE(短线超跌>0,0,短线超跌,0.8,0),COLORBLUE;
副图3
X_3:=IF(PERIOD<3,35,IF(PERIOD<=5,28,IF(PERIOD<=7,21,IF(PERIOD<=8,14,IF(PERIOD<=9,7,5)))));
X_4:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_5:=MAX(HIGH-LOW,MAX(HIGH-REF(CLOSE,1),REF(CLOSE,1)-LOW))/REF(CLOSE,1)*100;
X_6:=(HIGH-LOW)/REF(CLOSE,1)*100;
X_7:=VOL/REF(MA(VOL,5),1);
X_8:=VOL;
X_9:=(HIGH+LOW+CLOSE)/3;
X_10:=CLOSE>X_9;
X_11:=CLOSE<X_9;
X_12:=X_4*X_8;
X_13:=ABS(IF(X_11,X_12,0));
X_14:=IF(X_10,X_12,0);
阴线效率:=ABS(SUM(IF(X_12<0,X_12,0),7)),DOTLINE,COLOR008000;
阳线效率:=SUM(IF(X_12>0,X_12,0),7),DOTLINE,COLORRED;
X_15:=ABS(阴线效率-阳线效率);
X_16:=49;{WWW.GOODGUPIAO.COM}
X_17:=(阴线效率+阳线效率)/2;
X_18:=STDP(MAX(阴线效率,阳线效率),X_16);
X_19:=STDP(MIN(阴线效率,阳线效率),X_16);
X_20:=WMA(X_17,X_16);
X_21:=X_20+1.618*X_18;{WWW.GOODGUPIAO.COM}
X_22:=X_20-1.618*X_19;
X_23:=阳线效率>阴线效率 AND 阳线效率>=X_20;
X_24:=阴线效率>阳线效率 AND 阴线效率>=X_20;
X_25:=阳线效率>阴线效率 AND 阳线效率>X_21;
X_26:=阴线效率>阳线效率 AND 阴线效率>X_21;
X_27:=阳线效率<阴线效率 AND 阳线效率<X_22;
X_28:=阴线效率<阳线效率 AND 阴线效率<X_22;
X_29:=阳线效率>=HHV(阳线效率,100) AND 阳线效率>0;
X_30:=阴线效率>=HHV(阴线效率,100) AND 阴线效率>0;
X_31:=阳线效率<=LLV(阳线效率,100);{WWW.GOODGUPIAO.COM}
X_32:=阴线效率<=LLV(阴线效率,100);
STICKLINE(X_23,阳线效率,MAX(X_20,阴线效率),2,0),COLORRED;
STICKLINE(X_24,阴线效率,MAX(X_20,阳线效率),2,0),COLORGREEN;
STICKLINE(X_25,阳线效率,MAX(X_21,阴线效率),2,0),COLORYELLOW;
STICKLINE(X_26,阴线效率,MAX(X_21,阳线效率),2,0),COLORWHITE;
{NOTEXT0:IF(阳线效率>阴线效率,阳线效率,DRAWNULL),COLORRED,LINETHICK2;
NOTEXT1:IF(阳线效率<阴线效率,阴线效率,DRAWNULL),COLORGREEN,LINETHICK2;}
CMA:=(COST(95)-COST(5))/((COST(95)+COST(5)))*100,NODRAW,COLORYELLOW;
ZT:=C/REF(C,1)>=1.08 AND C=H AND NOT(CODELIKE('688'));
STICKLINE(X_25 AND ZT AND CMA<20,MAX(X_21,阴线效率),MAX(X_21,阴线效率)*2,2,0),COLORGREEN;
副图4
VAR2A:=LLV(LOW,10);
VAR3A:=HHV(HIGH,25);
动力线:= EMA((CLOSE-VAR2A)/(VAR3A-VAR2A)*4,4);
趋势:MA(动力线,2);
IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORRED;
IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORBLUE;
STICKLINE(趋势>REF(趋势,1) ,趋势 ,REF(趋势,1),1,0),COLORRED;
STICKLINE(趋势<=REF(趋势,1) ,趋势 ,REF(趋势,1),1,0),COLOR00FF00;
AA:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AA,0),5,1)/SMA(ABS(CLOSE-AA),5,1)*1000;
HHH:=BBB-LLV(BBB,10);
SS:=(MA(HHH,2)*3+HHH*13)/16;
短线买点:=IF(SS>13,MA(SS,2),SS)/6;
短线出击:IF(CROSS(短线买点,1) AND (短线买点<30),1,0);
短线出击=30;
X:=MA(AMOUNT,5)/MA(V,5)/100;
VAR13A:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
VAR14A:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
VAR15A:=C/MA(C,60)-1;
大底:IF(CROSS(-5,VAR14A) AND VAR13A<-0.4,-0.01,-1);
中底:IF(CROSS(-5,VAR14A) AND VAR13A<-0.25 AND VAR13A>-0.4,-0.3,-1);
小底:IF(CROSS(-5,VAR14A) AND VAR13A<-0.15 AND VAR13A>-0.25,-0.6,-1);
减仓:IF(CROSS(VAR14A,-95) AND VAR15A<0.2 AND VAR15A>=0.1,0.6,1);
中顶:IF(CROSS(VAR14A,-95) AND VAR15A<0.35 AND VAR15A>=0.2,0.3,1),COLORYELLOW;
大顶:IF(CROSS(VAR14A,-95) AND VAR15A>=0.35,0,1)COLORRED;