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));仅供参考,祝你好运! 20210311
boll:=ma(close,n);upper:=boll+2*std(close,n);lower:=boll-2*std(close,n);cross(ma(c,5),ma(c,10)) and upper<ref(upper,1) and lower>ref(lower,1) and ref(upper,1)<ref(upper,2) and ref(lower,1)>...
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)...