CJL:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2)<5,'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));
DRAWTEXT_FIX(01,0.70,0.05.0,0,CJL),COLOR0099FF;
日:=120; 昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
LOW2:REFDATE(H5,DATE),COLORYELLOW,LINETHICK3;
LOW1:REFDATE(低1,DATE),COLORGREEN,LINETHICK3;
STICKLINE(C/REF(C,1)>=1.03 ,C,O,3,0),COLORYELLOW;
H11:=EMA(DCLOSE,5);
A1Z:=LLV(DCLOSE,5);
L11:=LLV(L,10);
敢死队操作线:=MA(C,24),LINETHICK2,COLORLIMAGENTA;
操作线2:=MA(C,26),LINETHICK1,COLORLICYAN;
爆发点:=(DCLOSE-REF(C,1))/REF(C,1)*100;
XGG:=CROSS(爆发点,20) OR CROSS(爆发点,18);
L3:=IF(XGG,O,L11*0.999),COLORYELLOW;
STICKLINE(XGG,L3,L3,100,1);
DRAWTEXT(XGG,L3,'爆爆爆爆爆爆爆爆爆爆爆'),COLOR0099FF;
BB:=(C-REF(C,2))/C>0.1;
出信号就涨停:=REF(BB,-2);
LS:=C/REF(C,1)>1.038.9 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,5));
拉升:FILTER(LS,1)AND TIME<=0935 *999999999,COLORLIBLUE,LINETHICK9;
V1X:=EMA(CLOSE,60)-EMA(CLOSE,300);
V2X:=EMA(V1X,300);
V3:=(CLOSE-(LOW,8))/((HIGH,8)-LLV(LOW,8))*100;
V4:=SMA(V3,2,1),NODRAW;
V5Z:=SMA(V4,2,1),NODRAW;
V6:=CLOSE/REF(CLOSE,3)>=1.1;
V7:=BACKSET(V6,3);
大涨:=(V7 AND COUNT(V7,2.9)=1)*999999999,LINETHICK9,COLORYELLOW;
大涨1:=(V7 AND COUNT(V7,3)=1)*-999999999,LINETHICK9,COLORYELLOW;
STICKLINE((大涨) ,L,L*99999999,2,0),COLORYELLOW;
F1:=ZIG(3,15);
F2:=IF((F1> REF(F1,1)),100,80);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
MA势:=SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100;
势:=EMA(MA势,5),COLORLIRED,DOTLINE;
{IF(势<=45,势,DRAWNULL),COLORGREEN,DOTLINE;}
趋势:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*
SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);
ZZ:=趋势>REF(趋势,1);
K1:=DVOL/1000000;
K2:=DCLOSE;
V1:=EMA(K1,5);
V2:=EMA(K2,5);
价异动:=K2>REF(V2,1)*1.06;
量异动:=K1>REF(V1,1)*1.6&&ZZ;
停牌:=DYNAINFO(17)>0;
M1:=SUM(价异动,2)>0 AND 停牌;
M2:=SUM(量异动,2)>0 AND REF(趋势,1)<89;
共鸣:=(F2=100 AND C>REF(C,1) AND FILTER(M1 ,3))*999999999,COLORWHITE,LINETHICK9;
共鸣1:=(F2=100 AND C>REF(C,1) AND FILTER(M1 AND M2,3))*-999999999,COLORWHITE,LINETHICK9;
{STICKLINE((共鸣) ,L,L*99999999,2,0),COLORWHITE;}
VAR326:=IF(CLOSE AND MA(VOL, 5)/240 AND CLOSE>REF(CLOSE, 1)*1.00 AND CLOSE,88,0);{VAR38>VAR39;}
VAR327:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND VOL/CAPITAL*100<10 AND CLOSE<17 AND HIGH/CLOSE<1.050 AND VAR326>0, 91, 0);
{DRAWTEXT(VAR327>90,LOW*9999,'●追涨'),COLORMAGENTA;}
STICKLINE((VAR327>90) AND (CJL) ,L,L*99999999,2,0),COLORGREEN;
N:=21;M:=55;Q:=3;
回归:=EMA(SLOPE(CLOSE,N)*20+CLOSE,M)*1,COLORMAGENTA,LINETHICK3;
平滑:=EMA(CLOSE,Q),COLORYELLOW,LINETHICK2;
简单差:=平滑-回归;
DRAWICON(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),平滑,9);
NN:=35;
MM:=35;
N1:=1;
NX:=42;
N1X:=21;
VAR1:=IF(CLOSE < OPEN,(CLOSE-OPEN)/OPEN,0);
VAR2:=IF(CLOSE > OPEN,(CLOSE-OPEN)/OPEN,0);
VAR3:=IF(CLOSE > OPEN,(OPEN-LOW)/OPEN,(CLOSE-LOW)/OPEN);
VAR4:=IF(CLOSE > OPEN,(HIGH-CLOSE)/OPEN,(HIGH-OPEN)/OPEN);
VAR5:=IF(BARSLAST(CLOSE > MA(CLOSE,20)) > 34,34,BARSLAST(CLOSE > MA(CLOSE,20)));
VAR6:=IF(BARSLAST(CLOSE > MA(CLOSE,60)) > 120,120,BARSLAST(CLOSE > MA(CLOSE,60)));
VAR7:=IF(COUNT(CLOSE > 0,250) < 240,CAPITAL,SUM(VOL,480)/8);
VAR8:=MA(LOW,20)*1.2;
VAR9:=MA(LOW,20)*1.1;
VAR10:=MA(HIGH,20)*0.9;
VAR11:=MA(HIGH,20)*0.8;
VAR12:=CLOSE/(1+(CLOSE/MA(CLOSE,240)-1)-MA(INDEXC/MA(INDEXC,240)-1,3));
游资资金:=IF(BARSLAST(CLOSE > VAR9) < 4 AND CLOSE > MA(CLOSE,5) AND BARSLAST(CLOSE=HHV(CLOSE,21)) < 4,(MA(CLOSE,5)-REF(MA(CLOSE,5),1))/REF(MA(CLOSE,5),1)*300,0)*9,COLORMAGENTA,LINETHICK9;
主力资金:(CLOSE/VAR12-1)*50,COLORRED,LINETHICK2;
主力控盘:=MA(IF(CLOSE > MA(CLOSE,240) AND (CLOSE-MA(CLOSE,240))/MA(CLOSE,240)+SUM(VAR1,20) > 0,((CLOSE-MA(CLOSE,240))/MA(CLOSE,240)+SUM(VAR1,20))/MA(VOL/VAR7,20)/2.5,0),10),COLORYELLOW,LINETHICK2;
散户资金:=IF(CLOSE < MA(CLOSE,20),((REF(CLOSE,VAR5)-CLOSE)/REF(CLOSE,VAR5)+SUM(VAR3,VAR5)-SUM(VAR4,VAR5))*20,0),COLORBLUE,LINETHICK2;
中线超跌:(REF(CLOSE,VAR6)-CLOSE)/CLOSE*2,COLORGREEN,LINETHICK2;
STICKLINE(主力资金 > 0,0,主力资金,0.7,0),COLORRED;
{STICKLINE(游资资金 > 0,0,游资资金,0.7,0)*99999999,COLORBLUE;
STICKLINE(中线超跌 > 0,0,中线超跌,0.7,0),COLORGREEN;
STICKLINE(散户资金 > 0,0,散户资金,0.8,0),COLORBLUE;}
VAR1Z:=1;
VAR2Z:=1/WINNER(CLOSE);
VAR3Z:=MA(CLOSE,13);
VAR4Z:=100-ABS((CLOSE-VAR3Z)/VAR3Z*100);
VAR5A:=LLV(LOW,75);
VAR6A:=HHV(HIGH,75);
VAR7A:=(VAR6A-VAR5A)/100;
VAR8A:=SMA((CLOSE-VAR5)/VAR7A,21,1);
VAR9A:=SMA((OPEN-VAR5A)/VAR7A,21,1);
VARA:=3*VAR8-2*SMA(VAR8,13,1);
VARB:=3*VAR9-2*SMA(VAR9,13,1);
VARC:=100-VARB;
平衡:=50.5,COLOR998899,POINTDOT;
主力:=MA(WINNER(CLOSE*0.95)*100,3)*VAR1Z,COLORYELLOW,LINETHICK1;
散户:=(100-VARA)*VAR1Z,COLORLIBLUE,LINETHICK1;
{DRAWTEXT(CROSS(主力,散户) AND 主力>50,主力,'★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★'),COLORRED;}
→:=100,LINETHICK3,COLORYELLOW;
MINUS:=(主力-散户)>0;
DRAWTEXT_FIX(1,0.850,0.85,0,MINUS),COLORWHITE;
DRAWICON(CROSS(主力,散户) AND L,L,23);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
{IF(DIFF<0,DIFF,0),COLORRED,LINETHICK1;
IF(DIFF<0,0,DIFF),COLORYELLOW,LINETHICK1;
IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK1;
IF(DIFF>DEA,DEA,DEA),COLORWHITE,LINETHICK1;}
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
{STICKLINE(低位金叉,0,-0.18,2,0),COLORYELLOW;}
DRAWTEXT(低位金叉,+999999,' 低位金叉'),COLORYELLOW;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
{STICKLINE(二次金叉,0,9999,2,0),COLORFF00FF;}
{DRAWICON(二次金叉,DEA*9999,13) ;}
DRAWTEXT(二次金叉,+9999,' BUY'),COLORGREEN;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
STICKLINE(底背离,0,0.999,2,0),COLORFF00FF;
{DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2;}
DRAWTEXT(底背离,6666.1,' NOW'),COLOR00FF00;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
{DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;};
AA:=C/DYNAINFO(3);
单笔换手:=V/CAPITAL*100;
XX:=BARSSINCE(V>0)+1;
均价线:=SUM(C*V,XX)/SUM(V,XX);
限制:=AA>1.01 AND AA<1.04;
X1:=单笔换手>0.08 AND CROSS(C,均价线) AND 限制*999,COLORYELLOW;
LT:=(CAPITAL/100)/10000<=10;
JD:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*57.3;
VV:=V>1999;
PX:=JD>30;
ZZX:=EMA(CLOSE,5)+EMA(CLOSE,60);
ZQ:=EMA(ZZX,30);
Z2:=REF(AA,1)<1.025 AND AA>1.025 AND AA<1.04;
TJ:=ZZX/ZQ>0.99 AND ZZX/ZQ<1.015;
X2:=LT AND (Z2 AND VV AND PX AND TJ)*999,COLORYELLOW;
XG:=X1 OR X2,COLORWHITE,LINETHICK9;
LOWV:=LLV(LOW,6);
HIGHV:=HHV(HIGH,6);
{RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,2);}
K:=EMA(RSV,3);
D:=MA(K,3);
{DRAWBAND(K,RGB(200,10,10),D,RGB(10,200,10));}
{20,POINTDOT,COLORCYAN;
50,COLORRED,POINTDOT;
80,POINTDOT,COLORWHITE;
IF(K>D,K,DRAWNULL),COLORYELLOW,LINETHICK1;
IF(K<D,K,DRAWNULL),COLORCYAN,LINETHICK1;}
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
阶段底部:=(AV + NEWVOL);
趋势线:=LLV(阶段底部,1),COLORWHITE,LINETHICK0;
{STICKLINE((阶段底部 < 0),20,25,1,0),LINETHICK6,COLORYELLOW;
STICKLINE(CROSS(阶段底部,0),20,30,1,0),LINETHICK6,COLORRED;}
STICKLINE((趋势线 >230 )AND TIME<=0935,0,999999999,8,0),LINETHICK6,COLORGREEN;
LCZ:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
WR10Z:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
活跃:=(WRSI-WR10Z);
活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));
DRAWTEXT_FIX(1,0.20,0.25,1,STRCAT(STRCAT('活跃:',CON2STR(活跃度比,2)),'%')),COLORCYAN;