趋势线:EXPMA(C,120),COLORYELLOW,LINETHICK2;
HH:=HHV(HIGH,5);
LL:=LLV(LOW,5);
HH1:=BARSLAST((HH REF(HH,1)));
LL1:=BARSLAST((LL REF(LL,1)));
STICKLINE((HH1 LL1),CLOSE,OPEN,2,0),COLORRED;
STICKLINE((HH1 LL1),HIGH,LOW,0,0),COLORRED;
STICKLINE((HH1 LL1),CLOSE,OPEN,2,0),COLORFF0000;
STICKLINE((HH1 LL1),HIGH,LOW,0,0),COLORFF0000;
DRAWICON(CROSS(HH1,LL1),HH,2);
DRAWICON(CROSS(LL1,HH1),LL,1);
DRAWTEXT(FILTER(((HH1 REF(HH1,1)) AND (HH1 LL1)),90),LOW,'♂加'),COLORYELLOW;
DRAWTEXT(FILTER(((LL1 REF(LL1,1)) AND (HH1 LL1)),90),HIGH,'♀减'),COLORGREEN;
N:=20;
BOLL:MA(CLOSE,N),NODRAW;
UPPER:BOLL+2*STD(CLOSE,N),COLORWHITE,LINETHICK1;
LOWER:BOLL-2*STD(CLOSE,N),COLORWHITE,LINETHICK1;