涨停:REF(C,1)*1.1,NODRAW,COLORRED;

跌停:REF(C,1)*0.9,NODRAW,COLORGREEN;

DRAWTEXT_FIX(1,0.073,0,0,HYBLOCK),COLORRED; {行业}

{DRAWGBK(C>O,RGB(60,0,0),RGB(0,0,0),1,2,1);}

LCZ:=REF(CLOSE,1);

WRSI:=SMA(MAX(CLOSE-LCZ,0),5,1)/SMA(ABS(CLOSE-LCZ),5,1)*100;

WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;

活跃:=(WRSI-WR10);

活跃度比:=IF(活跃>=0 AND TIME<=0930,(活跃+100)/2,100-ABS((活跃-100)/2));

DRAWTEXT_FIX(1,0.45,0.25,1,STRCAT(STRCAT('',CON2STR(活跃度比,2)),'%')),COLORYELLOW;

CJL:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2),'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));

DRAWTEXT_FIX(1,0.55,0.25,0,CJL),COLORYELLOW;

{工作线:=EMA(CLOSE,14),COLORFFFFFF;

生命线:=EMA(CLOSE,47);

VAR326:=IF(CLOSE>REF(CLOSE,1),88,0);

VAR327:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND VAR326>0, 91, 0);

STICKLINE(VAR327>90,L*0.99,L*0.95,4,0),COLORGREEN;

DRAWTEXT(VAR327>90,LOW*0.95,'追涨'),COLORYELLOW;}

金牛:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLORYELLOW;

金钻趋势:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK2,COLORRED;

金牛2:=EMA(金钻趋势,25)COLORCYAN,LINETHICK2;

{DRAWBAND(金钻趋势,RGB(55,0,0),金牛2,RGB(0,91,0));

DRAWKLINE(H,O,L,C);}

STICKLINE(金钻趋势>LOW AND TIME<=0935 AND 金钻趋势<HIGH,金钻趋势,MIN(MIN(OPEN,CLOSE),金钻趋势),2,0),COLORYELLOW;

STICKLINE(金钻趋势>MIN(C,O) AND 金钻趋势<MAX(C,O),金钻趋势,MIN(OPEN,CLOSE),2,0),COLORYELLOW;

STICKLINE(金钻趋势>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;

STICKLINE(金钻趋势>HIGH,HIGH,LOW,0,0),COLORYELLOW;

VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6);

回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));

XG:=金钻趋势>HIGH AND 回调买 AND L<=金钻趋势;

{DRAWTEXT(XG,L,'▲买入'),COLORRED;}

JJ:=(HIGH+LOW+CLOSE)/3;

QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);

QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));

QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));

QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));

QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));

DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK;

V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);

V5:=SMA(V2*120/FROMOPEN*5,2,1);

V10:=SMA(V5,5,1);

V20:=SMA(V10,5,1);

DY:=CURRBARSCOUNT=1 AND C<REF(C,1);

DY2:=REF(V2,1)-DY;

XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<金牛;

{DRAWTEXT(XG2,L,'▲抓牛'),COLORYELLOW;}

DRAWTEXT(XG2 AND L<金钻趋势,L,'↖金钻起涨'),COLORMAGENTA;

日:=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,LINETHICK1;

LOW1:REFDATE(低1,DATE),COLORGREEN,LINETHICK1;

H11:=EMA(DCLOSE,5);

A1:=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,0);

DRAWTEXT(XGG,L3,'爆爆爆爆爆爆爆爆爆爆爆'),COLOR0099FF;

波段微调:=2;

显示开关:=1;

QS:=ZIG(1,波段微调);

低点:=TROUGHBARS(2,波段微调,1);

高点:=PEAKBARS(1,波段微调,1);

DRAWICON(低点=0,L,38);

{}

下降压力线:=DRAWLINE(HIGH>=HHV(HIGH,100),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),10)AND TIME>1430,LINETHICK2,COLORWHITE;

N:=30;

LL:=REF(L,1);

HH:=REF(H,1);

SQK:=L>HH;

XQK:=H<LL;

向上跳几元钱:IF(SQK=1,L-HH,DRAWNULL),COLORGREEN,CROSSDOT,LINETHICK3,NODRAW;

逃命跳空元:IF(XQK=1,H-LL,DRAWNULL),COLORYELLOW,CROSSDOT,LINETHICK3,NODRAW;

DRAWTEXT(SQK AND TIME<=0932,L*0.92,' 向上跳空'),COLORBLUE;

STICKLINE(SQK AND TIME<=0932,L,HH*9,2,0),COLORBLUE;