M:=10;
CC:=Abs((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上轨通道1:(1+M/100)*DD, COLORBLUE,LINETHICK2;
下轨通道2:(1-M/100)*DD,COLORGREEN,LINETHICK2;
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,5);
B:=REF(A,1);
持股:STICKLINE(A>B,A,B,4,0),COLOR00FFFF;