牛熊趋势转换 抄底逃顶波段【指标公式】(含选股)
第一部分 副图公式 手机/电脑
牛:5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLORYELLOW;
熊:EMA(MA(牛,5),3),LINETHICK0,COLORBLUE;
STICKLINE(牛>=熊,牛,熊,5,0),COLORRED;
STICKLINE(牛108 AND 牛>=熊,牛,108,6,0),COLORFF0000;
STICKLINE(熊>108 AND 牛<熊,熊,108,6,0),COLORWHITE;
STICKLINE(牛<0 AND 牛<熊,牛,0,6,0),COLORF0F000;
STICKLINE(熊熊,熊,0,6,0),COLORYELLOW;
CAIH1:=MA(CLOSE,5)=HHV(MA(CLOSE,5),20);
CAIH2:=MA(CLOSE,5)>MA(CLOSE,20);
CAIH3:=COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;
风险:IF(CAIH1 AND CAIH2 AND CAIH3,30,0),LINETHICK0,STICK,COLORGREEN;
CAIH11:=MA(CLOSE,5)=HHV(MA(CLOSE,5),120);
CAIH21:=MA(CLOSE,5)>MA(CLOSE,120);
CAIH31:=COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;
压力:IF(CAIH11 AND CAIH21 AND CAIH31,60,0),LINETHICK0,STICK,COLORF0F000;
底:5,LINETHICK2,COLOR00FFFF;
买入:IF(CROSS(牛,底),60,0),LINETHICK2,STICK,COLOR00FFFF;
DRAWTEXT(买入,50,'买入'),COLORRED;
顶:108,LINETHICK2,COLORFF9D00;
卖出:IF(CROSS(顶,牛),1,0),LINETHICK0,STICK,COLORFF9D00;
STICKLINE(CROSS(顶,牛),90,108,3,0),COLORFF9D00;
DRAWTEXT(CROSS(顶,牛),85,'卖出'),COLORFF9D00;
第二部分 选股公式
牛:5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLORYELLOW;
熊:EMA(MA(牛,5),3),LINETHICK0,COLORBLUE;
STICKLINE(牛>=熊,牛,熊,5,0),COLORRED;
STICKLINE(牛108 AND 牛>=熊,牛,108,6,0),COLORFF0000;
STICKLINE(熊>108 AND 牛<熊,熊,108,6,0),COLORWHITE;
STICKLINE(牛<0 AND 牛<熊,牛,0,6,0),COLORF0F000;
STICKLINE(熊熊,熊,0,6,0),COLORYELLOW;
CAIH1:=MA(CLOSE,5)=HHV(MA(CLOSE,5),20);
CAIH2:=MA(CLOSE,5)>MA(CLOSE,20);
CAIH3:=COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;
风险:IF(CAIH1 AND CAIH2 AND CAIH3,30,0),LINETHICK0,STICK,COLORGREEN;
CAIH11:=MA(CLOSE,5)=HHV(MA(CLOSE,5),120);
CAIH21:=MA(CLOSE,5)>MA(CLOSE,120);
CAIH31:=COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;
压力:IF(CAIH11 AND CAIH21 AND CAIH31,60,0),LINETHICK0,STICK,COLORF0F000;
底:5,LINETHICK2,COLOR00FFFF;
买入:IF(CROSS(牛,底),60,0),LINETHICK2,STICK,COLOR00FFFF;
DRAWTEXT(买入,50,'买入'),COLORRED;
顶:108,LINETHICK2,COLORFF9D00;
卖出:IF(CROSS(顶,牛),1,0),LINETHICK0,STICK,COLORFF9D00;
STICKLINE(CROSS(顶,牛),90,108,3,0),COLORFF9D00;
DRAWTEXT(CROSS(顶,牛),85,'卖出'),COLORFF9D00;
第二部分 选股公式