以下是通达信五里头量能多空副图指标
通达信五里头量能多空副图指标
源码
MAV:=AMOUNT/1000000;
SK := EMA(MAV,13) - EMA(MAV,34);
SD := EMA(SK,3);
B:=(SK-SD);
多方:IF(B>=0,B,0),LINESTICK,LINETHICK2,COLOR0000FF;
IF(B>=0 AND B<REF(B,1),B,DRAWNULL),LINESTICK,LINETHICK2,COLORFFFF00;
空方:IF(B<=0,B,0),LINESTICK,LINETHICK2,LINETHICK2,COLOR00FF00;
IF(B<0 AND B>REF(B,1),B,DRAWNULL),LINESTICK,LINETHICK2,COLORFF00FF;
DRAWICON(CROSS(B,0) AND B>REF(B,1),空方,15);
DRAWICON(REF(B,2)>REF(B,1) AND B>REF(B,1),空方,15);
DRAWICON(REF(B,2)<REF(B,1) AND B<REF(B,1),多方,19); ;