止损:REF(HHV(H,13),1)*0.95,COLORGREEN,DOTLINE;
A002:STICKLINE(CURRBARSCOUNT=1 AND C>=REF(C,1),止损,止损*0.9996,15,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,止损*0.996,'止损线'),COLORGREEN;
生命线:=MA(C,60);
牛熊线:=MA(C,120);
DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));
DRAWKLINE(H,O,L,C);
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,20),COLORFF00FF,LINETHICK2;
MA30:MA(CLOSE,30),COLORWHITE;
MA60:MA(CLOSE,60),COLORGREEN;
MA120:MA(CLOSE,120),COLORLIMAGENTA;
MA250:MA(CLOSE,250),COLORBLUE;
MA500:MA(CLOSE,500),POINTDOT,COLORGREEN;
DRAWICON(crOSS(MA10,MA20),MA20,1); {10日上穿20日做记号}
DRAWICON(CROSS(MA20,MA60),MA60,1); {20日上穿60日做记号}
DRAWICON(CROSS(MA20,MA120),MA120,1); {20日上穿60日做记号}
DRAWICON(CROSS(MA20,MA250),MA250,1);{20日上穿120日做记号}
DRAWICON(CROSS(MA60,MA120),MA60,1); {60日上穿120日做记号}
DRAWICON(CROSS(MA60,MA250),MA250,1); {60日上穿240日做记号}
DRAWICON(CROSS(MA120,MA250),MA250,1);{120日上穿240日做记号}
DRAWICON(CROSS(MA10,MA5),MA10,2); {5日下穿10日做记号}
DRAWICON(CROSS(MA20,MA10),MA20,2); {10日下穿20日做记号}
DRAWICON(CROSS(MA60,MA20),MA60,2); {20日下穿60日做记号}
DRAWICON(CROSS(MA120,MA60),MA60,2); {60日下穿120日做记号}
反弹托:=MA5>MA20 AND MA5>MA20 AND MA20
季价托:=MA20>MA60 AND MA20>MA60 AND CROSS(MA20,MA60);
短长价托:=MA5>MA60 AND MA5>MA10 AND CROSS(MA10,MA60);
半年托:=MA60>MA120 AND MA60>MA120 AND CROSS(MA60,MA120);
熊来:=MA60
月蜘蛛:=MA5>MA10 AND MA10>MA20 AND CROSS(MA5,MA20)AND CROSS(MA10,MA20);
DRAWTEXT(月蜘蛛,MA20-0.08,'金蜘蛛'),COLORMAGENTA;
DRAWTEXT(反弹托,MA20-0.08,'反弹托'),COLORMAGENTA;
DRAWTEXT(月价托 ,MA20-0.2,'月托'),COLORMAGENTA;
DRAWTEXT(季价托,MA60-0.0.08,'季托'),COLORMAGENTA;
DRAWTEXT(短长价托,L+0.015,'短长托'),COLOR36C0C1;
DRAWTEXT(半年托,MA120-0.08,'牛市来'),COLORRED;
DRAWTEXT(熊来,MA60+0.08,'小心熊'),COLORGREEN;
DRAWTEXT(年托,MA250-0.08,'年托'),COLORRED;
压:=MA10
DRAWTEXT(压,MA20+0.012,'压'),COLORYELLOW;
vol5:=MA(VOL,5),COLORWHITE;
VOL10:=MA(VOL,10),COLORYELLOW;
VOL40:=MA(VOL,40),COLORFF00FF ;
量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)
DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;
AA1:=BArslAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));
BB1:=REF(COUNT(C
芙蓉出水:=BB AND CC1,COLOR00FF00;
DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORFF00FF;
STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF;
STICKLINE(芙蓉出水,O,C,4,1),LINETHICK2,COLORFF00FF;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,30);
MA4:=MA(CLOSE,60);
ZJ:=AMOUNT/10000;{资金}
TM:=V-MA(V,10);{量填满}
一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1
DRAWTEXT(一穿三,L-0.012,'穿三线'),COLORFF00FF;
C6:=REF(C,1);
涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
{压力一}
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BacKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT;
STICKLINE(C,前期高位,前期高位,8,0),COLORYELLOW;
板块类别:=STRCAT(STRCAT(STRCAT(STRCAT(DYBLOCK,HYBLOCK),FGBLOCK),ZHBLOCK),GNBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.7,1,2,板块类别),COLORYELLOW;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11),COLORGREEN,LINETHICK2;
TJ1:=CROSS(MA1,MA2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(MA1,MA4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(MA2,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(MA1,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018;
TJ2:=(MAX(MA1,MAX(MA2,MA3))-MIN(MA1,MIN(MA2,MA3)))/
MIN(MA1,MIN(MA2,MA3))*100<=2;
XG:=TJ1 AND TJ2;
STICKLINE(FILTER(TJ1,3),O,(C+O)/2,3,0),COLOR0000FF;
DRAWICON(FILTER(XG,3),L*0.985,23);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
macd:=2*(DIFF-DEA);
做多:=IF(K>D AND MACD>0 AND V>1,2,0),COLORRED;
做空:=IF(K
强洗:=IF(MACD>0 AND K
STICKLINE(做空 AND C>=O,C,O,3,1),COLORMAGENTA;
GET:=zig(3,3),COLORFFFFFF;
PL5:=ZIG(3,5);
EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
PL10:=ZIG(3,10);
EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
PL20:=ZIG(3,20);
EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,40);
走强1:=BARSLAST(PL5
走弱1:=BARSLAST(PL5>REF(PL5,1));
走强2:=BARSLAST(PL10
走弱2:=BARSLAST(PL10>REF(PL10,1));
走强3:=BARSLAST(PL20
走弱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
DTJD5:=IF(PL10
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
DTJZ10:=IF(PL20
DTJD10:=IF(PL20
DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'【A】'),COLOR00FFFF;
DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'【B】'),COLOR00FF00;
DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'【C】'),COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLORFF0000;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR00FF00;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLORFF00FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR00FF00;
DRAWTEXT(EN2 AND DTJZ10=1,L*0.93,'〖Ⅰ〗'),COLORFF00FF;
DRAWTEXT(EX2 AND DTJD10=2,H*1.05,'〖Ⅱ〗'),COLOR00FF00;
DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'〖Ⅲ〗'),COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'①'),LINETHICK3,COLORFFFF00;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.95,'②'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2)
AND EX2,H*1.03,'③'),LINETHICK3,COLOR00FF00;
WLA:=EN1 AND DTJZ5=1;
WLC:=EN2 AND ZTJZ5=1;
WLⅠ:=EN2 AND DTJZ10=1;
WLⅢ:=EN3 AND ZTJZ10=1;
WL⑵:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;
WL⑷:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3;
WL②:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;
WL④:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3;
WLT01:=(WLA OR WLC) AND (WLⅠOR WLⅢ);
WLT02:=(WLA OR WLC) AND (WL⑵ OR WL⑷ OR WL② OR WL④);
WLT03:=(WLⅠOR WLⅢ) AND (WL⑵ OR WL⑷ OR WL② OR WL④);
WLT:=WLT01 OR WLT03 OR WLT02;
DRAWTEXT(WLT,LOW*0.90,'买底'),COLORYELLOW;
TJ11:=EN2 AND ZTJZ5=1;
TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;
TJ33:=EN2 AND DTJZ10=1;
TJ44:=EN3 AND ZTJZ10=1;
TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;
XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;
X1:=REF(C,1)/HHV(H,20)<0.82;
X2:=(MIN(C,O)-L)/(H-L)>0.67;
X3:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)<0.33;
X4:=Abs(C-O)/C<0.01;
DOWN:=O>C;
X5:=COUNT(DOWN,7)>=5;
XG8:=X1 AND X2 AND X3 AND X4 AND X5;
DRAWTEXT(XG8,L*0.98,'←螺'),COLOR00FFFF;
AA:=REF(C,1)/REF(O,1)<0.96;
BB:=C/O>1.03;
CC:=C>REF(O,1);
TJ81:=AA AND BB AND CC;
X81:=REF(C,1)/HHV(H,20)<0.82;
DN:=O>C;
X82:=COUNT(DN,7)>=5;
X83:=C=HHV(C,3);
XG81:=TJ81 AND X81 AND X82;
XG82:=X81 AND X82 AND X83;
XG88:=XG81 OR XG82;
DRAWTEXT(XG88,L*0.96,'反'),COLOR00FFFF;
IF(生命线>=牛熊线,生命线,DRAWNULL),COLORRED;
IF(牛熊线>=生命线,牛熊线,DRAWNULL),COLORFF9900;
IF(生命线>=牛熊线,牛熊线,DRAWNULL),COLOR00FFFF;
IF(牛熊线>=生命线,生命线,DRAWNULL),COLOR00FF00;
S1:=REF(C,1)/LLV(L,21)>1.30;
S2:=(H-MAX(C,O))/(H-L)>0.60;
S3:=ABS(C-O)/C<0.03;
S4:=(H-O)/C>0.05 AND C
SAL2:=S1 AND ABS(C-O)/C>0.05 AND C
SAL4:=S1 AND S4;
SAL5:=(H-MAX(C,O))/(H-L)>0.67 AND C
LC:=REF(CLOSE,1);
rsi:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;
黄买:=FILTER((REF(CLOSE,2)
红买:=FILTER(CROSS(RSI,11),7);
红卖:=FILTER(CROSS(89,RSI),7);
绿买:=FILTER(CROSS(RSI,20),7);
绿卖:=FILTER(CROSS(80,RSI),7);
SL1:=红卖 AND 绿卖;
SL2:=红卖 AND 绿卖 AND 黄卖;
BU:=红买 AND 绿买;
SS1:=CROSS(MA(C,5),C);
SS2:=(REF(C,1)-C)/REF(C,1)>0.04;
SS3:=O
JJ1:=SS1 AND SS2 AND SS3;
ssl:=JJ1 AND S1;
SAL8:=FILTER(SAL OR SSL,5);
DRAWTEXT(SAL8 AND SL1 AND SL2,H*1.02,'卖'),COLOR00FF00;
E1:=BARSCOUNT(C);
AH:=HHV(H,200);
AL:=LLV(L,200);
B0:=(AH-AL)/40;
KB1:=H+B0;
KB2:=L-B0;
SJCK:=(E1+0)/34=FLOOR((E1+0)/34);
STICKLINE(SJCK,KB2,KB2-0.8*B0,1,0),COLORYELLOW,LINETHICK3;
DRAWTEXT(SJCK,KB2-B0,'时'),COLORYELLOW;
SJ:=EXIST(SJCK,5);
{J线中线共振买点}
RSV55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,LINETHICK2;
K55:=SMA(RSV55,2,1),NODRAW;
D55:=SMA(K55,2,1),NODRAW;
J55:=3*K55-2*D55,COLORFF00FF,LINETHICK1;
RSV89:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100,LINETHICK2;
K89:=SMA(RSV89,2,1),NODRAW;
D89:=SMA(K89,2,1),NODRAW;
J89:=3*K89-2*D89,COLOR0000FF,LINETHICK2;
AB1:=LONGCROSS(J55,10,5);
AB2:=LONGCROSS(J89,10,5);
GZBT1:=FILTER(COUNT(AB1 OR AB2,2)=2,2);
GZBT2:=AB2 AND AB1;
GZBT:=GZBT1 OR GZBT2;
VAR113:=HHV(HIGH,60);
VAR114:=LLV(LOW,30);
VAR115:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR116:=(VAR113+VAR114+VAR115)/3;
VAR117:=EMA(VAR116,5);
K01:=EMA(VAR117,5)*2, COLORFF00FF;
D01:=EMA(K01,5), COLORWHITE;
J01:=K01*3-D01*2, COLORYELLOW;
ENTERLONG:=CROSS(K01,D01);
EXITLONG:=CROSS(D01,K01);
B01:=(DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))
AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),L*0.98,1))*D01*2/3;
B02:=IF(TROUGHBARS(3,15,1)=1 AND HIGH>LOW+0.01,20,0);
必买:=(B01 AND B02);
必卖:=IF(PEAKBARS(3,15,1)=1,80,100),COLORGREEN,LINETHICK1;
QQ:=必卖=80;
B03:=((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)));
V1:=EMA(CLOSE,60)-EMA(CLOSE,300);
V2:=EMA(V1,300);
V3:=(CLOSE-(LOW,8))/((HIGH,8)-LLV(LOW,8))*100;
V4:SMA(V3,2,1),NODRAW;
V5:SMA(V4,2,1),NODRAW;
V6:=CLOSE/REF(CLOSE,3)>=1.1;
V7:=BACKSET(V6,3);
大涨:=(V7 AND COUNT(V7,3)=1);
FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1)),COLORWHITE;
FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1),COLORWHITE;
BB01:=IF(MA(CLOSE,17)
抓牛:=CROSS(BB01,DIFF);
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.97,5) ;
DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.03,6);
ZT:=C/REF(C,1)>1.095;
STICKLINE(ZT,O,C,0.8,0),COLORYELLOW;
{_现价:DYNAINFO(4);}
LHB:=SIGNALS_USER(100,0) < 0 OR SIGNALS_USER(100,0) > 0;{100:龙虎榜}
JGZY:=SIGNALS_USER(101,0) < 0 OR SIGNALS_USER(101,0) > 0;{101:机构专用}
DZJY:=SIGNALS_USER(102,0) < 0 OR SIGNALS_USER(102,0) > 0;{102:大宗交易}
HZLS:=SIGNALS_USER(103,0) < 0 OR SIGNALS_USER(103,0) > 0;{103:汇智历史}
YHSX:=SIGNALS_USER(104,0) < 0 OR SIGNALS_USER(104,0) > 0;{104:银河绍兴}
HTCDSJL:=SIGNALS_USER(105,0) < 0 OR SIGNALS_USER(105,0) > 0;{华泰成都蜀金路:105}
SWSHLJZ:=SIGNALS_USER(106,0) < 0 OR SIGNALS_USER(106,0) > 0;{南方证券上海陆家嘴环路:106}
GTJASHFSL:=SIGNALS_USER(107,0) < 0 OR SIGNALS_USER(107,0) > 0;{国泰君安上海福山路:107}
ZXSHLYL:=SIGNALS_USER(108,0) < 0 OR SIGNALS_USER(108,0) > 0;{中信上海溧阳路:108}
{LHB:=SIGNALS_USER(1,0);{龙虎榜序列标记判断}
{DZJY:=SIGNALS_USER(3,0);{龙虎榜序列标记判断}
GTJA10:=SIGNALS_USER(4,0);{龙虎榜序列标记判断}
{HTCDSJL:=SIGNALS_USER(5,0);{龙虎榜序列标记判断}
{SWSHLJZ:=SIGNALS_USER(6,0);{龙虎榜序列标记判断}
GTJA27:=SIGNALS_USER(7,0);{龙虎榜序列标记判断}
SZTRJL:=SIGNALS_USER(8,0);{龙虎榜序列标记判断}
DRAWICON(LHB,L*0.95,1);
DRAWTEXT(GTJA10,H*1.03,'国泰君安单元010000');
DRAWTEXT(GTJA27,H*1.11,'国泰君安单元227002');
DRAWTEXT(SZTRJL,H*1.13,'深圳泰然九路');
DRAWICON(LHB,L*0.95,1);
DRAWTEXT(LHB,L*0.95,'龙虎');
DRAWTEXT(DZJY,H*1.03,'大宗');
DRAWTEXT(JGZY,H*0.75,'机构');
DRAWTEXT(HZLS,C*1.01,'汇智');
DRAWTEXT(HTCDSJL,H*1.04,'华泰成都蜀金路');
DRAWTEXT(SWSHLJZ,H*1.07,'申万上海陆家嘴');
DRAWTEXT(YHSX,H*1.11,'银河绍兴');
DRAWTEXT(GTJASHFSL,H*1.15,'国泰君安上海福山路');
DRAWTEXT(ZXSHLYL,H*1.18,'中信上海溧阳路');
Z1:=STRCAT(DYBLOCK,' ');
Z2:=STRCAT(Z1,HYBLOCK);
Z3:=STRCAT(Z2,' ');
Z4:=STRCAT(Z3,GNBLOCK);
Z5:=STRCAT(Z4,' ');
Z6:=STRCAT(Z5,FGBLOCK);