MA1:(MA(CLOSE,28)+MA(CLOSE,22)+MA(CLOSE,20)+MA(CLOSE,30))/4,colormagenta;
IF(MA1<REF(MA1,1),MA1,DRAWNULL),colormagenta;
MA2:=MA((CLOSE+HIGH+LOW)/3,4);
MA3:IF(MA2>=MA1,MA2,MA1),colorgreen;
{MA60:MA(C,60),DOTLINE,colorlimagenta;}
{MA156:MA(C,156),colorlimagenta,LINETHICK2;}
{STICKLINE(MA1>=REF(MA1,1) AND MA2>=REF(MA2,1),C,O,3,1) ,colorred;
STICKLINE(MA1>=REF(MA1,1) AND MA2>=REF(MA2,1),H,MAX(C,O),0,0) ,colorred;
STICKLINE(MA1>=REF(MA1,1) AND MA2>=REF(MA2,1),L,MIN(C,O),0,0) ,colorred;}
STICKLINE(CROSS (MA1,REF(MA1,1))AND MA2>=REF(MA2,1) ,C,O,3,0) ,colorred;
STICKLINE(CROSS (MA1,REF(MA1,1)) AND MA2>=REF(MA2,1),H,MAX(C,O),0,0) ,colorred;
STICKLINE(CROSS (MA1,REF(MA1,1)) AND MA2>=REF(MA2,1),L,MIN(C,O),0,0) ,colorred;
STICKLINE(MA1>=REF(MA1,1) AND MA2<REF(MA2,1),C,O,3,1) ,coloryellow;
STICKLINE(MA1>=REF(MA1,1) AND MA2<REF(MA2,1),H,MAX(C,O),0,0) ,coloryellow;
STICKLINE(MA1>=REF(MA1,1) AND MA2<REF(MA2,1),L,MIN(C,O),0,0) ,coloryellow;
STICKLINE(CROSS (REF(MA1,1),MA1) AND MA2<REF(MA2,1),C,O,3,0) ,colormagenta;
STICKLINE(CROSS (REF(MA1,1),MA1) AND MA2<REF(MA2,1),H,MAX(C,O),0,0) ,colormagenta;
STICKLINE(CROSS (REF(MA1,1),MA1) AND MA2<REF(MA2,1),L,MIN(C,O),0,0) ,colormagenta;
STICKLINE(MA1<REF(MA1,1) AND MA2<REF(MA2,1),C,O,3,1) ,colorwhite;
STICKLINE(MA1<REF(MA1,1) AND MA2<REF(MA2,1),H,MAX(C,O),0,0) ,colorwhite;
STICKLINE(MA1<REF(MA1,1) AND MA2<REF(MA2,1),L,MIN(C,O),0,0) ,colorwhite;
STICKLINE(MA1<REF(MA1,1) AND MA2>=REF(MA2,1),C,O,3,1) ,colorgreen;
STICKLINE(MA1<REF(MA1,1) AND MA2>=REF(MA2,1),H,MAX(C,O),0,0) ,colorgreen;
STICKLINE(MA1<REF(MA1,1) AND MA2>=REF(MA2,1),L,MIN(C,O),0,0) ,colorgreen;
STICKLINE(CROSS (REF(MA1,1),MA1) ,C,O,3,0) ,colormagenta;
STICKLINE(CROSS (REF(MA1,1),MA1) AND MA2<REF(MA2,1),H,MAX(C,O),0,0) ,colormagenta;
STICKLINE(CROSS (REF(MA1,1),MA1) AND MA2<REF(MA2,1),L,MIN(C,O),0,0) ,colormagenta;