sd1:=(c/ma((2*c+h+l)/4,10)-1)*100;
上涨线:sma(sd1,3,1),COLORRED,LINETHICK2;
平衡线:MA(上涨线,5),COLORGREEN,LINETHICK1;
0;
STICKLINE(上涨线>0 and 上涨线>平衡线,平衡线,0,2,0),Color6d0076;
STICKLINE(上涨线>0 and 上涨线<=平衡线,上涨线,0,2,0),Color6d0076;
STICKLINE(上涨线<=0 and 上涨线>平衡线,上涨线,0,2,0),ColorFFD1BE;
STICKLINE(上涨线<=0 and 上涨线<=平衡线,平衡线,0,2,0),ColorFFD1BE;
STICKLINE(上涨线>平衡线 and 上涨线>0,上涨线,平衡线,2,0),COLORRED;
STICKLINE(上涨线>平衡线 and 上涨线<=0,上涨线,平衡线,2,0),COLORYELLOW;
STICKLINE(上涨线<=平衡线 and 上涨线>0,上涨线,平衡线,2,0),COLORBLUE;
STICKLINE(上涨线<=平衡线 and 上涨线<=0,上涨线,平衡线,2,0),COLORBLACK;
强势区:PARTLINE(上涨线>0,0),COLORRED,LINETHICK2;
弱势区:PARTLINE(上涨线<=0,0),COLORCYAN,LINETHICK2;