以下是通达信三剑合一精选选股公式(无源码的请下载附件导入)
{公式名称: 三剑合一精选}
Z:=MA(CLOSE,120);
VAR3:=(MA(CLOSE,5)-Z)/Z;
VAR4:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);
波段进场:=IF(CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2),80,50);
BDJC:=波段进场=80;
VAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
A10:=CROSS(控盘,0);
开始控盘:=IF(A10,5,0);
N:=IF(BARSCOUNT(CLOSE)>=45,45,BARSCOUNT(CLOSE));
W:=MA(CLOSE,N);
中线选股:=CLOSE>=W AND REF(CLOSE,1)<REF(W,1);
N1:=IF(BARSCOUNT(CLOSE)>=10,10,BARSCOUNT(CLOSE));
W1:=MA(CLOSE,N1);
短线选股:=CLOSE>=W1 AND REF(CLOSE,1)<REF(W1,1);
MRJX:=中线选股 AND 短线选股;
XG:BDJC AND MRJX AND 开始控盘;
|