文华指标—AC加速指标是从动量震荡指标(AO)与其5日移动平均线值之间差值的动平均值得来的,它通过投资者买卖的情况,预判未来价格的方向,趋势反转。
下方分享的AC加速指标源码为副图技术分析指标源码,适用于文华6、7、8等软件,是根据常见的方式改写。仅作为策略思路拓展,不建议直接用于期货等投资实盘中(投资有风险,入市须谨慎)。交易员可以根据艾云策略所提供的指标源码,结合平时的交易经验进行改编,形成自己的交易策略。
搭配艾云策略—白金版的效果图:
源码
Y:=(HIGH+LOW)/2;
AO : =MA(Y ,5 )-MA(Y ,34 );
AC:=AO-MA( AO,5);
AC1:=REF(AC,1);
STICKLINE(AC>AC1,0,AC,COLORRED,0);
STICKLINE(AC<AC1,0,AC,COLORYELLOW,0);
BUY1:=REF(AC,3)<REF(AC1,3) AND REF(AC,2)<REF(AC1,2) AND REF(AC,2)<REF(AC,3) AND REF(AC,1)>REF(AC1,1) AND AC>AC1 AND COUNT(AC>0,4)=4;
DRAWTEXT(BUY1,AC, ‘B’),COLORWHITE;
BUY2:=COUNT(AC<0,4)=4 AND REF(AC,3)<REF(AC1,3) AND COUNT(AC>AC1,3)=3;
DRAWTEXT(BUY2,AC, ‘B’),COLORWHITE;
BUY3:=REF(AC,3)<REF(AC1,3) AND REF(AC,2)<REF(AC1,2) AND REF(AC,2)<REF(AC,3) AND COUNT(AC>AC1,2)=2 AND REF(AC,1)<0 AND AC>0;
DRAWTEXT(BUY3,AC, ‘B’),COLORWHITE;BUY4:=REF(AC,4)<REF(AC1,4) AND REF(AC,3)<REF(AC1,3) AND REF(AC,3)<REF(AC,4) AND COUNT(AC>AC1,3)=3 AND REF(AC,1)<0 AND AC>0;
DRAWTEXT(BUY4,AC, ‘B’),COLORWHITE;
S1:=REF(AC,3)>REF(AC1,3) AND REF(AC,2)>REF(AC1,2) AND REF(AC,2)>REF(AC,3) AND REF(AC,1)<REF(AC1,1) AND AC<AC1 AND COUNT(AC<0,4)=4;
S2:=COUNT(AC>0,4)=4 AND REF(AC,3)>REF(AC1,3) AND COUNT(AC<AC1,3)=3;
DRAWTEXT(S2,AC, ‘S’),COLORWHITE;
S3:=REF(AC,3)>REF(AC1,3) AND REF(AC,2)>REF(AC1,2) AND REF(AC,2)>REF(AC,3) AND COUNT(AC<AC1,2)=2 AND REF(AC,1)>0 AND AC<0;
S4:=REF(AC,4)>REF(AC1,4) AND REF(AC,3)>REF(AC1,3) AND REF(AC,3)>REF(AC,4) AND COUNT(AC<AC1,3)=3 AND REF(AC,1)>0 AND AC<0;
DRAWTEXT(S4,AC, ‘S’),COLORWHITE;