请老师帮忙把“波段之星”做个预警! 预警要求如下: 1、AK/AD1/AJ要求都上涨 先谢了,老师!! 源码如下: VAR2:=(HIGH+LOW+CLOSE*2)/4; VAR3:=EMA(VAR2,21); VAR4:=STD(VAR2,21); VAR5:=((VAR2-VAR3)/VAR4*100+200)/4; VAR6:=(EMA(VAR5,5)-25)*1.56; AK: EMA(VAR6,2)*1.22; AD1: EMA(AK,2); AJ: 3*AK-2*AD1; AA:100; BB:0; CC:80; 买进: IF(CROSS(AK,AD1),58,20); 卖出: IF(CROSS(AD1,AK),58,20);
爱约股解答:
VAR2:=(HIGH+LOW+CLOSE*2)/4;
VAR3:=EMA(VAR2,21);
VAR4:=STD(VAR2,21);
VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;
VAR6:=(EMA(VAR5,5)-25)*1.56;
AK:=EMA(VAR6,2)*1.22;
AD1:=EMA(AK,2);
AJ:=3*AK-2*AD1;
CROSS(AK,AD1)AND AK>REF(AK,1) AND AD1>REF(AD1,1)AND AJ>REF(AJ,1);