DIFF :=(EMA(CLOSE,12)-EMA(CLOSE,26))*100/EMA(CLOSE,26),COLORRED;
DEA :=EMA(DIFF,9),COLORRED,LINETHICK2;
DIF:=IF(DIFF
ADEA:=IF(DEA
macd:=2*(DIFF-DEA), COLORSTICK,LINETHICK2;
{ _通达信股票指标公式}
RSV:=(CLOSE-LLV(LOW,16))/(HHV(HIGH,16)-LLV(LOW,16))*100;
K:=SMA(RSV,9,1) ;
D:=SMA(K,3,1) ;
J:3*K-2*D,COLORYELLOW;
RSV2:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*110;
短K2:=SMA(RSV2,3,1);
短D2:=SMA(短K2,2,1),COLORWHITE;
短J2:3*短K2-2*短D2,COLORWHITE;
反弹:=(短J2<18 AND ADEA<4)*80,COLORFF33FF;
抢反弹:(crOSS(短J2,反弹))*80,COLORFF33FF,LINETHICK2;
参考MacD卖:(CROSS(102,短J2))*50,COLORFFFF00;
20,POINTDOT,COLORGREEN;
50,POINTDOT,COLORWHITE;
90,POINTDOT,COLORRED;