请真正的高手把这个通达信附图改成选股公式。{出现红柱}就预警的选股公式

2024-11-29 07:41:45
推荐回答(2个)
回答1:

我的通达信版本不能通过,出现错误句 :
AD1:=FORCAST(WMA(BBI,3),3)
详细信息 : 您在括号前写的不是函数、公式等,
我把WMA()改为EMA()原均线含义差不多。
==================================
{0回归预测}
BBI:=(HHV(C,3)+LLV(C,3)+HHV(H,3)+LLV(L,3))/4;
AD1:=FORCAST(EMA(BBI,3),3);
AD2:=FORCAST(EMA(BBI,5),3);
AD3:=FORCAST(EMA(BBI,8),3);
AD4:=FORCAST(EMA(BBI,11),3);
AC5:=FORCAST(EMA(BBI,13),3);
AC6:=FORCAST(EMA(BBI,15),3);
AC7:=FORCAST(EMA(BBI,18),3);
AC8:=FORCAST(EMA(BBI,21),3);
ADC:=((AD1+AD2+AD3+AD4)-(AC5+AC6+AC7+AC8))*10;
B实:=EMA(ADC,3),COLOR00FF00,LINETHICK1;
BB:=B实>=REF(B实,1);
XG:REF(B实,1)<=REF(B实,2) AND BB;

回答2:

BBI:=(HHV(C,3)+LLV(C,3)+HHV(H,3)+LLV(L,3))/4;
AD1:=FORCAST(WMA(BBI,3),3);
AD2:=FORCAST(WMA(BBI,5),3);
AD3:=FORCAST(WMA(BBI,8),3);
AD4:=FORCAST(WMA(BBI,11),3);
AC5:=FORCAST(WMA(BBI,13),3);
AC6:=FORCAST(WMA(BBI,15),3);
AC7:=FORCAST(WMA(BBI,18),3);
AC8:=FORCAST(WMA(BBI,21),3);
ADC:=((AD1+AD2+AD3+AD4)-(AC5+AC6+AC7+AC8))*10;
B实:=WMA(ADC,3);
CROSS(B实,REF(B实,1));