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)))))))))))))))))));
STICKLINE(X_42=X_22,X_1,X_12,5,0),COLORFF8800;
STICKLINE(X_42=X_23,X_2,X_12,5,0),COLORFF8800;
STICKLINE(X_42=X_24,X_13,X_2,5,0),COLORFF8800;
STICKLINE(X_42=X_25,X_3,X_13,5,0),COLORFF8800;
STICKLINE(X_42=X_26,X_14,X_3,5,0),COLORFF8800;
STICKLINE(X_42=X_27,X_4,X_14,5,0),COLORFF8800;
STICKLINE(X_42=X_28,X_15,X_4,5,0),COLORFF8800;
STICKLINE(X_42=X_29,X_5,X_15,5,0),COLORFF8800;
STICKLINE(X_42=X_30,X_16,X_5,5,0),COLORFF8800;
STICKLINE(X_42=X_31,X_6,X_16,5,0),COLORFF8800;
STICKLINE(X_42=X_32,X_17,X_6,5,0),COLORFF8800;
STICKLINE(X_42=X_33,X_7,X_17,5,0),COLORFF8800;
STICKLINE(X_42=X_34,X_18,X_7,5,0),COLORFF8800;
STICKLINE(X_42=X_35,X_8,X_18,5,0),COLORFF8800;
STICKLINE(X_42=X_36,X_19,X_8,5,0),COLORFF8800;
STICKLINE(X_42=X_37,X_9,X_19,5,0),COLORFF8800;
STICKLINE(X_42=X_38,X_20,X_8,5,0),COLORFF8800;
STICKLINE(X_42=X_39,X_10,X_20,5,0),COLORFF8800;
STICKLINE(X_42=X_40,X_21,X_10,5,0),COLORFF8800;
STICKLINE(X_42=X_41,X_11,X_21,1,0),COLORFF8800;
X_43:=X_11-X_1;
X_44:=X_10-X_8;
X_45:=X_9-X_7;
X_46:=X_8-X_6;
X_47:=X_7-X_5;
X_48:=X_6-X_4;
X_49:=X_5-X_3;
X_50:=X_4-X_2;
X_51:=MIN(X_44/X_43,MIN(X_45/X_43,MIN(X_45/X_43,MIN(X_47/X_43,MIN(X_48/X_43,MIN(X_49/X_43,X_50/X_43))))))<0.05;
密集周期:BARSLASTCOUNT(X_51),NODRAW;
STICKLINE(X_44/X_43<0.05,X_10,X_8,5,0),COLOR006600;
STICKLINE(X_45/X_43<0.05,X_9,X_7,5,0),COLOR006600;
STICKLINE(X_46/X_43<0.05,X_8,X_6,5,0),COLOR006600;
STICKLINE(X_47/X_43<0.05,X_7,X_5,5,0),COLOR006600;
STICKLINE(X_48/X_43<0.05,X_6,X_4,5,0),COLOR006600;
STICKLINE(X_49/X_43<0.05,X_5,X_3,5,0),COLOR006600;
STICKLINE(X_50/X_43<0.05,X_4,X_2,5,0),COLOR006600;
峰顶价:IF(X_42=X_22,X_12,IF(X_42=X_23,X_2,IF(X_42=X_24,X_13,IF(X_42=X_25,X_3,IF(X_42=X_26,X_14,IF(X_42=X_27,X_4,IF(X_42=X_28,X_15,IF(X_42=X_29,X_5,IF(X_42=X_30,X_16,IF(X_42=X_31,X_6,IF(X_42=X_32,X_17,IF(X_42=X_33,X_7,IF(X_42=X_34,X_18,IF(X_42=X_35,X_8,IF(X_42=X_36,X_8,IF(X_42=X_37,X_9,IF(X_42=X_38,X_20,IF(X_42=X_39,X_10,IF(X_42=X_40,X_21,IF(X_42=X_41,X_11,0)))))))))))))))))))),NODRAW;
筹码乖离率:(CLOSE-峰顶价)/峰顶价*100,NODRAW;
筹码锁定率:(峰顶价-REF(峰顶价,4))/峰顶价*100,NODRAW;
筹码集中度:(X_21-X_12)/COST(100)*100,NODRAW;
成本:(COST(90)+COST(70)+COST(50)+COST(30)+COST(10))/5,COLORWHITE,LINETHICK2;
MA1:MA(CLOSE,M1),COLORWHITE;
MA2:MA(CLOSE,M2),COLORMAGENTA;
MA3:MA(CLOSE,M3),COLORGREEN;
MA4:MA(CLOSE,M4),COLORCYAN;
MA5:MA(CLOSE,M5),COLORBLUE,LINETHICK2;
HYDB2:DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X_52:=IF(PERIOD=5,1,0);
X_53:=REF(CLOSE,1)*X_52; |