cc:valuewhen(cross(ma5,ma10),close);
nn1:barslast(cross(ma5,ma10))+1;
cc1:ref(ref(c,nn1),nn1);
if cross(ma10,ma5) then 差值:=cc1-cc;