网友求助:
如下图所示做个选股 谢谢
cyc5:CYC(5);
cyc13:cyc(13);
cyc34:cyc(34);
cyc0:MAXCYC,colorff9900;
AS:=MA(C,1);
A1:=EMA(C,30);
AX:=(A1-REF(A1,1))/REF(A1,1)*100;
partline(REF(EMA(C,50),BARSLAST(CROSS(AX,0))+1 ),AX>=0),COLORYELLOW,LINETHICK1;
买入价:=IF(AX>=0,REF(EMA(C,50),BARSLAST(CROSS(AX,0))+1 ),0);
DRAWtext(BARSTATUS=2 AND 买入价,买入价*1.005,numtostr(买入价)),COLORYELLOW;(
请老师优化1下,如图所示股价站上画线为信号
解答如下:
AS:=MA(C,1);
A1:=EMA(C,30);
AX:=(A1-REF(A1,1))/REF(A1,1)*100;
买入价:IF(AX>=0,REF(EMA(C,50),BARSLAST(CROSS(AX,0))+1),0);