t1:=ma(c,5)>ma(c,24);t2:=ma(c,5)/ma(c,24)<1.05 and ma(c,5)/ma(c,24)>1;t3:=ref(ma(c,5),1)>ma(c,5) and ref(ma(c,5),2)>ref(ma(c,5),1) and ref(ma(c,5),3)>ref(ma(c,5),2);xg:t1 and t2 and t3;请选股时将周期选为周线希望能帮到你! 20210311
ma10:=ma(c,10);ma20:=ma(c,20);周:=c#week;wma5:=ma(周,5);开仓:=?{这二个请写上} 平仓:=?enterlong:c>ma20 and c>wma5,tfilter(开仓,平仓,1);exitlong:c<ma20 and cross(ma(close,10),ma(close,5));仅供参考,祝你好运!
m3:=(c,3);m5:=(c,5);m13:=(c,13);xg:(m3,m5) and m5>m13;以上是当前3日金叉5日,并且当前3日5日在13日之上(其它模糊)。以下是在以上的条件上,规定当前3日线是从13以下上穿上来的,如果想规定5日也是同时从13日以下上穿上来,可以在末尾一句分号的后面加上。“ and (m5m13 and (m3m13 (m3>m13 and m5>m13,n)...