:DMA(((2*C+H+L)/4+(2*H+L+C)/4+(2*L+C+H)/4)/3*90,HSL/90)/90,NODRAW;M1:=C/L>1.035;M2:=BARSSINCEN(M1,30);A1:=(MA(C,2)/REF(主力成本,M2)-1)*100;K:SMA(A1,3,1),COLORWHITE;D:SMA(K,3,1),COLORYELLOW;J:K*3-D*2,COLORMAGENTA;DRAWTEXT(OSS(K,0),K,'主力成本,'),COLORMAGENTA;DRAWTEXT(K<-5 AND K=LLV(K,20),K,'分批'),COLORMAGENTA;DRAWTEXT(K>0 AND K<15 AND CROSS(K,D),K,'加油'),COLORMAGENTA;