周期共振源码:
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORWHITE;
DEA:EMA(DIF,9),COLORYELLOW;
NOTEXT1:2*(DIF-DEA),COLORSTICK;
NOTEXT2:2*(DIF-DEA);
NOTEXT3:STICKLINE(CROSS(DIF,DEA),0,ABS(DIF),6,0),COLORYELLOW;
NOTEXT4:MACD.DIF#WEEK,COLORWHITE;
NOTEXT5:MACD.DEA#WEEK,COLORYELLOW;
NOTEXT6:MACD.MACD#WEEK,COLORSTICK;
NOTEXT7:IF(CROSS(NOTEXT4,NOTEXT5),ABS(DIF*1.5),0),COLORRED;
NOTEXT8:MACD.DIF#MONTH,DOTLINE,COLORGREEN;
NOTEXT9:MACD.DEA#MONTH,DOTLINE,COLORMAGENTA;
NOTEXT0:IF(CROSS(NOTEXT8,NOTEXT9),ABS(DIF*2),0),COLORRED;