{短线趋势主图A}
M3:=60;
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210,COLORRED;
HHJSJDC:MA(HHJSJDB,5),COLORGREEN;
BU:=CROSS(HIGH,SAR(3,1,20 ));
SEL:=CROSS(SAR(3,1,20 ),LOW);
DRAWTEXT(BU,LOW,'▲买点'),COLORYELLOW,LINETHICK2;
DRAWTEXT(SEL,1.01*HIGH,'▼压力'),COLORGREEN,LINETHICK2;
DRAWBAND(MA(CLOSE,3),RGB(155,50,50),MA(CLOSE,5),RGB(83,123,68));
DRAWKLINE(H,O,L,C);MA1:MA(C,3),COLORLIGRAY;
MA2:MA(C,5),COLORLIGRAY;
MA3:MA(CLOSE,M3);