注意:把源码复制后把参数填上去,否则通不过!参数, N1:最小:1,最大:20,缺省值5, N2:最小:1,最大50,缺省值:5;
源码如下:
{实用波段}
input:n1(5),n2(5);
A: MA(C,21),COLORRED,LINETHICK2;
B: (EMA(C,N1)*7+EMA(C,N2)*3)/10,COLORWHITE,LINETHICK2;
STICKLINE(B A,A,B,0.1,1),COLOR0000FF ;
STICKLINE(B A,A,B,0.1,1),COLORGREEN;
JJ:=(CLOSE+HIGH+LOW)/3;
E:=EMA(JJ,5);
D:=REF(E,1);
持股:STICKLINE(E D,E,D,3,0),COLORFF00FF;