aa:=h>max(o,c)*1.03;{上影3%}ma5:=ma(c,5);ma10:=ma(c,10);ma20:=ma(c,20);bb:=ma5>ma10 and ma10>ma20 and ma5>ref(ma5,1) and ma10>ref(ma10,1) and ma20>ref(ma20,1);{5日、10日、20日均线多头排列}cc:=v&g...
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));仅供参考,祝你好运!