长线资金:=SUM(IF(CLOSE>REF(CLOSE,1),AMOUNT,IF(CLOSE<REF(CLOSE,1),-AMOUNT,0)),100);
短线资金:=SUM(IF(CLOSE>REF(CLOSE,1),AMOUNT,IF(CLOSE<REF(CLOSE,1),-AMOUNT,0)),30);
STICKLINE(短线资金>0,短线资金,0,5,1),COLORRED;
STICKLINE(短线资金<0,短线资金,0,5,1),COLORFF0000;
资金20:MA(长线资金,20),COLOR00FF00;
资金60:MA(长线资金,60),COLOR00FFFF;
资金100:MA(长线资金,100),COLOR0000FF;