input:n(5);k1:=IF(CLOSE>=REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW);k2:=IF(CLOSE<=REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CLOSE);dt:=*K1/(K1+K2);kt:=-DT;买量:sum(dt,n),COLOR0000FF;卖量:-sum(kt,n),COLORFFFF00;FILLRGN(买量,0,1,RGB(0,120,0));FILLRGN(卖量,0,1,RGB(0,80,0));进出量:买量+卖量,POINTDOT,COLOR00FFFF;:100*进出量/CAPITAL,POINTDOT,COLOR00FF33;STICKLINE(进出量>=0,0,进出量,6,1),COLOR0000FF;STICKLINE(进出量<0,0,进出量,6,1),COLORFFFF00;D5:=100*SUM(DT,5)/CAPITAL;K5: