//换手率>n3% 换手率值 = VOL/SHGZG*100 > 换手率限;//N日涨 日50涨:HHV(H,50)/LLV(L,50)-1; 日50涨幅=日50涨*100; //macd 定义 DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG); DEA : EMA(DIFF,M); MACD : 2*(DIFF-DEA); Zero : 0; 选股=CROSS(diff,dea) AND 换手率值 AND (日50涨幅<日50涨限值); //macd 买入 DRAWICON(CROSS(diff,dea) ,0,1); DRAWTEXT(选股,1,"buy"); //macd 卖出 DRAWICON(CROSS(dea,diff),0,2); |