网友求助:
请老师帮忙写个30日均线走平及上行,同时个股走势近30日比大盘强的选股公式,谢谢!
解答如下:
REF(MA(C,30),2)=REF(MA(C,30),1) AND MA(C,30)=REF(MA(C,30),1) AND (INDEXC-REF(INDEXC,30))/REF(INDEXC,30)*100<(C-REF(C,30))/REF(C,30)*100;
================
{上行选股}
MA(C,30)>REF(MA(C,30),1)AND (INDEXC-REF(INDEXC,30))/REF(INDEXC,30)*100<(C-REF(C,30))/REF(C,30)*100;