SHORT:=12;LONG:=20;MID:=3;
A:=V/((H+L+C)/3);
B:=((H+L+C)/3)*V;
D:=B/A;
DIF:EMA(D,SHORT)-EMA(D,LONG);
DEA:EMA(DIF,MID);
macd:(DIF-DEA)*2,COLORSTICK;
选股:crOSS(DIF,DEA);
STICKLINE(选股,DIF,0,1,0),COLORRED ;
SHORT:=12;LONG:=20;MID:=3;
A:=V/((H+L+C)/3);
B:=((H+L+C)/3)*V;
D:=B/A;
DIF:EMA(D,SHORT)-EMA(D,LONG);
DEA:EMA(DIF,MID);
macd:(DIF-DEA)*2,COLORSTICK;
选股:crOSS(DIF,DEA);
STICKLINE(选股,DIF,0,1,0),COLORRED ;