X_4:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(HIGH=X_1)+1))+1;
X_5:=IF(CLOSE 100,SUM(HIGH*VOL,X_4)/SUM(VOL,X_4),SUM(AMOUNT,X_4)/SUM(VOL,X_4)/100*SUM(HIGH,X_4)/SUM(CLOSE,X_4));
X_6:=IF(CLOSE 100,SUM(LOW*VOL,X_3)/SUM(VOL,X_3),SUM(AMOUNT,X_3)/SUM(VOL,X_3)/100*SUM(LOW,X_3)/SUM(CLOSE,X_3));
点石成金_压:IF(REF(HIGH,X_4) REF(HIGH,X_4+1) AND REF(HIGH,X_4) REF(HIGH,X_4-1),X_6,X_5),COLORRED;
点石成金_支:IF(REF(HIGH,X_3) REF(HIGH,X_3+1) AND REF(HIGH,X_3) REF(HIGH,X_3-1),X_5,X_6),COLORGREEN;
X_7:=IF(CLOSE 100,SUM(LOW*VOL,X_4)/SUM(VOL,X_4),SUM(AMOUNT,X_4)/SUM(VOL,X_4)/100*SUM(LOW,X_4)/SUM(CLOSE,X_4));
X_8:=IF(CLOSE 100,SUM(HIGH*VOL,X_3)/SUM(VOL,X_3),SUM(AMOUNT,X_3)/SUM(VOL,X_3)/100*SUM(HIGH,X_3)/SUM(CLOSE,X_3));
点石成金_压1:IF(REF(HIGH,X_4) REF(HIGH,X_4+1) AND REF(HIGH,X_4) REF(HIGH,X_4-1),X_8,X_7),COLORRED;
点石成金_支1:IF(REF(HIGH,X_3) REF(HIGH,X_3+1) AND REF(HIGH,X_3) REF(HIGH,X_3-1),X_7,X_8),COLORGREEN;
STICKLINE(点石成金_压 0,点石成金_压,点石成金_压1,0,0),COLORRED;
STICKLINE(点石成金_支 0,点石成金_支,点石成金_支1,0,0),COLORGREEN;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X_9:=AMOUNT/VOL/100;
X_10:=CLOSE OPEN AND REF(CLOSE,1) X_9 AND CLOSE X_9 AND CLOSE
STICKLINE(X_10,OPEN,CLOSE,1,0),COLORLICYAN;
X_11:=OPEN CLOSE AND CLOSE X_9 AND X_9 REF(CLOSE,1);
STICKLINE(X_11,OPEN,CLOSE,1,0),COLORRED;
X_12:=VOL REF(VOL,1)*0.95 AND VOL REF(VOL,1)*1.05;
X_13:=WINNER(CLOSE)-WINNER(OPEN) =0.2 AND X_12;
STICKLINE(X_13,OPEN,CLOSE,1,0),COLORBLUE;
X_14:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_15:=NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) AND X_14 =4.945;
X_16:=NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) AND X_14 =(-4.945);
涨停价:IF(X_15,REF(CLOSE,1)*1.05,REF(CLOSE,1)*1.1),NODRAW,COLORRED;
跌停价:IF(X_16,REF(CLOSE,1)*0.95,REF(CLOSE,1)*0.9),NODRAW,COLORGREEN;
X_17:=REF(CLOSE,1);{www.9m8.cn 九毛八公式指标网}
X_18:=CLOSE=ZTPRICE(REF(CLOSE,1),0.1);
STICKLINE(X_18,OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE(X_18,OPEN,CLOSE,1,0),COLORMAGENTA;
X_19:=CLOSE=DTPRICE(REF(CLOSE,1),0.1);
STICKLINE(X_19,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(X_19,HIGH,LOW,0,1),COLORGREEN;
流通市值:FINANCE(40)/100000000,NODRAW;
MA5角度:ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*180/3.142,NODRAW,COLORRED;
循环年位置:(CLOSE-LLV(CLOSE,225))/(HHV(CLOSE,225)-LLV(CLOSE,225))*100,NODRAW,COLORGREEN;
X_20:=HHV(VOL,10);{www.9m8.cn 九毛八公式指标网}
X_21:=BARSLAST(X_20=VOL);
X_22:=CROSS(REF(MAX(CLOSE,OPEN),X_21),CLOSE);
STICKLINE(X_22,MAX(CLOSE,OPEN)*1.02,MIN(CLOSE,OPEN)*0.98,0,1),COLORRED;
STICKLINE(X_22,(OPEN+CLOSE)/2,(OPEN+CLOSE)/2,10,0),COLORRED;
DRAWICON(OPEN REF(MAX(CLOSE,OPEN),1) AND CLOSE OPEN AND CLOSE REF(CLOSE,1) AND CLOSE MA(CLOSE,5),LOW*0.97,11);
DRAWICON(OPEN REF(MAX(CLOSE,OPEN),1) AND CLOSE OPEN AND CLOSE REF(CLOSE,1) AND CLOSE MA(CLOSE,5),LOW*0.97,11);
X_23:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5);
X_24:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2) AND REFX(CLOSE,3) REF(CLOSE,1) AND REFX(CLOSE,4) CLOSE AND REFX(CLOSE,5) REFX(CLOSE,1) AND REFX(CLOSE,6) REFX(CLOSE,2) AND REFX(CLOSE,7) REFX(CLOSE,3) AND REFX(CLOSE,8) REFX(CLOSE,4);
X_25:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6);
X_26:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2) AND REFX(CLOSE,3) REF(CLOSE,1) AND REFX(CLOSE,4) CLOSE AND REFX(CLOSE,5) REFX(CLOSE,1) AND REFX(CLOSE,6) REFX(CLOSE,2) AND REFX(CLOSE,7) REFX(CLOSE,3);
X_27:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7);
X_28:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2) AND REFX(CLOSE,3) REF(CLOSE,1) AND REFX(CLOSE,4) CLOSE AND REFX(CLOSE,5) REFX(CLOSE,1) AND REFX(CLOSE,6) REFX(CLOSE,2);
X_29:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7) AND REF(CLOSE,4) REF(CLOSE,8);
X_30:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2) AND REFX(CLOSE,3) REF(CLOSE,1) AND REFX(CLOSE,4) CLOSE AND REFX(CLOSE,5) REFX(CLOSE,1);
X_31:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7) AND REF(CLOSE,4) REF(CLOSE,8) AND REF(CLOSE,5) REF(CLOSE,9);
X_32:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2) AND REFX(CLOSE,3) REF(CLOSE,1) AND REFX(CLOSE,4) CLOSE;
X_33:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7) AND REF(CLOSE,4) REF(CLOSE,8) AND REF(CLOSE,5) REF(CLOSE,9) AND REF(CLOSE,6) REF(CLOSE,10);
X_34:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2) AND REFX(CLOSE,3) REF(CLOSE,1);
X_35:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7) AND REF(CLOSE,4) REF(CLOSE,8) AND REF(CLOSE,5) REF(CLOSE,9) AND REF(CLOSE,6) REF(CLOSE,10) AND REF(CLOSE,7) REF(CLOSE,11);
X_36:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2);
X_37:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7) AND REF(CLOSE,4) REF(CLOSE,8) AND REF(CLOSE,5) REF(CLOSE,9) AND REF(CLOSE,6) REF(CLOSE,10) AND REF(CLOSE,7) REF(CLOSE,11) AND REF(CLOSE,8) REF(CLOSE,12);
X_38:=REFX(CLOSE,1) REF(CLOSE,3);
X_39:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7) AND REF(CLOSE,4) REF(CLOSE,8) AND REF(CLOSE,5) REF(CLOSE,9) AND REF(CLOSE,6) REF(CLOSE,10) AND REF(CLOSE,7) REF(CLOSE,11) AND REF(CLOSE,8) REF(CLOSE,12) AND REF(CLOSE,9) REF(CLOSE,13);
X_40:=IF(PERIOD 4,LOW*(1-(PERIOD+1)/10*0.01),LOW*0.98);
X_41:=IF(PERIOD 4,HIGH*(1+(PERIOD+1)/10*0.01),HIGH*1.05);
X_42:=CURRBARSCOUNT-1;
DRAWNUMBER(X_23 AND (X_24 OR X_42=0 OR (X_42=1 AND X_38) OR (X_42=2 AND X_36) OR (X_42=3 AND X_34) OR (X_42=4 AND X_32) OR (X_42=5 AND X_30) OR (X_42=6 AND X_28) OR (X_42=7 AND X_26)),X_40,1),COLORMAGENTA;
DRAWNUMBER(X_25 AND (X_26 OR X_42=0 OR (X_42=1 AND X_38) OR (X_42=2 AND X_36) OR (X_42=3 AND X_34) OR (X_42=4 AND X_32) OR (X_42=5 AND X_30) OR (X_42=6 AND X_28)),X_40,2),COLORMAGENTA;
DRAWNUMBER(X_27 AND (X_28 OR X_42=0 OR (X_42=1 AND X_38) OR (X_42=2 AND X_36) OR (X_42=3 AND X_34) OR (X_42=4 AND X_32) OR (X_42=5 AND X_30)),X_40,3),COLORMAGENTA;
DRAWNUMBER(X_29 AND (X_30 OR X_42=0 OR (X_42=1 AND X_38) OR (X_42=2 AND X_36) OR (X_42=3 AND X_34) OR (X_42=4 AND X_32)),X_40,4),COLORMAGENTA;
DRAWNUMBER(X_31 AND (X_32 OR X_42=0 OR (X_42=1 AND X_38) OR (X_42=2 AND X_36) OR (X_42=3 AND X_34)),X_40,5),COLORMAGENTA;
DRAWNUMBER(X_33 AND (X_34 OR X_42=0 OR (X_42=1 AND X_38) OR (X_42=2 AND X_36)),X_40,6),COLORMAGENTA;
DRAWNUMBER(X_35 AND (X_36 OR X_42=0 OR (X_42=1 AND X_38)),X_40,7),COLORMAGENTA;
DRAWNUMBER(X_37 AND (X_38 OR X_42 1),X_40,8),COLORMAGENTA;
DRAWNUMBER(X_39,X_40,9),COLORGREEN;
X_43:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5);
X_44:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2) AND REFX(CLOSE,3) REF(CLOSE,1) AND REFX(CLOSE,4) CLOSE AND REFX(CLOSE,5) REFX(CLOSE,1) AND REFX(CLOSE,6) REFX(CLOSE,2) AND REFX(CLOSE,7) REFX(CLOSE,3) AND REFX(CLOSE,8) REFX(CLOSE,4);
X_45:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6);
X_46:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2) AND REFX(CLOSE,3) REF(CLOSE,1) AND REFX(CLOSE,4) CLOSE AND REFX(CLOSE,5) REFX(CLOSE,1) AND REFX(CLOSE,6) REFX(CLOSE,2) AND REFX(CLOSE,7) REFX(CLOSE,3);
X_47:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7);
X_48:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2) AND REFX(CLOSE,3) REF(CLOSE,1) AND REFX(CLOSE,4) CLOSE AND REFX(CLOSE,5) REFX(CLOSE,1) AND REFX(CLOSE,6) REFX(CLOSE,2);
X_49:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7) AND REF(CLOSE,4) REF(CLOSE,8);
X_50:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2) AND REFX(CLOSE,3) REF(CLOSE,1) AND REFX(CLOSE,4) CLOSE AND REFX(CLOSE,5) REFX(CLOSE,1);
X_51:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7) AND REF(CLOSE,4) REF(CLOSE,8) AND REF(CLOSE,5) REF(CLOSE,9);
X_52:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2) AND REFX(CLOSE,3) REF(CLOSE,1) AND REFX(CLOSE,4) CLOSE;
X_53:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7) AND REF(CLOSE,4) REF(CLOSE,8) AND REF(CLOSE,5) REF(CLOSE,9) AND REF(CLOSE,6) REF(CLOSE,10);
X_54:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2) AND REFX(CLOSE,3) REF(CLOSE,1);
X_55:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7) AND REF(CLOSE,4) REF(CLOSE,8) AND REF(CLOSE,5) REF(CLOSE,9) AND REF(CLOSE,6) REF(CLOSE,10) AND REF(CLOSE,7) REF(CLOSE,11);
X_56:=REFX(CLOSE,1) REF(CLOSE,3) AND REFX(CLOSE,2) REF(CLOSE,2);
X_57:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7) AND REF(CLOSE,4) REF(CLOSE,8) AND REF(CLOSE,5) REF(CLOSE,9) AND REF(CLOSE,6) REF(CLOSE,10) AND REF(CLOSE,7) REF(CLOSE,11) AND REF(CLOSE,8) REF(CLOSE,12);
X_58:=REFX(CLOSE,1) REF(CLOSE,3);
X_59:=CLOSE REF(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,5) AND REF(CLOSE,2) REF(CLOSE,6) AND REF(CLOSE,3) REF(CLOSE,7) AND REF(CLOSE,4) REF(CLOSE,8) AND REF(CLOSE,5) REF(CLOSE,9) AND REF(CLOSE,6) REF(CLOSE,10) AND REF(CLOSE,7) REF(CLOSE,11) AND REF(CLOSE,8) REF(CLOSE,12) AND REF(CLOSE,9) REF(CLOSE,13);
DRAWNUMBER(X_43 AND (X_44 OR X_42=0 OR (X_42=1 AND X_58) OR (X_42=2 AND X_56) OR (X_42=3 AND X_54) OR (X_42=4 AND X_52) OR (X_42=5 AND X_50) OR (X_42=6 AND X_48) OR (X_42=7 AND X_46)),X_41,1),COLORMAGENTA;
DRAWNUMBER(X_45 AND (X_46 OR X_42=0 OR (X_42=1 AND X_58) OR (X_42=2 AND X_56) OR (X_42=3 AND X_54) OR (X_42=4 AND X_52) OR (X_42=5 AND X_50) OR (X_42=6 AND X_48)),X_41,2),COLORMAGENTA;
DRAWNUMBER(X_47 AND (X_48 OR X_42=0 OR (X_42=1 AND X_58) OR (X_42=2 AND X_56) OR (X_42=3 AND X_54) OR (X_42=4 AND X_52) OR (X_42=5 AND X_50)),X_41,3),COLORMAGENTA;
DRAWNUMBER(X_49 AND (X_50 OR X_42=0 OR (X_42=1 AND X_58) OR (X_42=2 AND X_56) OR (X_42=3 AND X_54) OR (X_42=4 AND X_52)),X_41,4),COLORMAGENTA;
DRAWNUMBER(X_51 AND (X_52 OR X_42=0 OR (X_42=1 AND X_58) OR (X_42=2 AND X_56) OR (X_42=3 AND X_54)),X_41,5),COLORMAGENTA;
DRAWNUMBER(X_53 AND (X_54 OR X_42=0 OR (X_42=1 AND X_58) OR (X_42=2 AND X_56)),X_41,6),COLORMAGENTA;
DRAWNUMBER(X_55 AND (X_56 OR X_42=0 OR (X_42=1 AND X_58)),X_41,7),COLORMAGENTA;
DRAWNUMBER(X_57 AND (X_58 OR X_42 1),X_41,8),COLORMAGENTA;
DRAWNUMBER(X_59,X_41,9),COLORGREEN;