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_5);
HJ_25:=HJ_24=1 AND REF(HJ_24,1)=0 AND CLOSE>REF(CLOSE,1) AND VOL<REF(VOL,1) AND REF(HJ_22,HJ_19)>REF(HJ_15,HJ_12);
DRAWICON(HJ_25,LOW*1,25);
HJ_26:=IF(HJ_25,HJ_12,0);
HJ_27:=COUNT(CROSS(HJ_2,HJ_3) AND HJ_3<0 AND HJ_2<(-0.25) AND HJ_8<HJ_5,HJ_8);
HJ_28:=IF(HHV(HJ_27,HJ_8),HJ_27,0);
HJ_29:=REF(HJ_27,1)<HJ_28 AND HJ_27=HJ_28;
HJ_30:=BARSLAST(HJ_29);
HJ_31:=IF(HJ_29,HHV(HIGH,HJ_30+1),DRAWNULL);
HJ_32:=IF(HJ_29,LLV(LOW,HJ_30+1),DRAWNULL);
HJ_33:=(HJ_31-HJ_32)/HJ_32*100;
HJ_34:=IF(HJ_29,HJ_8,0);
HJ_35:=COUNT(CROSS(HJ_2,0) AND HJ_8<HJ_5 AND HJ_30<HJ_8,HJ_30);
HJ_36:=REF(HJ_35,1)=0 AND HJ_35=1;
HJ_37:=BARSLAST(HJ_36);
HJ_38:=IF(HJ_36,HHV(HIGH,HJ_30+1),DRAWNULL);
HJ_39:=IF(HJ_36,LLV(LOW,HJ_30+1),DRAWNULL);
HJ_40:=(HJ_38-HJ_39)/HJ_39*100;
HJ_41:=COUNT(CLOSE>REF(HJ_38,HJ_37) AND HJ_37<HJ_30 AND HJ_30<HJ_8 AND HJ_8<HJ_5,HJ_37);
HJ_42:=HJ_41=1 AND REF(HJ_41,1)=0 AND CLOSE>REF(CLOSE,1) AND VOL>REF(VOL,1)*1.5;
DRAWICON(HJ_42,LOW*0.98,26);
HJ_43:=BARSLAST(HJ_42);
DRAWICON(HJ_18,LOW*0.98,7);
DRAWICON(HJ_36,LOW*0.98,41);
龙门_顶:IF(HJ_25,REF(HJ_21,HJ_19),IF(HJ_42,REF(HJ_38,HJ_37),DRAWNULL)),NODRAW,COLORRED;
突破天数:IF(HJ_25,HJ_12,IF(HJ_42,HJ_37,DRAWNULL)),NODRAW,COLORWHITE;
突破总换:IF(HJ_25,SUM(HSL,HJ_12),IF(HJ_42,SUM(HSL,HJ_37),DRAWNULL)),NODRAW,COLORMAGENTA;
突破均换:IF(HJ_25,突破总换/HJ_12,IF(HJ_42,突破总换/HJ_37,DRAWNULL)),NODRAW,COLORGREEN;
振幅:IF(HJ_25,REF(HJ_23,HJ_19),IF(HJ_42,REF(HJ_40,HJ_37),DRAWNULL)),NODRAW,COLORYELLOW;
一浪涨幅:IF(HJ_25,REF(HJ_16,HJ_12),IF(HJ_42,REF(HJ_33,HJ_30),DRAWNULL)),NODRAW,COLORRED;
预测买:IF(HJ_25,(HIGH+LOW)/2,IF(HJ_42,(HIGH+LOW)/2,DRAWNULL)),NODRAW,COLORMAGENTA;
一浪天数:IF(HJ_25,REF(HJ_13,HJ_12),IF(HJ_42,REF(HJ_34,HJ_37),DRAWNULL)),NODRAW,COLORYELLOW;
流通市值:FINANCE(7)*CLOSE/100000000,NODRAW,COLORCYAN;
NOTEXT龙门顶标:DRAWLINE(HJ_18,HJ_21,HJ_25,REF(HJ_21,HJ_19),0),COLORMAGENTA;
STICKLINE(HJ_19>0 AND HJ_19<21,REF(HJ_21,HJ_19),REF(HJ_21,HJ_19),1,0),COLORMAGENTA;
NOTEXT龙门顶底:DRAWLINE(HJ_36,HJ_38,HJ_42,REF(HJ_38,HJ_37),0),COLORYELLOW;
STICKLINE(HJ_37>0 AND HJ_37<21,REF(HJ_38,HJ_37),REF(HJ_38,HJ_37),1,0),COLORYELLOW;
DRAWNUMBER(HJ_25,HIGH*1.04,INTPART(SUM(ZJBY.净流入,HJ_12))),COLORYELLOW;
DRAWNUMBER(HJ_42,HIGH*1.04,INTPART(SUM(ZJBY.净流入,HJ_37))),COLORYELLOW;
DRAWTEXT_FIX(1,0,0,0,1),COLOR0080FF;
DRAWTEXT_FIX(1,0.03,0,0,HYBLOCK),COLOR0080FF;
DRAWTEXT_FIX(1,0,0.04,0,2),COLORYELLOW;
DRAWTEXT_FIX(1,0.03,0.04,0,DYBLOCK),COLORYELLOW;
HJ_44:=IF(HJ_1=1,HHV(HIGH,HT),0);
HJ_45:=IF(HJ_1=1,LLV(LOW,LT),1);
HJ_46:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(LOW=HJ_45)+1))+1;
HJ_47:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(HIGH=HJ_44)+1))+1;
HJ_48:=IF(CLOSE>100,SUM(HIGH*VOL,HJ_47)/SUM(VOL,HJ_47),SUM(AMOUNT,HJ_47)/SUM(VOL,HJ_47)/100*SUM(HIGH,HJ_47)/SUM(CLOSE,HJ_47));
HJ_49:=IF(CLOSE>100,SUM(LOW*VOL,HJ_46)/SUM(VOL,HJ_46),SUM(AMOUNT,HJ_46)/SUM(VOL,HJ_46)/100*SUM(LOW,HJ_46)/SUM(CLOSE,HJ_46));
NOTEXT点金_压:IF(REF(HIGH,HJ_47)>REF(HIGH,HJ_47+1) AND REF(HIGH,HJ_47)>REF(HIGH,HJ_47-1),HJ_49,HJ_48),COLORRED,LINETHICK2;
NOTEXT点金_支:IF(REF(HIGH,HJ_46)>REF(HIGH,HJ_46+1) AND REF(HIGH,HJ_46)>REF(HIGH,HJ_46-1),HJ_48,HJ_49),COLORGREEN,LINETHICK2;
HJ_50:=IF(CLOSE>100,SUM(LOW*VOL,HJ_47)/SUM(VOL,HJ_47),SUM(AMOUNT,HJ_47)/SUM(VOL,HJ_47)/100*SUM(LOW,HJ_47)/SUM(CLOSE,HJ_47));
HJ_51:=IF(CLOSE>100,SUM(HIGH*VOL,HJ_46)/SUM(VOL,HJ_46),SUM(AMOUNT,HJ_46)/SUM(VOL,HJ_46)/100*SUM(HIGH,HJ_46)/SUM(CLOSE,HJ_46));
NOTEXT点金_压1:IF(REF(HIGH,HJ_47)>REF(HIGH,HJ_47+1) AND REF(HIGH,HJ_47)>REF(HIGH,HJ_47-1),HJ_51,HJ_50),COLORLIMAGENTA;
NOTEXT点金_支1:IF(REF(HIGH,HJ_46)>REF(HIGH,HJ_46+1) AND REF(HIGH,HJ_46)>REF(HIGH,HJ_46-1),HJ_50,HJ_51),COLOR00FF7F;
DRAWNUMBER(ISLASTBAR,NOTEXT点金_压*1.005,CONST(NOTEXT点金_压)),COLORRED;
DRAWNUMBER(ISLASTBAR,NOTEXT点金_支*1.005,CONST(NOTEXT点金_支)),COLORGREEN;
DRAWNUMBER(ISLASTBAR,NOTEXT点金_压1*1.005,CONST(NOTEXT点金_压1)),COLORLIMAGENTA;
DRAWNUMBER(ISLASTBAR,NOTEXT点金_支1*1.005,CONST(NOTEXT点金_支1)),COLOR00FF7F;
HJ_52:=CLOSE>REF(CLOSE,4);
HJ_53:=BARSLASTCOUNT(HJ_52);
HJ_54:=HJ_53=9;
HJ_55:=ISLASTBAR AND BETWEEN(HJ_53,1,8);
HJ_56:=(BACKSET(HJ_54>0,9) OR BACKSET(HJ_55>0,HJ_53))*HJ_53;
DRAWTEXT(HJ_56>0,HIGH*1.02,VAR2STR(HJ_56,0)),COLORMAGENTA;
DRAWNUMBER(HJ_53=9,HIGH*1.02,9),COLORGREEN;
HJ_57:=CLOSE<REF(CLOSE,4);
HJ_58:=BARSLASTCOUNT(HJ_57);
HJ_59:=HJ_58=9;
HJ_60:=ISLASTBAR AND BETWEEN(HJ_58,1,8);
HJ_61:=(BACKSET(HJ_59>0,9) OR BACKSET(HJ_60>0,HJ_58))*HJ_58;
DRAWTEXT(HJ_61>0,LOW*0.98,VAR2STR(HJ_61,0)),COLORMAGENTA;
DRAWNUMBER(HJ_58=9,LOW*0.98,9),COLORGREEN;
{-----------------------------------} |