主图
{均线多头涨}
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);
副图
涨幅:=C/REF(C,1);
X_1:=HHV(HIGH,9);
X_2:=LLV(LOW,9);
X_3:=(X_1-X_2)/100;
X_4:=(CLOSE-X_2)/(X_1-X_2)*100;
X_5:=SMA(X_4,3,1);
X_6:=SMA(X_5,3,1);
X_7:=3*X_5-2*X_6;
X_8:=X_5*X_3+X_2;
X_9:=X_6*X_3+X_2;
X_10:=X_7*X_3+X_2;
X_11:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_12:=EMA(X_11,9);
X_13:=2*(X_11-X_12);
X_14:=1.25*X_11-0.25*X_12;
X_15:=(X_14*13*27-27*11*EMA(CLOSE,12)+13*25*EMA(CLOSE,26))/28;
X_16:=(X_11*13*27-27*11*EMA(CLOSE,12)+13*25*EMA(CLOSE,26))/28;
X_17:=(X_12*13*27-27*11*EMA(CLOSE,12)+13*25*EMA(CLOSE,26))/28;
X_18:=(X_15+X_17)/2;
X_19:=ATAN((X_16-REF(X_16,1))/REF(X_16,1)*100)*180/3.14159;
K:=X_15;
X_20:=X_16;
X_21:=X_18;
Q:=X_17;
X_22:=EMA(K,3);
X_23:=EMA(K,2);
F:=EMA(X_21,1);
安全:CROSS(F,Q) AND 涨幅<1.09,NODRAW,COLORYELLOW;
谨慎:CROSS(F,Q) AND 涨幅>=1.09,NODRAW,COLORRED;
AQ:STICKLINE(安全 ,0,8,1,0),COLORGREEN;
JS:STICKLINE(谨慎 ,0,8,1,0),COLORRED;
DRAWTEXT(安全,5,'安全买入'),COLORYELLOW;
DRAWTEXT(谨慎,5,'谨慎买入'),COLORWHITE;