请高手帮忙编个MT4指标

 
阶段卖:90;
趋势:3*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3,1);
底部:10;
买入警戒: IF(趋势<=10,50,0);
买入信号: IF(CROSS(趋势,底部),100,0);
卖出警戒: IF(趋势>=90,50,100);

卖出信号: IF(CROSS(阶段卖,趋势),0,100);

N:27 ;