请老师写个{融胜中轨上轨盘整}公式,谢谢! {融胜轨道源码} CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DD:=DMA(CLOSE,CC); 上:(1+7/100)*DD,LINETHICK2,colorred; 下:(1-7/100)*DD,LINETHICK2,colorgreen; 中:(上+下)/2,LINETHICK2,colorwhite; 要求: 10天内,MA5日平均线上穿“中”轨,并且在这10天内MA5没有上穿“上”轨,也没有下穿“中”轨(就是MA5上穿中轨后,10天时间都在中轨和上轨间盘整)
爱约股解答:
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:=(1+7/100)*DD;
下:=(1-7/100)*DD;
中:=(上+下)/2;
COUNT(CROSS(MA(C,5),中),10)>0 AND COUNT(CROSS(MA(C,5),上),10)=0 AND COUNT(CROSS(中,MA(C,5)),10)=0;