aa:=close/ref(close,1)>1.03; bb:=low/ref(high,1)>1 and low/ref(high,1)<1.02; cc:=close<hhv(high,40) and low / llv(low,20)<=1.12; dd:=amount/ma(amount,5)>2; 买入:aa and bb and cc and dd; ee:=close/ref(close,1)<0.995 and ref(open,1)/ref(close,1)<1 and ref(close,2)/ref(close,3)<0.991; ff:=ref(high,2)>hhv(high,12); gg:=ref(close,2)/ref(close,3)<1 and ref(close,1)/ref(close,2)>1 and ref(low,1)/ref(low,2)<1; xh1:=ee and ff and gg; hh:=close/(ref(close,1)+ref(open,1))<0.5; xh2:=ee and hh; kk:=amount>ref(amount,1) and amount>ref(amount,2) and ref(amount,2)<ref(amount,1); xh3:=ee and kk; 卖出:xh1 or xh2 or xh3;这个就可以了 但是你这个指标不好 卖出的很不准确 买入的利润也太小 20210311
dif:ema(close,12)-ema(close,26);dea:ema(dif,9);macd:(dif-dea)*2,colorstick;jccount:=count(cross(dif,dea),barslast(dea>=0));二金:=cross(dif,dea) and dea<0 and count(jccount=2,21)=1;stickline(二金,0,-...
改成大智慧1源码如下:vol,volstick;var1:=vol/capital*100;主力吸筹:换手率>3 and 换手率<=5,colorblue; 加快吸筹:换手率>5 and 换手率<=7,coloryellow; 主力进攻:换手率>7 and 换手率<=10,colorgreen; 主力猛攻:换手率>10,colorred; 均5:ma(vo...