请高手将以下通达信源码改为带有“买”字的选股公式?

2024-12-03 05:11:42
推荐回答(1个)
回答1:

M1:=5;M2:=10;M3:=20;M4:=60;N1:=7;N2:=6;
MA3:=MA(CLOSE,M3);
MA4:=MA(CLOSE,M4);
VAR1:=EMA((C-(LLV(L,25)))/((HHV(H,25))-(LLV(L,25)))*100,5);
VAR2:=VAR1;
VAR3:=MA((V-REF(V,1))/REF(V,1),5);
VAR4:=(C-MA(C,24))/MA(C,24)*100;
VAR5:=VAR4*(1+VAR3);
VAR6:=REF(VOL,1);
VAR7:=SMA(MAX(VOL-VAR6,0),6,1)/SMA(ABS(VOL-VAR6),6,1)*100;
VAR8:=VAR5>REF(VAR5,1) AND VAR2REF(VAR7,1);
VAR9:=VAR5REF(VAR2,1) AND VAR7>REF(VAR7,1);
VAR10:=VAR5>REF(VAR5,1) AND VAR2VAR11:=VAR5REF(VAR2,1) AND VAR7VAR12:=VAR5>REF(VAR5,1);
VAR13:=VAR5VAR14:=VAR2VAR15:=VAR2>REF(VAR2,1);
VAR16:=VAR8 OR VAR10;
VAR17:=VAR9 OR VAR11;
VAR18:=VAR13 AND VAR14;
VAR19:=VAR16 OR VAR18;
VAR20:=VAR12 AND VAR15;
VAR22:LAST(VAR19,N1,1) AND VAR20;
{参数已经加进公式中,不用另设,直接复制到条件选股即可使用}