通达信穿心一剑选股公式
{条件选股公式 穿心一剑 缺省周期:日线
========================================================}
VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR5:=3*VAR2-2*VAR3;
VAR6:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR7:=REF(CLOSE,1);
VAR8:=SMA(MAX(CLOSE-VAR7,0),5,1)/SMA(ABS(CLOSE-VAR7),5,1)*100;
VARA:=VAR2<8;
VARB:=VAR3<12;
VARC:=VAR5<-1;
VARD:=VAR6<-13.5;
VARE:=VAR8>4;
VARF:=BARSCOUNT(CLOSE)>50;
VAR11:=VARA AND VARB AND VARC AND VARD AND VARE;
VAR11 AND (REF(BARSLAST(VAR11),1)>20 OR BARSSINCE(VAR11)=0);