BBI:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20)+MA(CLOSE,30))/4;
预警1:CROSS(C,BBI),COLORRED;
预警2:CROSS(BBI,C),COLORBLUE;
希望对你有帮助
N1:=5;
N2:=10;
N3:=20;
N4:=30;
BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;
XG:CROSS(C,BBI);
{选股}
N1:=5;
N2:=10;
N3:=20;
N4:=30;
BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;
XG:CROSS(BBI,C);
{逃顶}