DIF:=(EMA(CLOSE,6/2)-0.7*EMA(CLOSE,6)-0.3*EMA(CLOSE,12))*100;
DEA:=EMA(DIF,5),COLOR1E67FF,LINETHICK2;
macd:=(DIF-DEA)*2,COLORSTICK;
A:=MacD;
kdIF:=3*(DIF-DEA);
KDEA:=SMA(KDIF,4,2);
量价时空:=2*(KDIF-KDEA),COLOR15FFFF;
STICKLINE(A>REF(A,1) AND A>=0,0,A,1.4,0),COLOR000088;
STICKLINE(A>REF(A,1) AND A>=0,0,A,1,0),COLOR0000AA;
STICKLINE(A>REF(A,1) AND A>=0,0,A,0.6,0),COLOR0000CC;
STICKLINE(A>REF(A,1) AND A>=0,0,A,0.15,0),COLOR0000EE;
STICKLINE(A>REF(A,1) AND A<0,0,A,1.4,0),COLOR0099FF;
STICKLINE(A>REF(A,1) AND A<0,0,A,1,0),COLOR00BBFF;
STICKLINE(A>REF(A,1) AND A<0,0,A,0.6,0),COLOR00ddfF;
STICKLINE(A>REF(A,1) AND A<0,0,A,0.15,0),COLOR00FFFF;
{ _通达信股票指标公式}
STICKLINE(A
STICKLINE(A
STICKLINE(A
STICKLINE(A
STICKLINE(A<=REF(A,1) AND A>=0,0,A,1.4,0),COLORFF0099;
STICKLINE(A<=REF(A,1) AND A>=0,0,A,1,0),COLORFF00BB;
STICKLINE(A<=REF(A,1) AND A>=0,0,A,0.6,0),COLORFF00DD;
STICKLINE(A<=REF(A,1) AND A>=0,0,A,0.15,0),COLORFF00FF;
九:SMA(A,3,1),COLOR0044FF,LINETHICK1;
散:SMA(九,3,1),COLOR00AAFF,LINETHICK1;
人:2*九-2*散,COLORRED,LINETHICK1;
平衡线:0,COLORBLUE,LINETHICK0;