编写要求:
连续3天价涨量增,要求三天中第一天成交量大于前三天中的最高量,满足以上条件成交量指标中此三天变黄色。
www.gszx.com.cn网解答:
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,5);
MAVOL2:MA(VOLUME,10);
JZLZ:=EVERY(C>REF(C,1) AND V>REF(V,1),3);
TJ:JZLZ AND REF(V,2)>REF(HHV(V,3),3);
V3:=BACKSET(TJ,3);
价涨量增:IF((V3 AND COUNT(V3,3)=1),V,0),COLORYELLOW,LINETHICK1;
T:=BARSLAST(价涨量增);
STICKLINE(T<=2,0,V,3,0),COLORYELLOW;