量买:周量>=REF(周量,1) AND CROSS(快线,慢线) AND 周线<50 AND 快线<60,LINETHICK0;
价买:周线>=REF(周线,1) AND CROSS(快线,慢线) AND 周线<50 AND 快线<50,LINETHICK0;
ST:=STRFIND(STKNAME,'ST',1)>0;
S:=STRFIND(STKNAME,'S',1)>0;
停牌:=DYNAINFO(4)=0;
非ST:=NOT(ST) AND NOT(停牌) AND NOT(S) AND REF(CLOSE,100)>0;
红点选股:CROSS(快线2,慢线2) AND CROSS(量快2,量慢2) AND 非ST,LINETHICK0;
持仓区选股:月RS>月SI OR 周RS>周SI AND 非ST,LINETHICK0;
超级选股:红点选股 AND 持仓区选股 AND 非ST,LINETHICK0;
参考选股1:非ST AND 快线2>慢线2 AND 量快2>量慢2 AND 持仓区选股 AND (REF(快线2,1)
A:=ABS(快线-量快);
参考选股2:非ST AND 持仓区选股 AND CROSS(快线,慢线) AND 快线<50 AND 周线>REF(周线,1) AND 周量>REF(周量,1) AND (CLOSE-LLV(CLOSE,10))/LLV(CLOSE,10)*100<20 AND (HHV(CLOSE,20)-CLOSE)/CLOSE>0.1 AND A<20,LINETHICK0;
VERTLINE(参考选股2),LINEDOT,LINETHICK1,colorFF;
VERTLINE(参考选股1),LINEDOT,LINETHICK1,colorFFFF;
VERTLINE(超级选股),LINETHICK2,colorFF00AB;
周持仓区选股:周RS>周SI,LINETHICK0;
周持仓新:周RS>周SI AND REF(周RS>周SI,1)<1,LINETHICK0;
月持仓区选股:月RS>月SI AND 非ST,LINETHICK0;
A1:=CROSS(快线,慢线);
A3:=BARSLAST(REF(CROSS(快线,慢线),1));
C3:=REF(CLOSE,A3);
LX:=REF(快线,A3);
价背选股:A1 AND 快线>LX AND CLOSEREF(量慢,C3),LINETHICK0;
DRAWTEXT(价背选股,快线+快线*0.1,'←价背'),colorFF;
A21:=CROSS(量快,量慢);
A23:=BARSLAST(REF(CROSS(量快,量慢),1));
C23:=REF(CLOSE,A23);
LX:=REF(量快,A23);
量背选股:COUNT(A21 AND 量快>LX AND CLOSE0 AND CROSS(快线,慢线) AND 量慢>REF(量慢,1),LINETHICK0;
DRAWTEXT(量背选股,量快,'←量背'),colorFF;
顶背离:=FILTER(COUNT(REF(慢线,1)>REF(慢线,2),3)>=2 AND 慢线>REF(慢线,1) AND COUNT(REF(量慢,1)>REF(量慢,2),3)>=2 AND 量慢
飞狐一图走天下副图指标
源码