通达信资金线副图 源码
资金线 源码
K1:=IF(CLOSE>=REF(CLOSE,3),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,3),HIGH-OPEN+CLOSE-LOW);
K2:=IF(CLOSE<=REF(CLOSE,3),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,3)-CLOSE,OPEN-LOW+HIGH-CLOSE);
DT:=VOL*K1/(K1+K2);
KT:=VOL-DT;
买量:=SUM(DT,11);
卖量:=SUM(KT,11);
增仓:=EMA(买量-卖量,5)*VOL/CAPITAL*1000,COLORSTICK,LINETHICK2;
AAA1:-20 COLORWHITE;
日增减:=增仓,COLORCYAN;
五日:SUM(日增减,10),COLORRED;
十日:SUM(日增减,14),COLORYELLOW;
月:SUM(日增减,18),COLORMAGENTA;
|