主图
JX0:=IF(C>=MA(C,5),1,-1);
JX1:=IF(C>=MA(C,10),1,-1);
JX2:=IF(C>=MA(C,20),1,-1);
JX3:=IF(C>=MA(C,30),1,-1);
JX4:=IF(C>=MA(C,60),1,-1);
JX5:=IF(MA(C,5)>=REF(MA(C,5),1),1,-1);
JX6:=IF(MA(C,10)>=REF(MA(C,10),1),1,-1);
JX7:=IF(MA(C,20)>=REF(MA(C,20),1),1,-1);
JX8:=IF(MA(C,30)>=REF(MA(C,30),1),1,-1);
JX9:=IF(MA(C,60)>=REF(MA(C,60),1),1,-1);
JX10:=(JX0+JX1+JX2+JX5+JX6+JX7)/6*100;
JX11:=(JX0+JX1+JX2+JX3+JX4+JX5+JX6+JX7+JX8+JX9)/10*100;
STICKLINE(JX10=100,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0)COLOR404050;
STICKLINE(JX11=100,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),0,0)COLOR001050;
{倍量阴}
BLY:=V/REF(V,1)>1.8 AND O>C;
BLYH:=REF(H,BARSLAST(BLY));
BLYL:=REF(L,BARSLAST(BLY));
STICKLINE(L,BLYH,BLYL,5,0)COLORLICYAN;
{涨停画线}
ZTB:=C/REF(C,1)>1.093 AND C=H;
ZTH:=REF(H,BARSLAST(ZTB));
ZTL:=REF(L,BARSLAST(ZTB));
NOTEXTA:ZTH,COLORMAGENTA,DOTLINE;
NOTEXTB:ZTL,COLORBLUE,DOTLINE;
{涨停均价}
DRAWTEXT(CURRBARSCOUNT<=10 AND C/REF(C,1)>1.093 AND C=H,AMOUNT/V/100
,'---------------------------------------------------------------------------------------------')COLORYELLOW;
DRAWKLINE(H,O,L,C);
DRAWTEXT_FIX(ISLASTBAR,0.35,0.15,0,CODE)COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.42,0.15,0,STKNAME)COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.53,0.15,0,HYBLOCK)COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.62,0.15,0,DYBLOCK)COLORB4EEB4;
DRAWTEXT_FIX(ISLASTBAR,0.35,0.25,0,GNBLOCK)COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.35,0.15,0,CODE)COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.42,0.15,0,STKNAME)COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.53,0.15,0,HYBLOCK)COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.62,0.15,0,DYBLOCK)COLORB4EEB4;
DRAWTEXT_FIX(ISLASTBAR,0.35,0.25,0,GNBLOCK)COLORWHITE;
{缠论波浪}
PL5:=ZIG(3,5);
EN1:=PL5>REF(PL5,1) AND REF(PL5,1)<=REF(PL5,2) AND REF(PL5,2)<=REF(PL5,3);
EX1:=PL5<REF(PL5,1) AND REF(PL5,1)>=REF(PL5,2) AND REF(PL5,2)>=REF(PL5,3);
PL10:=ZIG(3,20);
EN2:=PL10>REF(PL10,1) AND REF(PL10,1)<=REF(PL10,2) AND REF(PL10,2)<=REF(PL10,3);
EX2:=PL10<REF(PL10,1) AND REF(PL10,1)>=REF(PL10,2) AND REF(PL10,2)>=REF(PL10,3);
PL20:=ZIG(3,30);
EN3:=PL20>REF(PL20,1) AND REF(PL20,1)<=REF(PL20,2) AND REF(PL20,2)<=REF(PL20,3);
EX3:=PL20<REF(PL20,1) AND REF(PL20,1)>=REF(PL20,2) AND REF(PL20,2)>=REF(PL20,3);
走强1:=BARSLAST(PL5<REF(PL5,1));
走弱1:=BARSLAST(PL5>REF(PL5,1));
走强2:=BARSLAST(PL10<REF(PL10,1));
走弱2:=BARSLAST(PL10>REF(PL10,1));
走强3:=BARSLAST(PL20<REF(PL20,1));
走弱3:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)')COLORFFFF00;
DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)')COLORFFFF00;
DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)')COLORFFFF00;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.03,'1')COLORWHITE;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'↖2')COLORWHITE;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.03,'3')COLORWHITE;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'↖4')COLORWHITE;
DRAWTEXT(EX2 AND (PL20>REF(PL20,1) OR REF(PL20>REF(PL20,1),1) OR ZTJD10=1),H*1.020,'5')COLORWHITE;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.05,'一')COLOR00FFFF,LINETHICK3;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.94,'二')COLOR00FFFF,LINETHICK3;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2,H*1.05,'三')COLOR00FFFF,LINETHICK3;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.94,'四')COLOR00FFFF,LINETHICK3;
XG1:=EX2;
XG2:=PL20>REF(PL20,1);
XG3:=ZTJZ10=3;
DRAWTEXT(REF(XG2*XG3,1) AND XG1,H*1.06,'五')COLORWHITE,LINETHICK3;
DRAWTEXT(REF(XG2*XG3,1) AND XG1,H*0.99,'●')COLOR0000FF,LINETHICK3;
DRAWTEXT(REF(XG2*XG3,1) AND XG1,H*0.97,'●')COLOR00FFFF,LINETHICK3;
{假阴真阳}
STICKLINE(C<O AND C>REF(C,1),H,L,0,0)COLORLIRED;
STICKLINE(C<O AND C>REF(C,1),C,O,3,1)COLORLIRED;
{真阴假阳}
STICKLINE(C>O AND C<REF(C,1),H,L,0,0)COLORAA00AA;
STICKLINE(C>O AND C<REF(C,1),C,O,3,1)COLORAA00AA;
{涨幅为零}
STICKLINE(C=REF(C,1),H,L,0.1,0)COLORWHITE;
STICKLINE(C=REF(C,1),C,O,3,0)COLORWHITE;
{蹲跳K}
DRAWICON(L>=REF(L,1) AND H<=REF(H,1) AND JX11=100,L*0.998,1);
DRAWICON(L>=REF(L,1) AND H<=REF(H,1) AND JX11=100,H*1.035,2);
{红三兵}
STICKLINE(EVERY(C>O,3) AND EVERY(C>REF(C,1),3) AND O<>H,O,C,1.5,0)COLORRED;
{黑三兵}
DRAWICON(EVERY(C<O,3) AND EVERY(C<REF(C,1),3) AND O<>L,L,28);
{涨停K}
STICKLINE(ZTB,O,C,0,0)COLORYELLOW;
STICKLINE(ZTB,O,(C+O)/2,0.1,0)COLORYELLOW;
{回踩关注}
DRAWICON(BARSLAST(ZTB)<=5 AND BARSLAST(ZTB)>1 AND L<=ZTL AND C>ZTL AND EVERY(C<ZTH,2) AND ZTB=0 AND O<>L,L,29);
幅图1
X_1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
X_2:=DMA(CLOSE,X_1);
X_3:=(1+9/100)*X_2;
X_4:=(1-9/100)*X_2;
X_5:=CLOSE/REF(CLOSE,1)>1.092 AND CLOSE/REF(CLOSE,1)<1.1035 AND CLOSE=HIGH;
X_6:=REF(COUNT(X_5,6)=1,1);
X_7:=REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,2)<(-5),1) OR REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,5)<(-10),1);
X_8:=AMOUNT/VOL/7;
X_9:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
X_10:=SUM(AMOUNT,10)/X_8/7;
X_11:=DMA(X_9,VOL/X_10);
X_12:=(CLOSE-X_11)/X_11*100;
X_13:=CROSS(X_12,(-5)) OR CROSS(X_12,(-10));
X_14:=CLOSE/REF(CLOSE,20)<1.3 OR REF(CLOSE,3)/REF(CLOSE,20)<1.3;
X_15:=X_6 AND X_7 AND CLOSE>X_4 AND CLOSE<X_2 AND CLOSE/REF(CLOSE,1)>1.01 AND X_13 AND X_14;
X_16:=FILTER(X_15,2);
STICKLINE(X_16,0.5,0.9,0.5,0),COLORWHITE;
STICKLINE(X_16,0,0.5,0.5,0),COLORMAGENTA;
DRAWICON(X_16,1.2,1);
幅图2
DRAWGBK(OPEN>CLOSE,RGB(57,35,146),RGB(0,0,0),0,125,0);
X_1:=(HIGH+LOW+CLOSE)/3;
X_2:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
X_3:=ABS(X_2*(X_1-MIN(CLOSE,OPEN)));
X_4:=X_2*(MIN(OPEN,CLOSE)-LOW);
X_5:=X_2*(HIGH-MAX(OPEN,CLOSE));
X_6:=ABS(X_2*(MAX(CLOSE,OPEN)-X_1));
X_7:=X_3-X_4;
X_8:=X_5-X_6;
X_9:=EMA(HHV(X_3,30),1);
X_10:=AMOUNT=LLV(AMOUNT,5);
X_11:=AMOUNT=LLV(AMOUNT,10);
X_12:=AMOUNT=LLV(AMOUNT,20);
X_13:=CROSS(ZIG(3,5),REF(ZIG(3,5),1));
X_14:=CROSS(REF(ZIG(3,5),1),ZIG(3,5));
STICKLINE(X_13>=X_14 AND ZIG(3,5)>REF(ZIG(3,5),1),0,X_9,5,0),COLOR004500;
STICKLINE(X_13<X_14 OR ZIG(3,5)<REF(ZIG(3,5),1),0,X_9,5,0),COLORGRAY;
STICKLINE(CLOSE>MA(CLOSE,30),0,VOL,3,1),COLORRED;
STICKLINE(CLOSE<MA(CLOSE,30),0,VOL,3,1),COLORFF937F;
CONST(REF(X_10,0)),COLORYELLOW,LINETHICK2;
CONST(REF(X_11,0)),COLORBLUE,LINETHICK2;
CONST(REF(X_12,0)),COLORMAGENTA,LINETHICK2;
成交额:AMOUNT,NODRAW;
STICKLINE(成交额,成交额,0,2.5,1),COLORGRAY;
STICKLINE(X_7>=0,0,X_7,2,0),COLORRED;
STICKLINE(X_7<0,0,X_7,2,0),COLORLIBLUE;
今天资金进出:X_3+X_5-(X_4+X_6),COLORWHITE,LINETHICK0;
STICKLINE(X_5-X_6>0 AND X_7>0,X_5-X_6+X_7,X_7,2,0),COLORLIRED;
STICKLINE(X_5-X_6>0 AND X_7<0,X_5-X_6,0,2,0),COLORLIRED;
STICKLINE(X_5-X_6<0 AND X_7<0,X_5-X_6+X_7,X_7,2,0),COLORLIGRAY;
STICKLINE(X_5-X_6<0 AND X_7>0,X_5-X_6,0,2,0),COLORLIGRAY;
STICKLINE(今天资金进出>0,今天资金进出*1.003,今天资金进出,2.5,0),COLORYELLOW;
STICKLINE(今天资金进出<0,今天资金进出*0.98,今天资金进出,2.5,0),COLORBLUE;
X_15:=VOL*100/CAPITAL;
X_16:=MA(X_15,4);
X_17:=MA(X_15,9);
X_18:=MA(X_15,17);
X_19:=MA(X_15,34);
X_20:=(X_16+X_17+X_18+X_19)/4;
主力能量:1000*(X_16-X_20),NODRAW,COLORMAGENTA;
X_21:=X_17-X_20;
X_22:=X_18-X_20;
X_23:=X_19-X_20;
X_24:=REFDATE(HHV(X_23,108),DATE)*1.02-REFDATE(LLV(X_22,108),DATE);
X_25:=(X_24+REFDATE(HHV(X_22,108),DATE))*1.02-REFDATE(LLV(X_21,108),DATE);
X_26:=(X_25+REFDATE(HHV(X_21,108),DATE))*1.02-REFDATE(LLV(主力能量,108),DATE);
机构操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),1.5*X_9,1.8*X_9+X_26*5+主力能量*2,0.5,0),COLORYELLOW;
机构减仓:STICKLINE(主力能量>=0 AND 主力能量<REF(主力能量,1),1.5*X_9,1.8*X_9+X_26*5+主力能量*2,0.5,1),COLORRED;
机构反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),1.5*X_9,1.8*X_9-X_26*5-主力能量*5,0.5,1),COLORGREEN;
机构寻底:STICKLINE(主力能量<0 AND 主力能量<REF(主力能量,1),1.5*X_9,1.8*X_9-X_26*5-主力能量*5,0.5,1),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,1.5*X_9,1.5*X_9),126),COLORMAGENTA;
X_27:=LLV(VOL,30);
X_28:=LLV(VOL,120);
X_29:=HHV(VOL,60);
X_30:=HHV(VOL,250);
量能饱和:AMOUNT/CLOSE/HHV(AMOUNT/CLOSE,26)*100,NODRAW,COLORLIBLUE;
十日换手:SUM(VOL/CAPITAL*100,10),COLORGRAY;
X_31:=REF(CLOSE,1);
X_32:=(OPEN-CLOSE)/X_31;
X_33:=HHV(CLOSE,20);
X_34:=(X_33-OPEN)/X_33;
X_35:=IF(X_32>0.05 AND X_34<0.05 AND VOL>2.2*MA(CLOSE,60),1,0);
X_36:=COUNT(VOL=X_28,7);
STICKLINE(VOL=X_27,VOL,0,(-2),0),COLORMAGENTA;
STICKLINE(VOL=X_28,VOL,0,(-1),0),COLORBLUE;
STICKLINE(VOL=X_29,0,VOL,(-1),0),COLORLIRED;
STICKLINE(VOL=X_30,0,VOL,(-1),0),COLORYELLOW;
STICKLINE(X_35,VOL,VOL*0.4,(-1),0),COLORGREEN;
STICKLINE(X_36>0 AND CROSS(CLOSE,MA(CLOSE,6)),VOL,0,(-1),0),COLORRED;
X_37:=(20*HIGH+19*REF(HIGH,1)+18*REF(HIGH,2)+17*REF(HIGH,3)+16*REF(HIGH,4)+15*REF(HIGH,5)+14*REF(HIGH,6)+13*REF(HIGH,7)+12*REF(HIGH,8)+11*REF(HIGH,9)+10*REF(HIGH,10)+9*REF(HIGH,11)+8*REF(HIGH,12)+7*REF(HIGH,13)+6*REF(HIGH,14)+5*REF(HIGH,15)+4*REF(HIGH,16)+3*REF(HIGH,17)+2*REF(HIGH,18)+REF(HIGH,20))/210;
X_38:=12000*VOL/X_37;
X_39:=12000*ACTINVOL/X_37;
X_40:=12000*ACTOUTVOL/X_37;
X_41:=X_39-X_40;
X_42:=MA(X_41,5);
X_43:=MA(X_41,13);
X_44:=MA(X_41,30);
X_45:=MA(X_41,100);
X_46:=LARGETRDINNUM;
X_47:=LARGETRDOUTNUM;
X_48:=BIDORDERVOL;
X_49:=OFFERORDERVOL;
X_50:=AVGOFFERPX;
X_51:=ISBUYORDER;
X_52:=DYNAINFO(51);
X_53:=DYNAINFO(60);
X_54:=DYNAINFO(61);
DRAWTEXT_FIX(1,0,0.01,0,STRCAT(127,VAR2STR(X_46,0))),COLORYELLOW;
DRAWTEXT_FIX(1,0.25,0.01,0,STRCAT(128,VAR2STR(X_47,0))),COLORYELLOW;
DRAWTEXT_FIX(1,0.55,0.01,0,STRCAT(129,VAR2STR(X_53,0))),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.1,0,130),COLORCYAN;
DRAWNUMBER_FIX(1,0.12,0.1,0,X_50),COLORMAGENTA;
DRAWTEXT_FIX(1,0.25,0.1,0,STRCAT(131,VAR2STR(X_51,0))),COLORCYAN;
DRAWTEXT_FIX(1,0.55,0.1,0,STRCAT(132,VAR2STR(X_54,0))),COLORCYAN;
DRAWTEXT_FIX(1,0,0.2,0,133),COLORGREEN;
DRAWNUMBER_FIX(1,0.08,0.2,0,X_52),COLORMAGENTA;
正成交量:EMA(IF((CLOSE+HIGH)/2>OPEN,AMOUNT,0),5)*1.5,COLORRED;
负成交量:EMA(IF((CLOSE+LOW)/2<OPEN,AMOUNT,0),5)*1.3,COLORLIBLUE;
IF(正成交量<=REF(正成交量,1),正成交量,DRAWNULL),COLORYELLOW;
X_55:=VOL/CAPITAL;
X_56:=(X_55-REF(X_55,5))/REF(X_55,5);
X_57:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5);
AA4:MA(X_56,10);
AA5:MA(X_57,10)*200,COLORSTICK;
X_58:=MA(AA5,3);
AA7:MA(AA5,5);
X_59:=CROSS(AA5,AA7);
X_60:=X_59 AND AA5<AA4;
STICKLINE(X_60>0,0,成交额/2,0.1,0),COLORWHITE;
X_61:=SUM(成交额,120)/120;
X_62:=CONST(REF(HHV(SUM(成交额,120)/120,120),239));
X_63:=CONST(REF(HHV(X_61,30),0));
今均量最大值:IF(CURRBARSCOUNT<=120,X_63,DRAWNULL),COLORYELLOW;
最值比:今均量最大值/X_62,NODRAW,COLOR0080FF;
X_64:=LLV(VOL,10);
地量选:DRAWICON(EMA(VOL,5)<EMA(VOL,35) AND VOL=X_64,VOL*1.1,29);