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;
开始流入:=主力资金>0;
流入:=BARSLASTCOUNT(开始流入)=1;
XG:流入 AND 看多;