XG1:=XG11 AND (XG12 OR XG13);(XG1這一行是多余的,應(yīng)全部去掉) XG120:=EXTDATA_USER(1,0);{120天的RPS} RPSXG120:=XG120/10; XG250:=EXTDATA_USER(2,0);{250天的RPS} RPSXG250:=XG250/10; XG50:=EXTDATA_USER(3,0);{50天的RPS} RPSXG50:=XG50/10; XG11:=COUNT(HIGH=HHV(HIGH,250),5)>=1;{過(guò)去5天內(nèi)至少有1個(gè)交易日的最高價(jià)等于過(guò)去250天的最高價(jià)} XG12:=IF(RPSXG120<=95.99,0,1) OR IF(RPSXG250<=95.99,0,1);{RPS120大于96,或者RPS250大于96}; XG13:=IF(RPSXG120<=94.99,0,1) and IF(RPSXG50<=94.99,0,1);{RPS120大于95,且RPS50大于95}; XG1:=XG11 AND (XG12 OR XG13); XG21:=C/HHV(H,250)>=0.5;{收盤價(jià)大于一年內(nèi)最高價(jià)0.5,允許最大回撤超過(guò)-50%,但必須開(kāi)始回升} XG22:=IF(RPSXG120<=97.99,0,1) OR IF(RPSXG250<=97.99,0,1);{RPS120大于98,或者RPS250大于98}; XG2:=XG21 AND XG22; XG3:=VOL/CAPITAL*100<20;{日線換手率小于20%} (XG1 OR XG2) AND XG3; |
|
來(lái)自: 不如走遠(yuǎn) > 《陶博士》