x1:=count(ma(c,5)>ref(ma(c,5),1),5)=5;x2:=count(ma(c,10)>ref(ma(c,10),1),5)=5;x3:=count(ma(c,20)>ref(ma(c,20),1),5)=5;x4:=vol/capital=3;x5:c>ma(c,5);x6:vol/shgzg*100>6;x:x1 and x2 and x3 and x4 and x5...
{绿线买}lc:=ref(close,1);操作线:=sma(max(close-lc,0),2,1)/sma(abs(close-lc),2,1)*100;趋势线:=sma(max(close-lc,0),14,1)/sma(abs(close-lc),14,1)*100;震仓线:=45;pp:=操作线<震仓线 and ref(操作线,1)>震仓线 ;涨停:=if(ref(c,1)...
yc_买进:=((close-ref(ma(close,6),1))/6+ma(close,6))*1.004;买进条件:=cross(close,yc_买进) and yc_买进>ref(yc_买进,1);yc_加仓:=((close-ref(ma(close,18),1))/18+ma(close,18))*1.004;加仓条件:=cross(close,yc_加仓) and yc_加仓...
这里设悬赏,不允许回答,是不太公平的。{个人看法}{ene-xg}upper:=(1+3{10}/100)*ma(close,7{9});lower:=(1-3{10}/100)*ma(close,7{9});ene:=(upper+lower)/2;自加: ref(c,1)<lower and cross(c,ene);