0,COLORRED;DIFF1:((EMA(CLOSE,12) - EMA(CLOSE,26)))/EMA(C,26)*100,COLORWHITE,LINETHICK2;DEA:EMA(DIFF1,9),COLORYELLOW;:2*(DIFF1-DEA), COLORSTICK;STICKLINE(((MACD>REF(MACD,1)) AND (MACD>0)),0,MACD,1,0),COLORMAGENTA,LINETHICK4;STICKLINE(((MACD
[0);X_3:=LLVBARS(MACD,X_2+20);X_4:=IF(X_3>X_2,REF(MACD,X_3),0);X_5:=MACD<0>X_4 AND LOW=LLV(LOW,X_2+20) AND X_4<0 X_6:=REF(X_5,1)
]