涨%:ROUND(INDEXADV/(INDEXADV+INDEXDEC)*100),NODRAW,COLORRED;
流通市值:FINANCE(40)/100000000,NODRAW,COLORRED;
HJ_1:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN,VOL);
HJ_2:=HJ_1*10000/FINANCE(7);
HJ_3:=AMOUNT/VOL/100;
HJ_4:=(CLOSE+0.01-REF(CLOSE,1))/REF(CLOSE,1)>=0.1 AND (CLOSE-0.01-REF(CLOSE,1))/REF(CLOSE,1)<=0.1 AND CLOSE=HIGH;
HJ_5:=IF(CURRBARSCOUNT=1,REF(CLOSE,1)*1.1,DRAWNULL);
STICKLINE(CURRBARSCOUNT=1,HJ_5,MAX(OPEN,CLOSE),(-1),(-1)),COLORGRAY;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
HJ_6:=IF(CURRBARSCOUNT=1,REF(CLOSE,1)*0.9,DRAWNULL);
STICKLINE(CURRBARSCOUNT=1,HJ_6,MIN(OPEN,CLOSE),(-1),(-1)),COLORBLUE;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
HJ_7:=CONST(BARSLAST(HJ_2=HHV(HJ_2,180)));
HJ_8:=IF(CURRBARSCOUNT<=HJ_7+1,CONST(REF((CLOSE+OPEN+HIGH+LOW)/4,HJ_7)),DRAWNULL);
HJ_9:=HJ_8;
多空线:HJ_9,COLORYELLOW;
DRAWTEXT(ISLASTBAR,HJ_9,4),COLORYELLOW;
HJ_10:=MA(CLOSE,5);
HJ_11:=MA(CLOSE,6);
HJ_12:=MA(CLOSE,7);
HJ_13:=MA(CLOSE,8);
HJ_14:=MA(CLOSE,9);
HJ_15:=MA(CLOSE,10);
HJ_16:=MA(CLOSE,11);
HJ_17:=MA(CLOSE,12);
HJ_18:=MA(CLOSE,13);
HJ_19:=MA(CLOSE,14);
HJ_20:=MA(CLOSE,15);
HJ_21:=MA(CLOSE,16);
HJ_22:=MA(CLOSE,17);
HJ_23:=MA(CLOSE,18);
HJ_24:=MA(CLOSE,19);
HJ_25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HJ_42=HJ_33,28,IF(HJ_42=HJ_34,29,IF(HJ_42=HJ_35,30,IF(HJ_42=HJ_36,31,32)))))));
HJ_45:=IF(BARSCOUNT(CLOSE)>=31,(HJ_42*3+MA(CLOSE,31))/4,MAX(MA(CLOSE,5),MA(CLOSE,BARSCOUNT(CLOSE))));
变线:HJ_45,COLORWHITE;
HJ_46:=HJ_1=HHV(HJ_1,HJ_44);
HJ_47:=REF(REF(LOW,BARSLAST(HJ_46)),1);
HJ_48:=REF(REF(HJ_3,BARSLAST(HJ_46)),1);
HJ_49:=REF(REF(HIGH,BARSLAST(HJ_46)),1);
HJ_50:=MAX(OPEN,CLOSE)/MIN(OPEN,CLOSE)=HHV(MAX(OPEN,CLOSE)/MIN(OPEN,CLOSE),HJ_44);
HJ_51:=OPEN/CLOSE=HHV(OPEN/CLOSE,HJ_44) AND CLOSE<OPEN;
HJ_52:=CLOSE/OPEN=HHV(CLOSE/OPEN,HJ_44);
STICKLINE(HJ_51,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(HJ_52,OPEN,CLOSE,2,0),COLORRED;
HJ_53:=HJ_52 AND HJ_46;
STICKLINE(HJ_53,OPEN,CLOSE,2,0),COLORYELLOW;
HJ_54:=HJ_51 AND HJ_1>MA(HJ_1,HJ_44) AND CLOSE>变线*1.05 AND HJ_1>MA(HJ_1,5) AND CLOSE<OPEN AND CLOSE<REF(CLOSE,1) AND HIGH/变线=HHV(HIGH/变线,5);
STICKLINE(HJ_54,OPEN,CLOSE,2,0),COLORBLUE;
HJ_55:=REF(HHV((HIGH+CLOSE+LOW+HIGH)/4,7),BARSLAST(CROSS(HJ_15,HJ_10)));
HJ_56:=REF(LLV(MIN(OPEN,CLOSE),10),BARSLAST(CROSS(HJ_10,HJ_15)));
HJ_57:=REF(HHV(MAX(CLOSE,OPEN),7),BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5))));
HJ_58:=REF(LLV(MIN(CLOSE,OPEN),10),BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10))));
HJ_59:=IF(CLOSE>500,HJ_57,HJ_55);
HJ_60:=IF(CLOSE>500,HJ_58,HJ_56);
箱顶:IF(HJ_59=CONST(HJ_59),CONST(HJ_59),DRAWNULL),COLORBROWN,LINETHICK3;
箱底:IF(HJ_60=CONST(HJ_60),HJ_60,DRAWNULL),COLORBLUE,LINETHICK3;
DRAWTEXT(ISLASTBAR,HJ_59,5),COLORBROWN;
DRAWTEXT(ISLASTBAR,HJ_60,6),COLORBLUE;
HJ_61:=MA(INDEXC,5);
HJ_62:=MA(INDEXC,6);
HJ_63:=MA(INDEXC,7);
HJ_64:=MA(INDEXC,8);
HJ_65:=MA(INDEXC,9);
HJ_66:=MA(INDEXC,10);
HJ_67:=MA(INDEXC,11);
HJ_68:=MA(INDEXC,12);
HJ_69:=MA(INDEXC,13);
HJ_70:=MA(INDEXC,14);
HJ_71:=MA(INDEXC,15);
HJ_72:=MA(INDEXC,16);
HJ_73:=MA(INDEXC,17);
HJ_74:=MA(INDEXC,18);
HJ_75:=MA(INDEXC,19);
HJ_76:=MA(INDEXC,20);
HJ_77:=MA(INDEXC,21);
HJ_78:=MA(INDEXC,22);
HJ_79:=MA(INDEXC,23);
HJ_80:=MA(INDEXC,24);
HJ_81:=MA(INDEXC,25);
HJ_82:=MA(INDEXC,26);
HJ_83:=MA(INDEXC,27);
HJ_84:=MA(INDEXC,28);
HJ_85:=MA(INDEXC,29);
HJ_86:=MA(INDEXC,30);
HJ_87:=MA(INDEXC,31);
HJ_88:=MAX(MAX(MAX(MAX(HJ_61,HJ_62),HJ_63),HJ_64),HJ_65);
HJ_89:=MAX(MAX(MAX(MAX(HJ_66,HJ_67),HJ_68),HJ_69),HJ_70);
HJ_90:=MAX(MAX(MAX(MAX(HJ_71,HJ_72),HJ_73),HJ_74),HJ_75);
HJ_91:=MAX(MAX(MAX(MAX(MAX(HJ_76,HJ_77),HJ_78),HJ_79),HJ_80),HJ_81);
HJ_92:=MAX(MAX(MAX(MAX(MAX(HJ_82,HJ_83),HJ_84),HJ_85),HJ_86),HJ_87);
HJ_93:=MAX(MAX(MAX(MAX(HJ_88,HJ_89),HJ_90),HJ_91),HJ_92);
HJ_94:=IF(HJ_93=HJ_61,5,IF(HJ_93=HJ_62,6,IF(HJ_93=HJ_63,7,IF(HJ_93=HJ_64,8,IF(HJ_93=HJ_65,9,IF(HJ_93=HJ_66,10,IF(HJ_93=HJ_67,11,IF(HJ_93=HJ_68,12,IF(HJ_93=HJ_69,13,IF(HJ_93=HJ_70,14,IF(HJ_93=HJ_71,15,IF(HJ_93=HJ_72,16,IF(HJ_93=HJ_73,17,IF(HJ_93=HJ_74,18,IF(HJ_93=HJ_75,19,IF(HJ_93=HJ_76,20,IF(HJ_93=HJ_77,21,IF(HJ_93=HJ_78,22,IF(HJ_93=HJ_79,23,IF(HJ_93=HJ_80,24,IF(HJ_93=HJ_81,25,DRAWNULL)))))))))))))))))))));
HJ_95:=IF(HJ_93=MA(INDEXC,HJ_94),HJ_94,IF(HJ_93=HJ_82,26,IF(HJ_93=HJ_83,27,IF(HJ_93=HJ_84,28,IF(HJ_93=HJ_85,29,IF(HJ_93=HJ_86,30,IF(HJ_93=HJ_87,31,32)))))));
HJ_96:=EVERY(CLOSE/REF(CLOSE,1)>INDEXC/REF(INDEXC,1),5) OR COUNT(CLOSE/REF(CLOSE,1)>INDEXC/REF(INDEXC,1),9)=8;
HJ_97:=COUNT(HJ_96,2) AND DYNAINFO(4)>0 AND IF(CLOSE<OPEN,HJ_1<REF(VOL,1),1);
STICKLINE(HJ_97,HJ_9,HJ_9,5,0),COLORMAGENTA;
HJ_98:=REF(MIN(REF(LOW,BARSLAST(HJ_46)),REF(HIGH,BARSLAST(HJ_46)+1)),1);
HJ_99:=IF(HJ_46,REF(MAX(REF(LOW,BARSLAST(HJ_46)),REF(LOW,BARSLAST(HJ_52 AND CLOSE>OPEN*1.05))),1),MAX(REF(LOW,BARSLAST(HJ_46)),REF(LOW,BARSLAST(HJ_52 AND CLOSE>OPEN*1.05))));
HJ_100:=IF(BETWEEN(HJ_99,HJ_56,HJ_56*1.03),HJ_56,HJ_99);
HJ_101:=MAX(MAX(HHV((HIGH+CLOSE)/2,5),变线+MA(HIGH-变线,HJ_44)),IF(变线>REF(变线,1),变线*1.03,变线));
HJ_102:=IF(CLOSE<HJ_55,MIN(HJ_55,HJ_101),HJ_101);
HJ_103:=REF(HJ_102,1);
止赢:IF(CURRBARSCOUNT<=5,CONST(HJ_103),DRAWNULL),DOTLINE,COLORMAGENTA;
DRAWTEXT(ISLASTBAR,HJ_103,7),COLORMAGENTA;
预埋:IF(ISLASTBAR,HJ_102,DRAWNULL),NODRAW,COLORMAGENTA;
止损:IF(HJ_98=CONST(HJ_98),HJ_98,IF(ISLASTBAR,HJ_98,DRAWNULL)),DOTLINE,COLORGREEN;
DRAWTEXT(ISLASTBAR,止损,8),COLORGREEN;
HJ_104:=变线>HJ_59 AND COUNT(CLOSE>变线,5);
IF(HJ_104,变线,DRAWNULL),COLOR0045FF;
IF(变线<HJ_60,变线,DRAWNULL),COLORCYAN;
{-----------------------------------} |