N:=65;
C1:10*CLOSE/ema(C,N),LINETHICK;
O1:=10*OPEN/ema(O,N);
H1:=10*HIGH/ema(H,N);
L1:=10*LOW/ema(L,N);
LL:=IF(L1<C1 AND L1<O1,L1,MIN(C1,O1));
HH:=IF(H1>C1 AND H1>O1,H1,MAX(C1,O1));
{ _最新股票指标公式}
STICKLINE(C1>=O1,HH,C1,0,0),COLORRED;
STICKLINE(C1>=O1,C1,O1,2.5,1),COLORRED;
STICKLINE(C1>=O1,LL,O1,0,0),COLORRED;
STICKLINE(C1<O1,HH,O1,0,0),COLORCYAN;
STICKLINE(C1<O1,C1,O1,2.5,1),COLORCYAN;
STICKLINE(C1<O1,LL,C1,0,0),COLORCYAN;
Ma7:EMA(C1,7),COLORWHITE;
MA21:EMA(C1,21),COLORYELLOW;
MA12:EMA(C1,12),COLORMAGENTA;
MA52:EMA(C1,52),COLORRED;
因子:=Abs((2*C1+(H1)+L1)/4-MA(C1,20))/MA(C1,20);
系数:=DMA(C1,因子);
上:(1+7/100)*系数,COLORBLUE;
下:(1-7/100)*系数,COLORGRAY;
中:(上+下)/2,LINEDASHDOT,COLORWHITE;