MB1:XMA(CLOSE,3),COLORGREEN;
MB2:EMA(MB1,3),COLORGREEN;
MB3:EMA(MB2,3),COLORGREEN;
MB4:EMA(MB3,3),COLORGREEN;
MB5:EMA(MB4,3),COLORGREEN;
IF(MB1>REF(MB1,1),MB1,DRAWNULL),COLORRED,LINETHICK1;
IF(MB2>REF(MB2,1),MB2,DRAWNULL),COLORRED,LINETHICK1;
IF(MB3>REF(MB3,1),MB3,DRAWNULL),COLORRED,LINETHICK1;
IF(MB4>REF(MB4,1),MB4,DRAWNULL),COLORRED,LINETHICK1;
IF(MB5>REF(MB5,1),MB5,DRAWNULL),COLORRED,LINETHICK1;