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));仅供参考,祝你好运!
va:=if(close>ref(close,1),vol,-vol);obv:sum(if(close=ref(close,1),0,va),0);m:=2;maobv:ma(obv,m);if(ref(maobv,1)>maobv and ref(maobv,1)>ref(maobv,2));还有我不太懂你什么意思,是要做选股公式还是怎么样?