a:=999999999;mk:=0;ps:=0;if barstatus=2 then for i=1 to barpos do if sum(amount,i)>a then begin mk:=1; break; endps:backset(mk,i);{呵呵,虽然不知道你的用途,你可以试下上面的代码(适合大智慧使用),a的数值是我随意敲进去的,你按你需...
m5:=ma(c,5);m10:=ma(c,10);m20:=ma(c,20);m60:=ma(c,60);dif:="macd.dif;dea:="macd.dea;macd:="macd.macd;t1:=m20>=m60 and cross(m10,m5);t2:=dif>=0 and dea>=0 and macd xg:t1 and t2;参考资料:http://tie...