通达信紫鸡选股公式
昨晚根据西电老师的回调决策K线中紫色K线和公鸡吸筹做了一个选股公式,就叫紫色公鸡吧。今天盘后选出1只股票600234,做一下测试,看看后市效果如何。
F:=100*(C-REF(C,1))/REF(C,1);
P1:=IF((C<REF(O,1) AND F<0),1,0);
P2:=IF((C<REF(O,2) AND F<0),1,0);
TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(VAR3*10,3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=IF(BARSCOUNT(CLOSE) >34,1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
BB:=(VAR9>1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2));
选股:(TT3 AND BB);