网友求助:
请老师把长短线资金指标做个选股公式,多谢!:
条件如下:
1:N天内有涨停(N的天数可自行设定)
2:长期大于50
3:短期小于20
{长短线资金}
短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;
中长期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;
长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;
100;
50;
20;()
解答如下:
COUNT((C-REF(C,1))/REF(C,1)*100>9.5 AND C=H,N)>=1 AND 100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5))<20 AND 100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30))>50;