N1:=20;N2:=20;
JX:(MA(C,10)*30+MA(C,30)*10+MA(C,60)*5+MA(C,120)*3)/(3+5+10+30);
JXMA:MA(JX,10);
STICKLINE(JX>JXMA,JX,JXMA,2,0),COLORRED;
STICKLINE(JX<=JXMA,JX,JXMA,2,0),COLORGREEN;
DRAWICON(crOSS(JX,JXMA),JX-0.2,1);
DRAWICON(CROSS(JXMA,JX),JXMA+0.2,2);
{- }
HHV(HIGH,N1);
LLV(LOW,N2);
DRAWICON(CLOSE>REF(HHV(HIGH,N1),1),HHV(HIGH,N1),5);
DRAWICON(CLOSE<REF(LLV(LOW,N2),1),LLV(LOW,N2),1),COLORYELLOW;