{创新低过均价线}
{主图}
N:=120;
均线:MA(C,N),DOTLINE;
ZD:=IF(CURRBARSCOUNT<=N,CONST(LLV(L,N)),DRAWNULL), COLORGREEN, DOTLINE;
DJ:=BARSSINCE(CURRBARSCOUNT=CONST(BARSLAST(L=ZD))+1);
REF(L,DJ),COLORGREEN, LINETHICK3;
空间:(C/REF(C,DJ+1)-1)*100, NODRAW;
均线值:REF(均线,DJ),COLORRED, LINETHICK3;
XG:=(COUNT(C>均线值,DJ)=1 AND C>均线值||(CROSS(C,均线值))) AND 空间<25 AND DJ<15;
DRAWICON(XG,L,1);
DRAWTEXT(XG,H,'买入'),DRAWABOVE; {选股};
{买入选股}
{创新低过均价线}
N:=120;
均线:=MA(C,N);
ZD:=IF(CURRBARSCOUNT<=N,CONST(LLV(L,N)),DRAWNULL);
DJ:=BARSSINCE(CURRBARSCOUNT=CONST(BARSLAST(L=ZD))+1);
均线值:=REF(均线,DJ); 空间:=(C/REF(C,DJ+1)-1)*100;
XG:=(COUNT(C>均线值,DJ)=1 AND C>均线值||(CROSS(C,均线值))) AND 空间<25 AND DJ<15; COUNT(XG,5);