{寻底抢先手(副图、选股)
}
VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VAR10:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VAR11:=POW(MA(LOW,5),2)+MA(LOW,5);
VAR12:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VAR13:=(VAR10-LLV(VAR11,64))/(HHV(VAR12,64)-LLV(VAR11,64))*150+65-10;
VAR14:=SMA(VAR13,3,1)*1.5-100;
VAR15:=SMA(VAR14,3,1);
VAR16:=3*VAR14-2*VAR15;
VAR17:=(HIGH+LOW+CLOSE*2)/4;
VAR18:=EMA(VAR17,13);
VAR19:=STD(VAR17,13);
VAR20:=(VAR17-VAR18)*100/VAR19;
VAR21:=EMA(VAR20,5);
VAR22:=EMA(VAR21,13)+200-100;
VAR23:=EMA(VAR22,10);
VAR24:=3*VAR22-2*VAR23;
VAR25:=VAR2+VAR7+VAR14+VAR22;
VAR26:=VAR3+VAR8+VAR15+VAR23;
VAR27:=VAR4+VAR9+VAR16+VAR24;
VAR28:=(HIGH+LOW+CLOSE)/3;
VAR29:=(VAR28-MA(VAR28,34))/(0.015*AVEDEV(VAR28,34));
VAR30:=(HIGH+LOW+CLOSE+VAR28)/4;
VAR31:=EMA(VAR30,24);
VAR32:=STD(VAR30,24);
VAR33:=(VAR30-VAR31)/VAR32*100;
VAR34:=(VAR28-MA(VAR28,24))/(0.015*AVEDEV(VAR28,24));
VAR35:=EMA(VAR33,5);
VAR36:=((VAR35+VAR34+VAR29)/3+165)/4;
VAR37:=(EMA(EMA(EMA(VAR36,15),10),5)-25)*2;
VAR38:=(VAR25+VAR26+VAR27*30)/32/5-15;
VAR50:=EMA(VAR38,7);
VAR51:=(VAR36+VAR38)/2/1.1;
NOTEXT0:0,DOTLINE,COLORWHITE;
NOTEXT100:100,DOTLINE,COLORGREEN;
超短:EMA(VAR51,3),COLORRED;
短线:EMA(超短,5),COLORWHITE;
趋势线:EMA((VAR37+VAR50)/2,2),COLORYELLOW;
DRAWICON(CROSS(趋势线,0),0,1);
DRAWICON(CROSS(100,超短),100,2);
DRAWTEXT(趋势线>REF(趋势线,1) AND REF(趋势线,1)<REF(趋势线,2)AND COUNT(CROSS(超短,短线),3)=1 AND 短线<30,短线,'寻底');