x1:=finance(7)<=300000000 and dyna**(7)>5;x2:=macd.macd>ref(macd.macd,1) and macd.dif<macd.dea ;x1 and count(x2,3)=3 and macd.dif>=0;快要金叉是个模糊的概念,公式无法准确表达出来,所以只能用白线连续3天向上来表达。
k:=max((h+l)/2,(c+o)/2);bbi:=(ma(c,3)+ma(c,6)+ma(c,12)+ma(c,24))/4;b:k>=bbi or bbi>=ref(bbi,1);或----k:=max((h+l)/2,(c+o)/2);bbi:=(ma(c,3)+ma(c,6)+ma(c,12)+ma(c,24))/4;b:cross(k,bbi) or bbi>=r...
{ok.测试通过}n:=8;aa1:=ref(l,n)=llv(l,2*n+1);bb1:=backset(aa1,n+1);cc1:=filter(bb1,n) and l=llv(l,n+1);m:=intpart(3*n/5);aa2:=ref(l,m)=llv(l,2*m+1);bb2:=backset(aa2,m+1);cc2:=filter(bb2,m) and l=llv(l,m+1...
f30a:=max(ma(c,10),ma(c,20));f30:=c>f30a;f60a:=max(ma(c,20),ma(c,28));f60:=c>f60a;fra:=max(ma(c,60),ma(c,120));fr:=c>fra;xg:cross(f30 and f60 and fr,0.5);