请您把通达信帮合并成一个预警公式

2024-12-15 14:18:06
推荐回答(2个)
回答1:

{公式1}
TJ1:=MACD.DIF>0 AND MACD.DEA>0;
{公式2}
A11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑马线:=EMA(A11,5);A41:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趋势线:=(MA(3*SMA(A41,6,1)-2*SMA(SMA(A41,5,1),5,1),2));
大黑马:=CROSS(趋势线,0) AND 黑马线<40;
DIFF0:=(EMA(DCLOSE,12)-EMA(DCLOSE,26))*100;
DEA0:=EMA(DIFF0,9);MACD0:=2*(DIFF0-DEA0);
小黑马:=(MACD0>REF(MACD0,1)*2.5 AND MACD0>15);
AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0);
AAA3:=SUM(IF( CLOSEAAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0);
B1万元:=DVOL*DCLOSE/100;
净流入万元:=(AAA2-AAA3-0.5*AAA4);
PM:=MA(净流入万元,1);
PMA:=PM/REF(PM,1)>1;
PMB:=REF(PMA,1)<1 AND PMA;
密码:=(EMA(MA(B1万元,2),2))/100000;
二日比:=密码/REF(密码,1);
XG:TJ1 AND (大黑马 OR 小黑马) AND PMB AND 密码>REF(密码,1) AND 二日比>1;

提示:公式中使用了未来函数,会漂移,不宜用来选股,否则,公式在副图发出信号,但在选股时却找不出个股来。

回答2:

AA:=MACD.DIF>0 AND MACD.DEA>0;A11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);黑马线:=EMA(A11,5);A41:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趋势线:=(MA(3*SMA(A41,6,1)-2*SMA(SMA(A41,5,1),5,1),2));大黑马:=CROSS(趋势线,0) AND 黑马线<40;DIFF0:=(EMA(DCLOSE,12)-EMA(DCLOSE,26))*100;DEA0:=EMA(DIFF0,9);MACD0:=2*(DIFF0-DEA0);小黑马:=(MACD0>REF(MACD0,1)*2.5 AND MACD0>15);AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0);AAA3:=SUM(IF( CLOSE1;PMB:=REF(PMA,1)<1 AND PMA; 密码:=(EMA(MA(B1万元,2),2))/100000;二日比:=密码/REF(密码,1);BB:=(大黑马 OR 小黑马) AND PMB AND 密码>REF(密码,1) AND 二日比>1;XG:AA AND BB;

(DCLOSE为未来函数!)