平1指标
2018-05-03 作者:ADMIN 来源:网络整理
自己编的资金,资金流入,股价涨买入股票,资金流出,股价跌卖出
P1:=60;P2:=5;P3:=10;
REFLINE:0;
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:=VOL*K1/(K1+K2);
KT:=VOL-DT;
买量:=SUM(DT,1);
卖量:=SUM(KT,1);
DDX:EMA(买量-卖量,4)*VOL/CAPITAL*100,LINETHICK0;
STICKLINE(DDX>0,0,DDX,9.5,0),COLOR0000CC;
STICKLINE(DDX>0,0,DDX,1,0),COLOR000088;
STICKLINE(DDX>0,0,DDX,1.5,0),COLOR0000AA;
STICKLINE(DDX>0,0,DDX,1,0),COLOR0000EE;
STICKLINE(DDX<0,0,DDX,8,0),COLOR008800;
STICKLINE(DDX<0,0,DDX,8.5,0),COLOR00AA00;
STICKLINE(DDX<0,0,DDX,8.5,0),COLOR00CC00;
STICKLINE(DDX<0,0,DDX,8,0),COLOR00EE00;
STICKLINE(DDX>50000000 AND C>MA(C,12)AND C>MA(C,60),0,DDX,8,0),COLORFF00FF,LINETHICK3;
STICKLINE(DDX<50000000 AND DDX>6200000 AND C>MA(C,12)AND C>MA(C,60)AND C>MA(C,20),0,DDX,9,0),coloryellow,LINETHICK3;
阅读:133 评论:0