TYP := (HIGH + LOW + CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N))-50;
MACD:CCI,COLORSTICK;
STICKLINE(MACD<-200 ,-200 ,MACD ,3 ,0 ),COLORRED;
STICKLINE(MACD<10 AND MACD>0 ,0 ,MACD ,4 ,0 ),COLORYELLOW;
TYP := (HIGH + LOW + CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N))-50;
MACD:CCI,COLORSTICK;
STICKLINE(MACD<-200 ,-200 ,MACD ,3 ,0 ),COLORRED;
STICKLINE(MACD<10 AND MACD>0 ,0 ,MACD ,4 ,0 ),COLORYELLOW;