VAR1:=IF(CLOSE>=REF(CLOSE,1),VOL/CAPITAL,0); VAR2:=IF(CLOSE<=ref(close,1),vol var3:="SUM(VAR1,10);" var4:="SUM(VAR2,10);" var5:="IF(CLOSE">=MA(CLOSE,5),VOL/CAPITAL,0); VAR6:=IF(CLOSE<=ma(close,5),vol var7:="SUM(VAR5,10);" var8:="SUM(VAR6,10);" var9:="IF(MA(CLOSE,5)">=REF(MA(CLOSE,5),1),VOL/CAPITAL,0); VARA:=IF(MA(CLOSE,5)<=ref(ma(close,5),1),vol varb:="SUM(VAR9,10);" varc:="SUM(VARA,10);" vard:="IF(EMA(CLOSE,10)">=REF(EMA(CLOSE,10),1),VOL/CAPITAL,0); VARE:=IF(EMA(CLOSE,10)<=REF(EMA(CLOSE,10),1),VOL/CAPITAL,0); VARF:=SUM(VARD,10); VAR10:=SUM(VARE,10); 做多资金:VAR3+VAR7+VARB+VARF,COLORRED;
做空资金:VAR4+VAR8+VARC+VAR10,COLORCYAN;
做多平滑:ema(做多资金,3),COLORWHITE,LINETHICK1;