beyond202104 发表于 2023-8-28 15:26:30

牛熊趋势转换 抄底逃顶波段【指标公式】(含选股)

第一部分 副图公式 手机/电脑


牛: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;
底:=5,LINETHICK2,COLOR00FFFF;
{DRAWTEXT(买入,50,'买入'),COLORRED;}
买入:CROSS(牛,底);
{卖出公式:卖出}
牛:=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;
顶:=108,LINETHICK2,COLORFF9D00;
{STICKLINE(CROSS(顶,牛),90,108,3,0),COLORFF9D00;
DRAWTEXT(CROSS(顶,牛),85,'卖出'),COLORFF9D00;}
卖出:CROSS(顶,牛);


新月561 发表于 2023-9-5 21:30:52

路过,帮顶一下!

低调擦恼 发表于 2023-10-3 11:40:42

我抢、我抢、我抢沙发~

石头剪子布854 发表于 2023-10-5 20:11:49

过来看看的

冷蝶 发表于 2024-1-5 14:02:18

路过,学习下

幸福341 发表于 2024-1-21 11:20:23

小手一抖,花花到手!

晚上咳嗽椎 发表于 2024-3-18 16:51:20

帮帮顶顶!!
页: [1]
查看完整版本: 牛熊趋势转换 抄底逃顶波段【指标公式】(含选股)