左長黑右長紅選股指標(biāo)公式源碼(無源碼的請(qǐng)下載附件導(dǎo)入) N天內(nèi):=20; 左長黑:=(C/REF(C,1)<0.937 AND C/REF(C,1)>0.91) OR (C/REF(C,1)<0.975 AND C/REF(C,1)>0.91 AND REF(C,1)/REF(C,2)<0.975 AND REF(C,1)/REF(C,2)>0.91 AND C/REF(C,2)<0.938); 休息:=Abs(C-REF(C,1))/REF(C,1)<0.02; 長黑休息:=左長黑 OR (REF(左長黑,1) AND 休息) OR (REF(左長黑,2) AND COUNT(休息,2)=2) OR (REF(左長黑,3) AND COUNT(休息,3)=3) OR (REF(左長黑,4) AND COUNT(休息,4)=4); 右長紅:=(C/REF(C,1)>1.063) OR (C/REF(C,1)>1.025 AND REF(C,1)/REF(C,2)>1.025 AND C/REF(C,2)>1.063); XG: REF(C,N天內(nèi))/REF(C,1+N天內(nèi))>1 AND COUNT(長黑休息,3+N天內(nèi))>0 AND COUNT(右長紅,2+N天內(nèi))>0;
|