送上我两年来一直珍藏使用的一条综合分时指标给大家分享,以表回敬!做短线T,日内做高抛低吸非常不错噢!
{[综合短波](分时专用)指标}
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE-LC),0),5,1)/SMA(ABS((CLOSE-LC)),5,1))*40);
TD:=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*40)/TD);
MDI:=((DMM*40)/TD);
ADX:=MA(((ABS((MDI-PDI))/(MDI+PDI))*40),5);
AV:=(RSI5+ADX);
DXR:=(((ADX+REF(ADX,5))/2)+RSI5);
WR10:=((40*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10)));
NEWVOL:=(RSI5-WR10);
阶段底部:=(AV+NEWVOL);
STICKLINE((阶段底部>=0),0,阶段底部,0.3,1),COLORCC6600;
STICKLINE((阶段底部<0),0,阶段底部,0.8,1),COLORRED;
络A:=LLV(阶段底部,1),COLORWHITE;
STICKLINE((络A>92),92,络A,0.8,1),COLORGREEN;
络:络A,COLORWHITE;
络风险线:REFDATE(92,DATE),POINTDOT,COLORRED;
天地线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*600,5,1)-2*
SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK1;
乾坤:=(((天地线-LLV(天地线,21))/(HHV(天地线,21)-LLV(天地线,21)))*(4))*(25),LINETHICK1,COLORLIRED;
DRAWTEXT(CROSS(99.95,乾坤),100,'↖'),COLORWHITE;
DRAWTEXT(CROSS(99.95,乾坤),95,'暂'),COLORYELLOW;
DRAWTEXT(CROSS(99.95,乾坤),85,'出'),COLORYELLOW;
DRAWTEXT(CROSS(99.95,乾坤),75,'观'),COLORYELLOW;
DRAWTEXT(CROSS(99.95,乾坤),65,'出'),COLORYELLOW;
DRAWTEXT(CROSS(99.95,乾坤),95,'暂'),COLORYELLOW;
DRAWTEXT(CROSS(乾坤,10),45,'极'),COLORMAGENTA;
DRAWTEXT(CROSS(乾坤,10),35,'地'),COLORMAGENTA;
DRAWTEXT(CROSS(乾坤,10),25,'买'),COLORMAGENTA;
DRAWTEXT(CROSS(乾坤,10),15,'入'),COLORMAGENTA;
DRAWTEXT(CROSS(乾坤,10),10,'↙'),COLORMAGENTA;
波段:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*110,4,1),3)NODRAW;
VAR1:=EMA(波段,1);
VAR2:=EMA(VAR1,2);
VAR3:=CROSS(VAR1,VAR2);
VAR4:=CROSS(VAR2,VAR1);
STICKLINE(波段>82,波段-2,波段+2,2,0),COLORRED;
STICKLINE(波段>50 AND 波段<82,波段-2,波段+2,2,1),COLORMAGENTA;
STICKLINE(波段>20 AND 波段<50,波段-2,波段+2,2,1),COLORYELLOW;
STICKLINE(波段<20,波段-2,波段+2,2,1),COLORLIBLUE;
STICKLINE(VAR3 AND 波段>0,波段,0,1,0),COLORRED;
STICKLINE(VAR4,波段,波段+12,1,0),COLORGREEN;
抄底:IF(CROSS(波段,8) OR CROSS(波段,15),波段*3.0,0),COLORMAGENTA,LINETHICK1;
乾坤线:乾坤,LINETHICK2,COLORLIRED;
断开卖出:IF(波段>REF(波段,1),波段,DRAWNULL),COLORYELLOW,LINETHICK1;
断开卖进:IF(波段<REF(波段,1),波段,DRAWNULL),COLORGREEN,LINETHICK1;
DRAWTEXT(抄底>1,抄底+5,'抄底!'),COLORRED;
DRAWICON(抄底>1,抄底,4);
买进!:IF(VAR3 AND VAR1>20,波段,0),COLORRED,LINETHICK1,NODRAW;
卖出!:IF(VAR4,波段,0),COLORGREEN,NODRAW;
DRAWTEXT(VAR3 AND 波段>1,波段-7,'买'),COLORRED;
DRAWTEXT(VAR4,波段+8,'卖'),COLORGREEN;
财:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
星:=SMA(财,10,1);
趋势:EMA(星,6),LINETHICK1;
DRAWTEXT(CURRBARSCOUNT=1,90,' 乾坤线从100平横'),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=1,75,' 回落后一般会做'),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=1,60,' 一段震荡调整'),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=1,35,' 白<络>线上穿粉'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,20,' 红底线时一般可'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,5,' 买到阶段地价'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=204,90,'乾坤线从100平横'),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=204,75,'回落后一般会做'),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=204,60,'一段震荡调整'),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=204,35,'白<络>线上穿粉'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=204,20,'红底线时一般可'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=204,5,'买到阶段地价'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,110,' (TDX)[综合短波](分时专用)'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=204,110,'(TDX)[综合短波](分时专用)'),COLORYELLOW;
T100:100,POINTDOT,COLORYELLOW; |