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
空方:IF(B<=0,B,0),LINESTICK,LINETHICK2,LINETHICK2,COLOR00FF00;
IF(B<0 AND B>REF(B,1),B,DRAWNULL),LINESTICK,LINETHICK2,COLORFF00FF;
TJ0:=FILTER(CROSS(B,0) AND B>REF(B,1),8);
DRAWICON(TJ0,空方,23);
TJ1:=FILTER(REF(B,2)>REF(B,1) AND B>REF(B,1) AND B<-1,5);
TJ11:=FILTER(COUNT(TJ1,9)>=2,8);
DRAWICON(TJ11,空方,26);
TJ2:=FILTER(REF(B,2)2,5);
DRAWICON(TJ2,多方,19);
通达信多空量副图指标
源码
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
空方:IF(B<=0,B,0),LINESTICK,LINETHICK2,LINETHICK2,COLOR00FF00;
IF(B<0 AND B>REF(B,1),B,DRAWNULL),LINESTICK,LINETHICK2,COLORFF00FF;
TJ0:=FILTER(CROSS(B,0) AND B>REF(B,1),8);
DRAWICON(TJ0,空方,23);
TJ1:=FILTER(REF(B,2)>REF(B,1) AND B>REF(B,1) AND B<-1,5);
TJ11:=FILTER(COUNT(TJ1,9)>=2,8);
DRAWICON(TJ11,空方,26);
TJ2:=FILTER(REF(B,2)2,5);
DRAWICON(TJ2,多方,19);