VAR1:=(CLOSE*2+HIGH+LOW)/4;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR3:=EMA(VAR2,5);
VAR4:=0,COLORWHITE,POINTDOT;
主多:=2*(VAR2-VAR3)*3.8,LINETHICK1,COLORRED;
主空:=(-2)*(VAR2-VAR3)*3.8,LINETHICK1,COLORGREEN;
波线:=SMA(主多,50,5),LINETHICK2,COLORFFFF00;
主力资金线:MA(C,1)/MA(REF(C,18),18)*100,LINETHICK2,COLOR00FFFF;
资金生命线:MA(FORCAST(主力资金线,20),6),COLORMAGENTA,LINETHICK2;
VAR5:=(C-MA(C,4))/MA(C,4)*100;
macd:=EMA(EMA(VAR5,7),7)*8,NODRAW;
操盘:(MACD>=0 AND MACD>=REF(MACD,1)),NODRAW COLORRED;
STICKLINE(操盘,主力资金线,资金生命线,2,0),COLORRED;
DRAWICON(crOSS(主力资金线,资金生命线),资金生命线*1.002,26);