X_1:=COST(1);
X_2:=COST(10);
X_3:=COST(20);
X_4:=COST(30);
X_5:=COST(40);
X_6:=COST(50);
X_7:=COST(60);
X_8:=COST(70);
X_9:=COST(80);
X_10:=COST(90);
X_11:=COST(99);
X_12:=COST(5);
X_13:=COST(15);
X_14:=COST(25);
X_15:=COST(35);
X_16:=COST(45);
X_17:=COST(55);
X_18:=COST(65);
X_19:=COST(75);
X_20:=COST(85);
X_21:=COST(95);
X_22:=X_12-X_1;
X_23:=X_2-X_12;
X_24:=X_13-X_2;
X_25:=X_3-X_13;
X_26:=X_14-X_3;
X_27:=X_4-X_14;
X_28:=X_15-X_4;
X_29:=X_5-X_15;
X_30:=X_16-X_5;
X_31:=X_6-X_16;
X_32:=X_17-X_6;
X_33:=X_7-X_17;
X_34:=X_18-X_7;
X_35:=X_8-X_18;
X_36:=X_19-X_8;
X_37:=X_9-X_19;
X_38:=X_20-X_9;
X_39:=X_10-X_20;
X_40:=X_21-X_10;
X_41:=X_11-X_21;
X_42:=MIN(X_22,MIN(X_23,MIN(X_24,MIN(X_25,MIN(X_26,MIN(X_27,MIN(X_28,MIN(X_29,MIN(X_30,MIN(X_31,MIN(X_32,MIN(X_33,MIN(X_34,MIN(X_35,MIN(X_36,MIN(X_37,MIN(X_38,MIN(X_39,MIN(X_40,X_41)))))))))))))))))));
X_43:=IF(X_22=X_42,(X_12+X_1)/2,IF(X_23=X_42,(X_12+X_2)/2,IF(X_24=X_42,(X_13+X_2)/2,IF(X_25=X_42,(X_13+X_3)/2,IF(X_26=X_42,(X_14+X_3)/2,IF(X_27=X_42,(X_14+X_4)/2,IF(X_28=X_42,(X_15+X_4)/2,IF(X_29=X_42,(X_15+X_5)/2,IF(X_30=X_42,(X_16+X_5)/2,IF(X_31=X_42,(X_16+X_6)/2,IF(X_32=X_42,(X_17+X_6)/2,IF(X_33=X_42,(X_17+X_7)/2,IF(X_34=X_42,(X_18+X_7)/2,IF(X_35=X_42,(X_18+X_8)/2,IF(X_36=X_42,(X_19+X_8)/2,IF(X_37=X_42,(X_19+X_9)/2,IF(X_38=X_42,(X_20+X_9)/2,IF(X_39=X_42,(X_20+X_10)/2,IF(X_40=X_42,(X_21+X_10)/2,(X_21+X_11)/2)))))))))))))))))));
筹码峰线:X_43,NODRAW,COLOR00EEEE;
STICKLINE(ISLASTBAR,筹码峰线,筹码峰线*1.001,20,0),COLORYELLOW,LINETHICK3;
X_44:=10;
X_45:=10;
X_46:=3;
X_47:=10;
X_48:=2.5;
X_49:=MAX(MAX(HIGH-LOW,Abs(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
X_50:=(HIGH+LOW)/2+MA(X_49,X_47)*X_48;
X_51:=(HIGH+LOW)/2-MA(X_49,X_47)*X_48;
X_52:=REF(X_50,BArslAST(X_50<=REF(X_50,1)));
X_53:=LLV(X_50,X_45*1.5);
X_54:=IF(X_53!=REF(X_53,1) AND X_52X_55:=BARSLAST(crOSS(0.5,X_50=X_54))+1;
X_56:=CROSS(COUNT(CROSS(CLOSE,X_54) OR CROSS(CLOSE,REF(X_54,2)) AND X_50>X_54,X_55),0.5);
X_57:=BARSLAST(X_56);
X_58:=BARSLAST(CROSS(HHV(X_51,X_57+1),CLOSE));
X_59:=CROSS(X_58,X_57);
X_60:=CROSS(X_57,X_58);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
SUPERTREN:IF(X_58>X_57,HHV(X_51,BARSLAST(X_59)+1),LLV(X_50,BARSLAST(X_60)+1)),COLORGREEN,LINETHICK6;
庄家成本线:IF(X_58>X_57,SUPERTREN,DRAWNULL),COLOR0000C8,LINETHICK6;
DRAWICON(CROSS(X_58,X_57),SUPERTREN*0.99,1);
DRAWICON(CROSS(X_57,X_58),SUPERTREN*1.015,2);
买进:CROSS(X_58,X_57)*100,NODRAW,COLORRED;
卖出:CROSS(X_57,X_58)*100,NODRAW;