通达信主力资金主图指标 源码 贴图
ABC1:=CLOSE-REF(CLOSE,1);
ABC2:=OPEN-REF(OPEN,1);
ABC3:=HIGH-REF(HIGH,1);
ABC4:=LOW-REF(LOW,1);
ABC5:=(ABC1+ABC2+ABC3+ABC4)/4;
N1:=20;
N2:=60;
EMA1:=EMA(C,N1);
EMA2:=EMA(EMA(C,N1),N1);
DEMA1:2*EMA1-EMA2,LINETHICK2,COLORGREEN;
看多:IF(DEMA1>REF(DEMA1,1),DEMA1,DRAWNULL),LINETHICK2,COLORRED;
主力资金:=ABC5*VOL/10000,NODRAW;
开始流入:=主力资金>0;
流入:=BARSLASTCOUNT(开始流入)=1;
DRAWICON(流入 AND 看多,L,1);
STICKLINE(流入 AND 看多,O,C,2.2,0),COLORYELLOW;
看空:IF(DEMA1<=REF(DEMA1,1),DEMA1,DRAWNULL),LINETHICK2,COLORGREEN;
EMA3:=EMA(C,N2);{公式网WWW.GPXIAZAI.COM}
EMA4:=EMA(EMA(C,N2),N2);
DEMA2:2*EMA3-EMA4,LINETHICK2,COLORBLUE;
做多:IF(DEMA2>REF(DEMA2,1),DEMA2,DRAWNULL),LINETHICK2,COLORMAGENTA;
做空:IF(DEMA2<=REF(DEMA2,1),DEMA2,DRAWNULL),LINETHICK2,COLORBLUE;
|