ma5:=ma(c,5);ma10:=ma(c,10);ma30:=ma(c,30);ma60:=ma(c,60);xg:cross(ma5,ma30) and cross(ma5,ma60) and cross(ma10,ma30) and cross(ma10,ma60) and ma60>ma30 and ma5>ma10 and ma10>ma30;
{把参数m修改成:2, 100, 60}va:=if(close>ref(close,1),vol,-vol);obv:sum(if(close=ref(close,1),0,va),0);maobv:ma(obv,m);aa:=every(obv>=maobv,160);xg:ref(aa,1)=0 and aa=1,nodraw;{希望能够帮到您哈}