GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;
BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
BAIJIN3:=GJTJ1>60 AND GJTJ4>70;
DRAWTEXT(BAIJIN1 AND BAIJIN2 AND BAIJIN3,L*5,'白金白金'),COLORWHITE;
下降压力线:DRAWLINE(HIGH>=HHV(HIGH,100),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),10),LINETHICK2,COLORWHITE;
工作线:=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*4,'追涨'),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,0);
DRAWTEXT(XGG,L3,'爆'),COLOR0099FF;
VAR1:=CLOSE-LOW;
VAR2:=HIGH-LOW;
VAR3:=CLOSE-HIGH;
VAR4:=IF(HIGH>LOW,(VAR1/VAR2+VAR3/VAR2)*VOL,0);
HPTP:=SUM(VAR4,10)/10000,COLORSTICK;
TKXL:=-1;
XVYO:=UPNDAY(TKXL,1),NODRAW;
G:=MA(C,5);
D:=MA(C,10);
HH:=REF(H,5)=HHV(H,11);
LL:=REF(L,5)=LLV(L,11);
FG01:=BACKSET(HH,6)>BACKSET(HH,5);
FD01:=BACKSET(LL,6)>BACKSET(LL,5);
FG02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND G>D,FG01,
IF(BARSLAST(FD01)>BARSLAST(FG01),FG01,0));
FD02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND D>G,FD01,
IF(BARSLAST(FG01)>BARSLAST(FD01),FD01,0));
FG0:=FG02 AND H=HHV(H,BARSLAST(FD02));
FD0:=FD02 AND L=LLV(L,BARSLAST(FG02));
GQ:=L>REF(H,1) AND DAY!=REF(DAY,1);
DQ:=H<REF(L,1) AND DAY!=REF(DAY,1);
FGH:=REF(H,BARSLAST(FG0));
FGL:=REF(L,BARSLAST(FG0));
FGH1:=REF(H,BARSLAST(FG0)+1);
FGL1:=REF(L,BARSLAST(FG0)+1);
FGL2:=REF(L,BARSLAST(FG0)+2);
FDH2:=REF(H,BARSLAST(FD0)+2);
FDH:=REF(H,BARSLAST(FD0));
FDL:=REF(L,BARSLAST(FD0));
FDH1:=REF(H,BARSLAST(FD0)+1);
FDL1:=REF(L,BARSLAST(FD0)+1);
FGZL:=IF(FGH1<FGL,FGL,IF(FGL<=FGL1,FGL2,FGL1));
FDZH:=IF(FDL1>FDH,FDH,IF(FDH>=FDH1,FDH2,FDH1));
FG1:=FGH>FDZH AND FG0;
FD1:=FDL<FGZL AND FD0;
FG:=FG1 AND FGH>FDH AND FGL>FDL AND FGL1>FDL;
FD:=FD1 AND FDL<FGL AND FDH<FGH AND FDH1<FGH;
BH0:=(H<=REF(H,1) AND L>=REF(L,1)) OR (H>=REF(H,1) AND L<=REF(L,1));
BHG:=COUNT(BH0,BARSLAST(FD0));
BHD:=COUNT(BH0,BARSLAST(FG0));
BGQ:=COUNT(GQ,BARSLAST(FD0));
BDQ:=COUNT(DQ,BARSLAST(FG0));
BK0:=IF(BHG>0,BHG+2,IF(BHD,BHD+2,3));
BK:=IF(BGQ,BK0-BGQ,IF(BDQ,BK0-BDQ,BK0));
G1X:=(FG AND BARSLAST(FD)>BK),NODRAW;
D1X:=(FD AND BARSLAST(FG)>BK),NODRAW;
G1:=(FG0 AND REF(H,BARSLAST(FG0))>=REF(H,BARSLAST(G1X)) AND BARSLAST(D1X)>BARSLAST(G1X))
OR (FG1 AND COUNT(GQ,BARSLAST(FD1))>0 AND REF(H,BARSLAST(FG1))>REF(H,BARSLAST(G1X)));
{W:=IF(DATE<1201231,C,DRAWNULL);}
D1:=(FD0 AND REF(L,BARSLAST(FD0))<=REF(L,BARSLAST(D1X)) AND BARSLAST(G1X)>BARSLAST(D1X))
OR (FD1 AND COUNT(DQ,BARSLAST(FG1))>0 AND REF(L,BARSLAST(FD1))<REF(H,BARSLAST(D1X)));
G1H:=IF(BARSLAST(D1)>BARSLAST(G1),REF(H,BARSLAST(G1)),REF(H,BARSLAST(D1))),NODRAW;
D1L:=IF(BARSLAST(G1)>BARSLAST(D1),REF(L,BARSLAST(D1)),REF(L,BARSLAST(G1))),NODRAW;
G2:=G1 AND H=HHV(G1H,BARSLAST(D1)+1) AND H>REF(H,1) AND BARSLAST(D1)>BARSLAST(G1);
D2:=D1 AND L=LLV(D1L,BARSLAST(G1)+1) AND L<REF(L,1) AND BARSLAST(G1)>BARSLAST(D1);
NN:=G2 OR (FG0 AND REF(H,BARSLAST(FG0))>REF(H,BARSLAST(G2))
AND BARSLAST(D2)>BARSLAST(G2));
UU:=D2 OR (FD0 AND REF(L,BARSLAST(FD0))<REF(L,BARSLAST(D2))
AND BARSLAST(G2)>BARSLAST(D2));
找顶线:=DRAWLINE(NN,H,REF(NN,1),REF(H,1),1),COLORGREEN,DOTLINE;
找底线:=DRAWLINE(UU,L,REF(UU,1),REF(L,1),1),COLORRED,DOTLINE;
ZT:=C=ZTPRICE(REF(C,1),0.1);
STICKLINE(ZT,C,O,2,0),COLORMAGENTA;
{DRAWICON(CROSS(C,找顶线),找顶线*0.99,34);}
金牛:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25)*1800,DOTLINE,COLORYELLOW;
金钻趋势:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1800,LINETHICK2,COLORYELLOW;
金牛2:EMA(金钻趋势,25)*9,COLORCYAN,LINETHICK2;
DRAWBAND(金钻趋势,RGB(55,0,0),金牛2,RGB(0,91,0));
DRAWKLINE(H,O,L,C);
STICKLINE(金钻趋势>LOW AND 金钻趋势<HIGH,金钻趋势,MIN(MIN(OPEN,CLOSE),金钻趋势),2,0),COLORYELLOW;
STICKLINE(金钻趋势>MIN(C,O) AND 金钻趋势<MAX(C,O),金钻趋势,MIN(OPEN,CLOSE),2,0)*3600,COLORYELLOW;
STICKLINE(金钻趋势>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(金钻趋势>HIGH,HIGH,LOW,2,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,'▲买入'),COLORGREEN;
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;
DRAWICON(XG2 AND L<金钻趋势,L,23);
MA30:=EMA(CLOSE,30);
强弱:EMA(CLOSE,900);
{STICKLINE((MA30>强弱),MA30,强弱,1,0),COLORLIBLUE;}
{STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLOR00DD00;
支撑:L1+P1*0.5/8,COLOR00DD00;
现价:CLOSE,COLORWHITE,LINETHICK1;
STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORRED;{吸
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};
{VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.045) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
XGX:=(FILTER((VAR4AA>90),45)),COLORYELLOW;
STICKLINE(XGX,200,0,4,0),COLORYELLOW;};
CJL:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2)<10,'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));
DRAWTEXT_FIX(01,0.01,0.01.0,0,CJL),COLOR0099FF;
B1:=EMA((2*CLOSE+HIGH+LOW)/4,5);
趋势:=MA(C,90),COLORRED;
MA14:=MA(CLOSE,14);
码:=COST(50),COLORYELLOW;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
XGX:CROSS(DIFF,DEA)*-99,COLORRED;
LOWV:=LLV(LOW,6);
HIGHV:=HHV(HIGH,6);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,2);
K:=EMA(RSV,3);
DD:=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 ),0,9,1,0),LINETHICK9,COLORGREEN;}
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)*99,COLORLIBLUE,LINETHICK9;
XA_1:=AMOUNT/VOL;
XA_2:=LOW<XA_1*0.9;
XA_3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
XA_4:=LOW<MA(CLOSE,5)*0.921;
XA_5:=VOL<MA(VOL,5)*1.5;
XA_6:=XA_2 AND XA_3 AND XA_4 AND XA_5;
DRAWTEXT(XA_6,LOW*0.99,1),COLORYELLOW;
STICKLINE(XA_6,HIGH,LOW,0.5,0),COLORMAGENTA;
STICKLINE(XA_6,OPEN,CLOSE,7,0),COLORMAGENTA;
辅助线:=(-15);
XA_7:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
XA_8:=MA(VOL,2)/MA(VOL,10);
XA_9:=VOL/CAPITAL;
XA_10:=0.0068*XA_7-0.0072*XA_8-0.5676*XA_9-0.0105;
XA_11:=0.0015*XA_7-0.0124*XA_8+1.7461*XA_9-0.0074;
暴涨启动:(0-12.2401*XA_10-1*XA_11+0.321<0)*110,STICK,COLORRED,LINETHICK8;
XA_12:=REF(CLOSE,1)/REF(CLOSE,2)<=0.93 AND BETWEEN(CLOSE/REF(CLOSE,1),1.03,0.97) AND CLOSE/REF(CLOSE,8)<=0.8 AND BETWEEN(REF(CLOSE,2)/REF(CLOSE,3),1.04,0.96) AND BETWEEN(REF(CLOSE,3)/REF(CLOSE,4),1.04,0.96);
STICKLINE(XA_12,0,20,1,0),COLORRED;
DRAWTEXT(CLOSE-OPEN>=0 AND OPEN/LOW>1.05 AND LOW<=LLV(LOW,20),LOW,2),COLORRED,LINETHICK2;
XA_13:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
XA_14:=SMA(XA_13,3,1);
XA_15:=SMA(XA_14,3,1);
XA_16:=SMA(XA_15,3,1);
波:=XA_15;
段:=XA_16;
XA_17:=CROSS(XA_15,XA_16) AND XA_15<20;
DRAWTEXT(FILTER(XA_17,10)=1,15,3),COLORRED;
XA_18:=CROSS(XA_16,XA_15) AND XA_15>80;
{STICKLINE(FILTER(XA_18,5)=1,80,100,3,0),COLORGREEN;}
DRAWTEXT(FILTER(XA_18,5)=1,99,4),COLORYELLOW,LINETHICK3;
XA_19:=CROSS(XA_14,XA_15) AND XA_15>80 AND XA_15>XA_16;
STICKLINE(XA_19,85,100,1,0);
90;
XA_20:=CLOSE/REF(CLOSE,1)>1.048 AND CLOSE=HIGH AND BETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12));
私募秘进:FILTER(XA_20,28)*100,COLORYELLOW,LINETHICK3;
XA_21:=AMOUNT/VOL/100;
MA5:=MA(XA_21,5),COLORRED;
MA13:=MA(XA_21,13);
日:=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;
DRAWICON(CROSS(C,LOW2) AND L,L*-1,1);
{STICKLINE(CROSS(C,LOW2),L,L*999999999,3,0),COLORGREEN;};
MA10:=MA(CLOSE,10),COLOR8A8A8A;
M1:=EMA(C,12)-EMA(C,26);
M2:=EMA(M1,9);
MR:=CROSS(M1,M2) AND V/REF(V,1)>2 AND CROSS(MA5,MA10) AND C>O;
STICKLINE(MR,O,(O+C)/2,2.5,0),COLORFF0099;
DRAWTEXT(MR,L*9,'收盘买'),COLORYELLOW;
ZJJ:=REF(AMOUNT/V/100,1);
{STICKLINE(C>ZJJ,C,ZJJ,0.5,0),COLORYELLOW;}
买1:=REF(C,1)-1.5*K AND TIME=0931 ,COLORWHITE;
STICKLINE((买1),L,L*9,2,0),COLORCYAN;
买2:=REF(C,1)-K,COLORWHITE;
买3:=REF(C,1)-K/2,COLORWHITE;
昨均价:=ZJJ,COLORRED,LINETHICK3;
昨收:=REF(C,1),COLORYELLOW,LINETHICK2;
KK:=REF(H,1)-REF(L,1);
卖1:=REF(C,1)+KK,COLORGREEN;
卖2:=IF((REF(C,1)+KK*2)<1.1*REF(C,1),REF(C,1)+KK*2,卖1),COLORGREEN;
卖3:=IF((REF(C,1)+KK*3)<1.1*REF(C,1),REF(C,1)+KK*3,卖2),COLORGREEN;
卖4:=IF((REF(C,1)+KK*4)<1.1*REF(C,1),REF(C,1)+KK*4,卖3),COLORGREEN;
十赢概率:=COUNT(C>ZJJ,10),NODRAW,COLORRED;
十叉概率:=COUNT(H>卖1,10),NODRAW,COLORRED;
{STICKLINE(C>=O,L,H,0,0),COLORRED;
STICKLINE(C<O,L,H,0,0),COLORCYAN;}
DRAWTEXT(ISLASTBAR,卖1,' 卖1'),COLORWHITE;
DRAWTEXT(ISLASTBAR,卖2,' 卖2'),COLORWHITE;
DRAWTEXT(ISLASTBAR,卖3,' 卖3'),COLORWHITE;
DRAWTEXT(ISLASTBAR,卖4,' 卖4'),COLORWHITE;
{DRAWTEXT(ISLASTBAR,昨均价*1.006,' 昨均价'),COLORRED;
DRAWTEXT(ISLASTBAR,昨收*1.006,' 昨收'),COLORYELLOW;}
DRAWTEXT(ISLASTBAR,买1,' 买1'),COLORWHITE;
DRAWTEXT(ISLASTBAR,买2,' 买2'),COLORWHITE;
DRAWTEXT(ISLASTBAR,买3,' 买3'),COLORWHITE;
DRAWNUMBER(ISLASTBAR,卖1,卖1),COLORWHITE;
DRAWNUMBER(ISLASTBAR,卖2,卖2),COLORWHITE;
DRAWNUMBER(ISLASTBAR,卖3,卖3),COLORWHITE;
DRAWNUMBER(ISLASTBAR,卖4,卖4),COLORWHITE;
{DRAWNUMBER(ISLASTBAR,昨均价*1.01,昨均价),COLORGREEN;
DRAWNUMBER(ISLASTBAR,昨收*1.01,昨收),COLORGREEN;}
DRAWNUMBER(ISLASTBAR,买1,买1),COLORWHITE;
DRAWNUMBER(ISLASTBAR,买2,买2),COLORWHITE;
DRAWNUMBER(ISLASTBAR,买3,买3),COLORWHITE;
A1:=C>REF(C,4);
A2:=BARSLASTCOUNT(A1);
A3:=REF(A2,1)=8 AND A2>REF(A2,1);
A4:=REF(BETWEEN(A2,5,8),1) AND A2<REF(A2,1);
A5:=ISLASTBAR AND BETWEEN(A2,6,8);
A6:=(BACKSET(A3>0,9) OR BACKSET(A4>0,A2+1)*0 OR BACKSET(A5>0,A2))*A2;
DRAWTEXT(A6>0,H+H*0.02,VAR2STR(A6,0)),COLORFF00FF{COLOR00FFFF};
DRAWTEXT(A2=9,H+H*0.02,'9'),COLOR00FF00;
B2:=BARSLASTCOUNT(B1);
B3:=REF(B2,1)=8 AND B2>REF(B2,1);
B4:=REF(BETWEEN(B2,5,8),1) AND B2<REF(B2,1);
B5:=ISLASTBAR AND BETWEEN(B2,6,8);
B6:=(BACKSET(B3>0,9) OR BACKSET(B4>0,B2+1)*0 OR BACKSET(B5>0,B2))*B2;
DRAWTEXT(B6>0,L-L*0.02,VAR2STR(B6,0)),COLOR00FF00{COLORFFFFFF};
DRAWTEXT(B2=9,L-L*0.02,'9'),COLORFF00FF;