VAR1:="MACD.DIFF#MIN5";VAR2:="MACD.DEA#MIN5";VAR3:=VAR1<0 AND VAR2<0;VAR4:=VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1);VAR5:=ALL(VAR4,12);XG:VAR3 AND VAR5 AND DYNAINFO(17)>0;
第一行有两个逗号,当然有问题咯。不过后面也有问题,你这个公式是通达信可以用的,大智慧里面会有问题。只能这样改一下:DIFF1:=EMA(CLOSE,16) - EMA(CLOSE,58);DEA1:=EMA(DIFF1,88);MACD1:2*(DIFF1-DEA1)*100 ;mamacd1:ma(macd1,5),colorwhite;DIFF:=EMA(CLOSE,8) - EMA(CLOSE,26);DEA:=EMA(DIFF,50);MACD:2*(DIFF-DEA)*100 ;mamacd:ma(macd,5),colorwhite;xg:macd1>mamacd1 and macd>mamacd and MACD<0;STICKLINE(macd1STICKLINE(macd>mamacd,macd1*0.6,0,4,0),COLORyellow;STICKLINE(macd<0,mamacd,macd1,4,0),COLORgreen;STICKLINE(macd1>mamacd1 and macd>mamacd ,0,macd1,4,0),COLORred;你这样改一下就OK 了,我跟你说一下为什么吧,以后你就可以自己改了,不用花分来问别人了提示是你的第一行出现了错误,因为是“,”明显第一行出现了2个,你删一个就行了。公式应该是这样的DIFF1:=EMA(CLOSE,16) - EMA(CLOSE,58),colorwhite;DEA1:=EMA(DIFF1,88),coloryellow;MACD1:2*(DIFF1-DEA1)*100 ;mamacd1:ma(macd1,5),colorwhite;DIFF:=EMA(CLOSE,8) - EMA(CLOSE,26),colorwhite;DEA:=EMA(DIFF,50),coloryellow;MACD:2*(DIFF-DEA)*100 ;mamacd:ma(macd,5),colorwhite;xg:macd1>mamacd1 and macd>mamacd and MACD<0;STICKLINE(macd1STICKLINE(macd>mamacd,macd1*0.6,0,4,0),COLORyellow;STICKLINE(macd<0,mamacd,macd1,4,0),COLORgreen;STICKLINE(macd1>mamacd1 and macd>mamacd ,0,macd1,4,0),COLORred;第一行有两个逗号,当然有问题咯。不过后面也有问题,你这个公式是通达信可以用的,大智慧里面会有问题。只能这样改一下:diff1:=ema(close,16) - ema(close,58);dea1:=ema(diff1,88);macd1:2*(diff1-dea1)*100 ;mamacd1:ma(macd1,5),colorwhite;diff:=ema(close,8) - ema(close,26);dea:=ema(diff,50);macd:2*(diff-dea)*100 ;mamacd:ma(macd,5),colorwhite;xg:macd1>mamacd1 and macd>mamacd and macd<0;stickline(macd1<mamacd1,0,macd1,4,0),colorgreen;stickline(macd>mamacd,macd1*0.6,0,4,0),coloryellow;stickline(macd<0,mamacd,macd1,4,0),colorgreen;stickline(macd1>mamacd1 and macd>mamacd ,0,macd1,4,0),colorred;