D:EXPMA(CLOSE,18);
STICKLINE(C>=D && C>=O,C,O,4,0),COLORRED;
STICKLINE(C>=D&& C>=O,H,L,0,0),COLORRED;
STICKLINE(C>=D && C<O,C,O,4,1),COLORRED;
STICKLINE(C>=D && C<O,O,H,0,0),COLORRED;
STICKLINE(C>=D && C<O,C,L,0,0),COLORRED;
STICKLINE(C<D && C>O,C,O,4,1),COLORBLUE;
STICKLINE(C<D && C<=O,C,O,4,1),COLORBLUE;
STICKLINE(C<D && C<=O,H,L,0,1),COLORBLUE;
STICKLINE(C<D && C>O,C,H,0,1),COLORBLUE;
STICKLINE(C<D && C>O,O,L,0,1),COLORBLUE;