请教高手如何在通达信选股公式里编写今日出现5内日的首次信号

2024年11月14日 13:28
有3个网友回答
网友(1):

试试
{黄金柱}
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,V*240/FROMOPEN,DRAWNULL);
虚量:=VVOL;
倍量:=(V>REF(V,1)*2 OR 虚量>REF(V,1)*2) AND C>O;
A1:=(V>REF(V,1) AND REF(倍量,1)=1);
A2:=(V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(倍量,2)=1);
A3:=(V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3) AND REF(倍量,3)
=1);
A4:=(V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3) AND REF(V,3)>REF
(V,4) AND REF(倍量,3)=1);
A5:=(V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3) AND REF(V,3)>REF
(V,4) AND REF(V,4)>REF(V,5) AND REF(倍量,3)=1);
黄金柱:=A1 OR A2 OR A3 OR A4 OR A5;
B1:=C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20);
B2:=MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1) AND MA(C,20)>REF(MA
(C,20),1);
B3:=B1 OR B2;
一桶金:FILTER(黄金柱,5)=1 AND B3;

网友(2):

count(黄金,5)=1 and 黄金;

网友(3):

我建议你只用count函数