DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0,'448',0);
DRAWBAND(MA(CLOSE,60),RGB(200,80,80),MA(CLOSE,120),RGB(0,0,115));
MA15:EMA(CLOSE,15),COLORBLUE,LINETHICK3;
MA40:EMA(CLOSE,40),COLORLIBLUE,LINETHICK3;
MA25:EMA(CLOSE,25),,COLORYELLOW,LINETHICK3;
MA3:EMA(CLOSE,3)COLORWHITE,LINETHICK3;
MA60:EMA(CLOSE,60),COLORFF99FF,LINETHICK3;
MA70:EMA(CLOSE,70),COLORLIGRAY,CIRCLEDOT;
MA120:MA(CLOSE,120),COLOR0000FF,LINETHICK2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
BDGD:=C=HHV(C,13);
GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;
高点:REF(C,GDSJ),COLORFF00FF,POINTDOT;
突破:CROSS(C,REF(高点,1)),COLOR00FFFF,POINTDOT,NODRAW;
STICKLINE(GDSJ =6,高点,高点,3,0),COLORFF00FF;
DRAWTEXT(突破,LOW,' '),COLOR00FFFF;
BDDD:=C=LLV(C,13);
DDSJ:=BARSLAST(FILTER(CROSS(0.8,BDDD),2))+1;
低点:REF(C,DDSJ),COLOR00FF00,POINTDOT;
STICKLINE(DDSJ =6,低点,低点,3,0),COLOR00FF00;
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);
DRAWTEXT(CROSS(回调买,0),L*0.95,' 回调买'),COLORYELLOW;
DRAWICON(CROSS(回调买,-5),L*0.98,1);
AAAA:=ZIG(1,6);IF(AAAA REF(AAAA,1),AAAA,DRAWNULL)COLORBLUE,LINETHICK5;
DRAWTEXT_FIX(1,0.45,8,0,EXTERNSTR(0,1))COLOR0000FF,LINETHICK3;
TH:=HHVBARS(H,0),COLORRED,NODRAW;
TL:=LLVBARS(L,0),COLORGREEN,NODRAW;
高:HHV(H,TH),COLORRED,NODRAW;
低:LLV(L,TL),COLORGREEN,NODRAW;
H1:=高-(高-低)*0.191,LINETHICK3;
H2:=高-(高-低)*0.382,LINETHICK4;
H3:=高-(高-低)*0.5,LINETHICK3;
H4:=高-(高-低)*0.618,LINETHICK3;
H5:=高-(高-低)*0.809,LINETHICK3;
顶:REFDATE(高,DATE),COLORCYAN,POINTDOT,LINETHICK5;
%19.1:REFDATE(H1,DATE),COLORYELLOW,POINTDOT,LINETHICK3;
%38.2:REFDATE(H2,DATE),COLORMAGENTA,POINTDOT,LINETHICK4;
%50:REFDATE(H3,DATE),COLORWHITE,POINTDOT,LINETHICK3;
%61.8:REFDATE(H4,DATE),COLORMAGENTA,POINTDOT,LINETHICK3;
%80.9:REFDATE(H5,DATE),COLORYELLOW,POINTDOT,LINETHICK3;
底:REFDATE(低,DATE),COLORCYAN,POINTDOT,LINETHICK3;
DRAWTEXT(ISLASTBAR,顶,'顶'),COLORCYAN;
DRAWTEXT(ISLASTBAR,%19.1,'%19.1'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,%38.2,'%38.2'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,%50,'%50'),COLORWHITE;
DRAWTEXT(ISLASTBAR,%61.8,'%61.8'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,%80.9,'%80.9'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,底,'底'),COLORCYAN;
VAR21:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
VAR22:=8;
QQ:=CROSS(VAR21,VAR22);
DRAWTEXT(QQ,L*0.98,'买进!'),COLOR0099FF;
VAR01:=MA(CLOSE,30);
水平面: MA(CLOSE,60), CIRCLEDOT,LINETHICK2;
DRAWTEXT(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.99,' 买') , COLORYELLOW,LINETHICK1;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.008,' 卖') , COLORGREEN,LINETHICK1;
月K:= KDJ.K#MONTH
月D:= KDJ.D#MONTH
周K:= KDJ.K#WEEK
周D:= KDJ.D#WEEK
日K:= KD.K
日D:= KD.D
日金叉:=IF(CROSS(日K,日D),15,0);
周金叉:=IF(CROSS(周K,周D),25,0);
月金叉:=IF(CROSS(月K,月D),35,0);
日周月:=IF(日金叉=15 AND 周金叉=25 AND 月金叉=35,1,0);
日周月赚:=日周月=1;
日周:=IF(日金叉=15 AND 周金叉=25,2,0);
日周赚:=日周=2;
周月:=IF(周金叉=25 AND 月金叉=35,3,0);
日月:=IF(日金叉=15 AND 月金叉=35,4,0);
日月赚:=日月=4;
周月赚:=周月=3;
DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIF,9);
AAA:=(DIF-DEA)*2*60;
启动:=CROSS(AAA-REF(AAA,1),15),COLORRED,LINETHICK2;
DRAWTEXT(启动,L*0.99,'↖金牛启动'),COLORYELLOW,LINETHICK2;
DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.20,0,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.30,0.00,0,'主题投资1:')COLORWHITE;
DRAWTEXT_FIX(1,0.36,0.00,0,EXTERNSTR(0,2))COLORWHITE;
DRAWTEXT_FIX(1,0.00,0.05,0,'主营业务:')COLORWHITE;
DRAWTEXT_FIX(1,0.06,0.05,0,EXTERNSTR(0,3))COLORWHITE;
DRAWTEXT_FIX(1,0.45,8,0,EXTERNSTR(0,1))COLOR0000FF,LINETHICK3;