源码
M:=100;N:=120;P:=5;
Q1:=600*(EMA(CLOSE,3) - EMA(low,30))/EMA(low,30),colorblue;
Q:=EMA(Q1,7);
T:=(WINNER(n*C/100)-WINNER(m*C/100))*100,color009900,linethick2;
D:=-100*(WINNER(n*C/100)-WINNER(m*C/100))+p,color3399ff,linethick2;
波段买入: if(((T+D)<7 and CROSS(Q1,Q) and Q<-18) AND Q
波段卖出: if((T+D)<7 and CROSS(Q,Q1) and Q1>10,-100,0),COLORSTICK;
逃顶:if((T+D)<7 and CROSS(Q,Q1) and Q1>50 and Q>T,-100,0),COLORSTICK;
DRAWTEXT(((T+D)<7 and CROSS(Q1,Q) and Q<-18) AND Q
DRAWTEXT((T+D)<7 and CROSS(Q,Q1) and Q1>10,-80,'波段卖出 '), colorred;
DRAWTEXT((T+D)<7 and CROSS(Q,Q1) and Q1>50 and Q>T,-60,'逃顶 '), colorred;