上市日期年:REF(YEAR,BARSCOUNT(C)-1),linethick0,COLORRED;月:REF(MONTH,BARSCOUNT(C)-1),linethick0,COLORYELLOW;日:REF(DAY,BARSCOUNT(C)-1),linethick0,COLORCYAN;DIFF :=( EMA(CLOSE,12) - EMA(CLOSE,26))*2;DEA := EMA(DIFF,9); := 2*(DIFF-DEA), COLORSTICK;DIFFA := "macd.diff#week";DEAA := "macd.dea#week";FILLRGN(DIFFA>DEAA,DIFFA,DEAA),COLOR3232F0;FILLRGN(DIFFA
REF(DIFF,1),DIFF),linethick2,colorred;PARTLINE(DIFF[REF(DIFF,1)AND REF(DIFF,1)>0,DIFF),linethick2,colorred;PARTLINE(DEA>REF(DEA,1),DEA),coloryel
]