通达信——精选指标《》指标源码
指标源码:
FL:=MA(CLOSE,15)+ABS(MA(CLOSE,15)-REF(MA(CLOSE,15),1)),COLORWHITE;
FS:=MA(CLOSE,15)+MA(CLOSE,15)-REF(MA(CLOSE,15),1),COLORWHITE;
BB:=IF(MA(CLOSE,5)NX:=EMA(C,250);
A:=BB-(EMA(C,3)-BB),COLORWHITE;
DIFF:=EMA((NX-(EMA(C,3)-NX)),5),LINETHICK2;
止损线:=EMA(COST(60),10) COLORRED,LINETHICK2;
牛熊线:=EMA(COST(27),120);
XG1:=CROSS(BB,DIFF);
超准:=EMA(C,26);
超级趋势线2:=PLOYLINE(MA(C,3)>超准,超准);
超级趋势线:=PLOYLINE(MA(C,3)<超准,超准);
XG2:=超级趋势线>超级趋势线2;
XG3:=O>REF(H,1) AND O/REF(C,1)>1.04 AND C>O AND V/CAPITAL*100>5 AND C/REF(C,1)>1.03;
XG4:=C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,120);
XG5:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926)>60 AND IF(CODELIKE('300'),0,1) AND IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1) AND DYNAINFO(4)>0 AND H>L;
XG6:=XG1 AND XG2 AND XG3 AND XG4 AND XG5;
XG7:=V/MA(V,5)>=1 AND V/CAPITAL*100>15 AND C/REF(C,1)>1.03;
XG8:=MA(C,60)>MA(C,120) AND (ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926)>60 AND IF(CODELIKE('300'),0,1) AND IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1) AND DYNAINFO(4)>0 AND H>L;
XG9:=XG1 AND XG2 AND XG7 AND XG8;
XG10:=O>REF(H,1) AND O/REF(C,1)>1.04 AND C>O AND V/MA(V,5)>=1 AND V/CAPITAL*100>3 AND C/REF(C,1)>1.03;
XG11:=MA(C,60)>MA(C,120) AND IF(CODELIKE('300'),0,1) AND IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1) AND DYNAINFO(4)>0 AND H>L;
XG12:=COUNT(XG1,2)>=1 AND XG2 AND XG4 AND XG10 AND XG11;
XG6 OR XG9 OR XG12;