自用超级给力的多点共振指标公式(副图)
2017-07-22网络 编 辑:翔博软件
DRAWTEXT(C>0,1,'$'),COLOR0000FF ,LINETHICK2;
DRAWTEXT(C>0,0,'*'),COLOR0000FF ,LINETHICK2;
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);
最佳买入选股:=IF(CROSS(最佳买入,0),1,0);
VAR1:=SMA(最佳买入选股,3,1);
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
抄底:=CROSS(VAR2,VAR3) AND (VAR2<40);
DRAWTEXT(抄底,0.9,'【抄底'),COLOR0000FF ,LINETHICK2;
吃肉:=CROSS(C,MA(C,3)) AND REF(C,2)<REF(MA(C,3),2);
DRAWTEXT(吃肉,0.8,'〖吃肉'),COLORCBC0FF,LINETHICK2;
N:=9;
N1:=6;
M:=14;
TYP := (HIGH + LOW + CLOSE)/3;
CC1:=(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M));
C1:=SMA(CC1,3,1);
C2:=SMA(C1,3,1);
C3:=3*C1-2*C2;
CB1:=EMA(C3,5);
CB2:=REF(CB1,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI:=(RSI1-50)*5;
R1:=SMA(RSI,3,1);
D1:=SMA(R1,3,1);
J1:=3*R1-2*D1;
RR1:=EMA(J1,5);
RR2:=REF(RR1,1);
RR:=RR1>RR2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
K1:=(K-50)*5;
K2:=SMA(K1,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
刀客:=RR AND NOT(REF(RR,1)) AND (RR1<-100 AND BB1<-100) AND CB1<-100;
DRAWTEXT(刀客,0.7,'【刀客'),COLORB48246,LINETHICK2;
VARK1:=MA((VOL-REF(VOL,1))/REF(VOL,1),5);
VARK2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
MY:=VARK2*(1+VARK1);
SHT:=MY;
SHTMA:=MA(SHT,5);
亮剑:=CROSS(SHT,SHTMA) AND (SHTMA<0);
DRAWTEXT(亮剑,0.6,'〖亮剑'),COLORC0C0C0,LINETHICK2;
WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
WSR2:=CROSS(WSR1,5);
WSR3:=CROSS(8,WSR1);
WSR4:=CROSS(WSR1,-5);
WSR5:=CROSS(WSR1,-8);
WSR6:=WSR3;
WSR7:=WSR4 OR WSR5;
出手:=WSR7 AND FILTER(WSR7,5);
DRAWTEXT(出手,0.5,'【出手'),COLORCC3299,LINETHICK2;
VARL2:=((((2*CLOSE)+HIGH)+LOW) / 4);
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
CL1:=(EMA((((VARL2-VAR4)/(VAR5-VAR4))*100),4));
CL2:=(EMA(((0.667*REF(CL1,1))+(0.333*CL1)),2));
飞标:=CROSS(CL1,CL2) AND CL2<60;
DRAWTEXT(飞标,0.4,'〖飞标');
DIFF:= EMA(CLOSE,10) - EMA(CLOSE,22);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
绿缩:=CROSS(MACD,REF(MACD,1) ) AND REF(MACD,1)<0;
DRAWTEXT(绿缩,0.3,'【绿缩'),COLOR32CD32,LINETHICK2;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
Y三平:=(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)));
DRAWTEXT(Y三平,0.2,'〖三平'),COLORD4FF7F,LINETHICK2;
AA1:=FILTER(LOW=LLV(LOW,13),8);
AA2:=IF(LLV(LOW,3)=LLV(LOW,13) AND CLOSE<REF((HIGH+LOW)/2,1),MAX(REF(LLV(LOW,12),BARSLAST(AA1)+1)-LOW,0),0);
AA3:=EMA(AA2,3)*3;
AA4:=SUMBARS(AA3>0,21);
AA5:=SUM(AA3,AA4)/21;
AA6:=REF(AA3,1)=HHV(AA3,3) AND REF(AA3,1)>AA5*3 AND
COUNT(CLOSE/REF(CLOSE,1)<0.9025,8)=0 AND C>O AND LLV(LOW,3)/HHV(HIGH,18)<0.88;
反转:=FILTER(AA6,5);
DRAWTEXT(反转,0.1,'【反转'),COLOR0000FF,LINETHICK2;