dif:ema(c,12)-ema(c,26);dea:ema(dif,9);macd:(dif-dea)*2,nodraw;zero:=0;{macd柱线变色标识}stickline(macd>0 and macd>=ref(macd,1),0,macd,3,0),colorred;stickline(macd>0 and macd<ref(macd,1),0,macd,...
获利**:=ema(winner(c)*70,5),colormagenta;亏损**:=ema((winner(c*1.1)-winner(c*0.9))*80,5),coloryellow;主力控筹:=if(获利**>亏损**,获利***2,获利**),colorred;主力控筹>获利** and ref(主力控筹=获利**,1);凭感觉,你应该要主力控筹大于获利**的条件。不是再...
以下是修改过的,按问题要求做的股票选股公式,用软件实际测试过能达到要求,可以使用: za1:=sma(close,2,1);za2:=ema(c,2);za3:=ema(slope(c,24)*20+c,42);bu:=cross(za2,ref(za2,1)*1.017);sel:=cross(za3,za2);zmin:bu and cross(za2,za3*1.008)and za1>...