N:=23; M:=6;{炒股公式-炒股指标www.gs6699.com}
主力上穿:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),N);
散户选股:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),N);
指标公式:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),N);
ffgg0:=100*(主力上穿*2+指标公式)/(散户选股*2+指标公式),COLOR0000FF,LINETHICK2;
ffgg1:=MA(ffgg0,M),COLOR00FFFF,LINETHICK2;
{DRAWBAND(ffgg0,RGB(255,0,0),ffgg1,RGB(0,0,220));}
W:=CROSS(ffgg0,ffgg1);
eeddd1:=ffgg1<100;
eeddd2:=ffgg1<150 AND ffgg1>REF(ffgg1,1);
eedddT1:=W AND eeddd1;
eedddT2:=W AND eeddd2;
TJ1:=FILTER(eedddT1,5);
TJ2:=FILTER(eedddT2,8);
ccc:IF(TJ1,4,0),COLORFFFF99,LINETHICK2;
DRAWTEXT(TJ1,3,' '),COLOR00FFFF;