ma30:ma(c,30),color00ffff,linethick3;
ma60:ma(c,60),color00ff00,linethick3;
n:=30;
aa:=ma(c,n);
STICKLINE(aa>=ref(aa,1),aa,ref(aa,1),1,0),LINETHICK2,COLORyellow,circledot;
STICKLINE(aa<ref(aa,1),aa,ref(aa,1),1,0),LINETHICK2,COLORff9900,circledot;
STICKLINE(C>aa,L,H,0.1,1),COLORRED;
STICKLINE(C>aa,C,O,4,1),COLORRED;
STICKLINE(C>aa,C,O,4,1),COLORRED;
STICKLINE(C<aa,C,O,4,1),COLORFFFF00;
STICKLINE(C<aa,C,O,4,1),COLOR00FF00;
STICKLINE(C<aa,L,H,0.1,1),COLOR00FF00;
ma3:ma(c,3);