AB:=EMA(((2*C+H+L)/4-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8);BA:=EMA(AB,5);A1:=REFDATE(REF(HHV(H,96),5),DATE);B1:=REFDATE(REF(LLV(L,96),5),DATE);D:=((A1)+(B1))/2;先锋:MA(C,5),LINETHICK2,COLOR00FFFF;平均:EMA(C,20),colormagenta;空仓:IF(AB-BA<0,先锋,DRAWNULL),LINETHICK2,COLOR00FFFF;持仓:IF(AB-BA>0,先锋,DRAWNULL),,LINETHICK2,colorred;趋势:IF(AB>0 AND AB-BA<=0,D,D),LINETHICK3,COLOR00FF00;AC:IF(AB>0 AND AB-BA>0,D,DRAWNULL),LINETHICK3,colorred;