LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
R:=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) / R);
MDI:=((DMM * 100) / R);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
趋势线:=(AV + NEWVOL)*10;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,5);
VAR3:=HHV(HIGH,4);
AA:=EMA((VAR1-VAR2)/(VAR3-VAR2),4);
AA1:=EMA(0.667*REF(AA,1)+0.333*AA,2);
B:=ZIG(3,50/5)*100;
G:=MA(B,2);
选股1:(CROSS(B,G) AND CROSS(AA,AA1) AND CROSS(趋势线,0));
V9:=TROUGHBARS(3,15,1)<10;
V11:=IF(V9=1,50,0);
大底:= IF(V11=50,50,0);
买:=IF( 大底>REF(大底,1),30,0);
买进:=IF(REF(买=30,1) AND 买=0,1,0);
选股2:买进,COLORWHITE;
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
选股3:VAR11 AND COUNT(VAR11,30)=1,COLORWHITE;
A2:=IF(CLOSE<800,AMOUNT/VOL/100,(CLOSE*2+HIGH+LOW)/4);
A9:=(EMA(MA(A2,3),3)+MA(A2,5))/2;
A10:=REF(A9,1);
A11:=BARSCOUNT(CLOSE);
A12:=IF(A11=1,0,(A9-A10)/A10*100);
A13:=REF(CLOSE,1);
A14:=IF(A11=1,0,(CLOSE-A13)/A13*100);
A15:=IF(A11=1,(CLOSE+OPEN)/2,A10);
A16:=REF(A9,2);
A17:=(A9+A10+A16)/3;
A18:=(ABS(A9-A17)+ABS(A10-A17)+ABS(A16-A17))/3;
A19:=IF(A11<3,0,A18/A9*100);
A20:=IF(A12>0.5 AND (A19>0.215 OR LOW>A15) AND CLOSE>=OPEN,1,0);
A21:=IF(A12<-0.3 AND (A19>0.2 OR HIGH<A15) AND (OPEN>=CLOSE OR A14<-1),1,0);
B2:=COUNT(A20,BARSLAST(A21))=1 AND A20;
选股4:B2,COLORWHITE;
底部未确定中:选股1 AND 选股2 AND 选股3,LINETHICK3;
确定买进持有:IF(选股4,2,0),COLORRED,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,1,'本指标由发现价值研发,带未来函数,使用方法在出现黄柱以后在5天一内,再出现红柱可以买!祝你发财'); |