主力潜伏预警
熊五:=MA(CLOSE,5);
牛十:=MA(CLOSE,10);
工作线:=EMA(CLOSE,14);
涨幅%:=(C-REF(C,1))/REF(C,1)*100;
条件6:=熊五<牛十 AND 牛十<工作线;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEAF:=EMA(DIFF,9);
低位金叉:=CROSS(DIFF,DEAF) AND DIFF<-0.1;
A1:=BARSLAST(REF(CROSS(DIFF,DEAF),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEAF) AND 涨幅%>3.6;
潜伏:=低位金叉 AND 底背离;
DIF1:=EMA(C,13)-EMA(C,21);
DEA:=EMA(DIF1,5);
主力潜伏:=REF(DIF1<0 AND DIF1<DEA,1) AND DIF1<0 AND DIF1>DEA AND 潜伏 AND 条件6 AND 涨幅%>3.6;
IF(主力潜伏>0,50,0),COLORRED,LINETHICK2;
DRAWTEXT(主力潜伏>0,48,'主力潜伏'),COLORRED,LINETHICK1;
1532222813.jpg
|