自己制作的仿ene通道线指标
N:=20;M:=32;P1:=80;P2:=100;N1:=35;
VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,N)*(1+P1/1000),colorwhite,LINETHICK1;
买入:XMA(VAR1,M)*(1-P2/1000),colorwhite,LINETHICK1;
幅度:=100*(卖出-买入)/买入,NODRAW;
L卖:L/卖出-1,NODRAW;
O卖:O/卖出-1,NODRAW;
H卖:H/卖出-1,NODRAW;
L买:L/买入-1,coloryellow,NODRAW;
O买:O/买入-1,NODRAW;
中:(买入+卖出)/2,colorwhite;
MA1:=MA(VAR1,3);
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
STICKLINE(买,OPEN,CLOSE,2,0),coloryellow;
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
STICKLINE(A>B,A,B,2,0),coloryellow;
STICKLINE(A<B,A,B,2,0),colorgreen;