F:=100*(C-REF(C,1))/REF(C,1);
ai机构活跃度:=IF(C<REF(O,1) AND F<0,1,0);
指标公式源码:=ai机构活跃度;
gdddd1:=IF(C<REF(O,2) AND F<0,1,0),LINETHICK0;
S2:=gdddd1;{通达信公式-通达信指标www.gs6699.com}
gdddd2:=指标公式源码=0 AND REF(指标公式源码,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1));
gdddd3:=指标公式源码=0 AND REF(指标公式源码,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,5) ,REF(ZIG(3 ,5),1));
gdddd4:=指标公式源码=0 AND REF(指标公式源码,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1));
STICKLINE(gdddd2 AND gdddd3 ,0,3,3,0)COLORGREEN;
STICKLINE(gdddd2 AND gdddd3 ,0,1,3,0)COLORBLUE;
STICKLINE(gdddd2 AND gdddd3 AND gdddd4,0,5,3,0)COLORYELLOW;
STICKLINE(gdddd2 AND gdddd3 AND gdddd4,0,3,3,0)COLORFF00FF;
STICKLINE(gdddd2 AND gdddd3 AND gdddd4,0,1,3,0)COLORBLUE;
DRAWTEXT(gdddd4=1,4.8,''),COLORYELLOW;
gdddd5: ZIG(3,6)>REF(ZIG(3,6),1)AND REF(ZIG(3,6),1)<REF(ZIG
(3,6),2),COLORWHITE,LINETHICK2;
DRAWTEXT(gdddd5=1,0.8,''),COLORWHITE;
gdddd6: ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG
(3,10),2),COLORYELLOW,LINETHICK2;
DRAWTEXT(gdddd6=1,1.3,''),COLORYELLOW;
cccd3:=PEAKBARS(2,15,1)<10;
cccd5:=IF(cccd3=1,2,0);
顶:= IF(cccd5=2,2,0);
大胜且归:IF(顶>REF(顶,1),2,0),COLORRED,LINETHICK2;
DRAWTEXT(大胜且归=2,2,'撤!'),COLORRED;