DRAWGBK(O>C,RGB(40,40,40),RGB(0,0,40),0,'01',0);
DIF:EMA(CLOSE,12)-EMA(CLOSE,26)COLOR0000EE;
DEA:EMA(DIF,9) COLORFF9900,LINETHICK1;
MACD:(DIF-DEA)*2,COLORSTICK;
W1:STICKLINE(MACD>0,MACD,0,0.1,1),COLORRED;
W2:STICKLINE(MACD<0,MACD,0,0.1,1),COLORCYAN;
VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);
VA2:=CROSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);
QG:=DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLORGREEN,DOTLINE;
NOTEXT前高A:DRAWLINE(VA2,MACD,ISLASTBAR,REF(MACD,BARSLAST(VA2)),1),COLORGREEN,DOTLINE;
VA3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);
VA4:=CROSS(BACKSET(CROSS(MACD,0),REF(VA3,1)+2),0.5);
QD:=DRAWLINE(VA4,MACD,REF(VA4,1),REF(MACD,1),1),COLORYELLOW,DOTLINE;
NOTEXT前低A:DRAWLINE(VA4,MACD,ISLASTBAR,REF(MACD,BARSLAST(VA4)),1),COLORWHITE,DOTLINE;
W3:STICKLINE(MACD>QG,MACD,QG,0.1,0),COLORYELLOW;
W4:STICKLINE(MACD<0 AND MACD<QD AND QD<0,MACD,QD,0,0),COLORBLUE;
买线1:=LLV(MA(((C+L+O+H)/4),10),5);
卖线:=HHV(MA(((C+L+O+H)/4),5),5);
倍:=(卖线+买线1)/2;
涨停价:=ZTPRICE(REF(C,1),0.1) NODRAW;
跌停价:=DTPRICE(REF(C,1),0.1) NODRAW;
注:=CROSS(C,倍) NODRAW;
试:=H>=倍 AND C<倍 AND (C>=O OR C>=REF(CLOSE,1)) NODRAW;
价:(卖线+买线1)/2 NODRAW;
涨停:=CLOSE/REF(CLOSE,1)>=1.095;
A111:=C>REF(C,4);
NT:=BARSLASTCOUNT(A111);
TJ11:=NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;
DRAWTEXT(AY>0,MACD*1.02,VAR2STR(AY,0)),COLORA67D3D;
DRAWTEXT(NT=9,MACD*1.02,'9'),COLORGREEN;
B1:=C<REF(C,4);
NT0:=BARSLASTCOUNT(B1);
TJ21:=NT0=9 ;
TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;
DRAWTEXT(AY1>0,MACD*0.98,VAR2STR(AY1,0)),COLORA67D3D ;
DRAWTEXT(NT0=9,MACD*0.98,'9'),COLORRED;
MACD120:REF(MACD/2,BARSLAST(MACD=HHV(MACD,120))),COLORA67D3D,LINETHICK1;
MACD250:REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),COLORGREEN,LINETHICK1;
XG8:=NOT(REF(MACD120,1)=MACD120);
STICKLINE(XG8,0,MACD,0,0),COLORYELLOW;
STICKLINE(MACD>=MACD250,MACD250,MACD,0,0),COLORMAGENTA;
大行情:=NOT(REF(MACD120,1)=REF(MACD250,1)) AND MACD120=MACD250;
DRAWICON(大行情,0,11);
ZTB2:=C>INTPART(REF(C,1)*(1+10/100)/0.01+0.5)*0.01-0.006 AND C=H;
启动:=DIF>-0.2 AND DIF<0.35 AND
ZTB2 AND REF(ZTB2,1)<1
AND COUNT(DIF>=-0.01,5)=5;VAB0:=13;
VAB1:=1500000;
VAB2:=VAB0 + VAB1;
VAB3:=1;
LC:=REF(CLOSE,1);
SG:=EMA(HHV(HIGH,1),8);
X1:=EMA(CLOSE,8);
X30:=((X1 < REF(X1,1)) AND (CLOSE < X1));
X31:=IF(((SG < REF(SG,1)) OR X30),1,0);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,COLORRED,LINETHICK2;
震仓:=45,COLORMAGENTA;
底线:=20,COLORGREEN;
PP:=操作线<震仓 AND REF(操作线,1)>震仓 ;
PP3:=操作线<底线 AND REF(操作线,1)>底线*VAB3;
龙头战法:=
(((((COUNT((X31 = 1),4) = 3) AND (X31 = 0))
AND O<C AND (((C-REF(C,1))/REF(C,1))>0.089))*10) >=10)
OR((C-REF(C,1))/REF(C,1)>0.089 AND (REF(PP3,1) OR REF(PP,1))) AND VAB3=1 AND 启动;
ZTB5:=C>INTPART(REF(C,1)*(1+10/100)/0.01+0.5)*0.01-0.006 AND C=H;
猎豹1:=ZTB5 AND REF(龙头战法,1)=1;
VARR1:=V;
VARR2:=VARR1>MA(V,89);
VARR3:=EXPMA(C,5);
VARR4:=EXPMA(C,29);
VARR5:=VARR3>VARR4;
RSI1:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),56,1)/SMA(ABS(CLOSE-LC),56,1)*100;
VARR6:=RSI1>RSI2 AND VARR5 AND VARR2;
VASS1:=HHV(H,30);
VASS2:=LLV(L,30);
VASS3:=REF((VASS1/VASS2-1)*100<=30,1);
A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
游资:=EMA(A2,200)*1.1;
条件:=(C-REF(C,1))/REF(C,1)*100>5;
妖股:=CROSS(C,游资) AND REF(C*1.097,1)<C AND VARR6 AND VASS3,;
猎豹:=猎豹1 AND 妖股;
DRAWTEXT(猎豹,0,'剑'),COLORGREEN;
DIFF:=( EMA(CLOSE,12) - EMA(CLOSE,26));
日金叉:=IF(CROSS(DIF,DEA),1,0);
日零轴上:=IF(DEA>0,1,0);
日MACD买点:=(日金叉*日零轴上)>0;
柱2:=IF(DEA<DIFF,DEA,0),COLORMAGENTA;
DRAWICON(CROSS(DIFF,DEA),柱2,1);
DRAWICON(CROSS(DEA,DIFF),DEA*1.1,2);
A:="MACD.DIF#WEEK";
B:="MACD.DEA#WEEK";
周金叉:=IF(CROSS(A,B),1,0);
周零轴上:=IF(B>0,1,0);
周MACD买点:=(周金叉*周零轴上)>0,COLORYELLOW,LINETHICK2;
DRAWTEXT(周MACD买点,0,'金'),COLORGREEN;
X_1:=EMA(CLOSE,9);
主升浪1:=EMA(X_1*1.14,5),;
主升浪2:=EMA(CLOSE,3),;
STICKLINE(主升浪2>主升浪1,0,0.03,5,0),COLORRED;
{主力异动}
VARRR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VARRR2:=EMA(VARRR1,30);
VARRR3:=EMA(VARRR2,30);
VARRR4:=3*VARRR2-2*VARRR3;
势:=EMA(VARRR4,5),COLORBLUE,LINETHICK3;
VARRR5:=LLV(LOW,10);
VARRR6:=HHV(HIGH,25);
决策线:=EMA((CLOSE-VARRR5)/(VARRR6-VARRR5)*100,4),COLORRED,LINETHICK2;
{DRAWTEXT(CROSS(80,决策线),75,'小心')COLORWHITE;}
五十:=50,POINTDOT,COLORYELLOW;
十:=10,COLORYELLOW;
八十:=80;
DRAWTEXT(CROSS(10,势),0.05,'异'),COLOR00C0FF;
DRAWTEXT(CROSS(10,势),0.01,'动'),COLORB47DFF;
抄底:=ABS((CROSS("MACD.DIF","MACD.DEA")
&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.09,COLORLIMAGENTA,LINETHICK2;
DRAWICON(ABS(抄底)>0,抄底,9);
DIF4:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA4:=EMA(DIF4,9);
ZTB:=C>INTPART(REF(C,1)*(1+10/100)/0.01+0.5)*0.01-0.006 AND C=H;
启动版:=DIF4>-0.2 AND DIF4<0.35 AND
ZTB AND REF(ZTB,1)<1
AND COUNT(DIF>=-0.01,5)=5;
DRAWTEXT(启动版,0,'妖'),COLOR00FFFF;
VT3:=REF(MACD,6)<0 AND REF(MACD,5)>0 AND REF(MACD,4)>0 AND REF(MACD,3)>0
AND REF(MACD,2)>0 AND REF(MACD,1)>0 AND MACD>0;
DRAWLINE(VT3,MACD,REF(VT3,1),REF(MACD,1),1),COLORRED,DOTLINE;
VT31:=REF(MACD,6)>0 AND REF(MACD,5)<0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0;
DRAWLINE(VT31,MACD,REF(VT31,1),REF(MACD,1),1),COLORCDCDB4,DOTLINE;
VT4:=CROSS(MACD,REF(MACD,BARSLAST(VT3)));
STICKLINE(VT4>0,0,MACD,0,0),COLORYELLOW;