ma20:=ma(c,20);ma60:=ma(c,60);a1:=between(c,ma20,ma60);b20:cross(c,ma20) and a1=0;//上穿20均线, 且不在20与60均之间s20:-(cross(ma20,c) and a1)=0;//下穿20均线, 且不在20与60均之间b60:cross(c,ma20) and a1=0;//上穿60均线, 且不在20与60均...
k0:=(time0-32400)/60;k:=if(k0<90,k0,if(k0<270,k0-15,k0-135)),linethick0;昨天:=barslast(date>ref(date,1)),linethick0;周期:=intpart((k)/(昨天+1)+0.5),linethick0;n:=if(周期<3 and 周期>0,225,if(周期<...