趋势套利底部买入信号【指标公式】(含选股)
第一部分 副图公式 手机/电脑
趋势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0;
底部:10,COLORRED,LINETHICK2;
买入信号:STICKLINE(CROSS(趋势,底部),0,30,3,0),COLORRED,LINETHICK5;
顶部:90,COLORGREEN,LINETHICK2;
出局信号:STICKLINE(CROSS(顶部,趋势),100,70,3,0),COLORFFF666,LINETHICK5;
多头趋势:7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1),COLOR8811FF;
套利线:=14;
阻力线:=78.89;
抄底:=CROSS(多头趋势,套利线);
逃顶:=CROSS(阻力线,多头趋势);
DRAWICON(抄底,多头趋势,1);
DRAWICON(逃顶,多头趋势,2);
CAIH1:=REF(LOW,1);
CAIH2:=SMA(ABS(LOW-CAIH1),3,1)/SMA(MAX(LOW-CAIH1,0),3,1)*100;
CAIH3:=EMA(IF(CLOSE*1.2,CAIH2*10,CAIH2/10),3);
CAIH4:=LLV(LOW,38);
CAIH5:=HHV(CAIH3,38);
CAIH6:=IF(LLV(LOW,90),1,0);
CAIH7:=EMA(IF(LOW<=CAIH4,(CAIH3+CAIH5*2)/2,0),3)/618*CAIH6;
CAIH8:=MA(LOW,2)*0.98;
CAIH9:=MA(LOW,26)*0.84;
CAIH10:=REF(CAIH8,1)
STICKLINE(CAIH10,0,CAIH7*3,4,0),COLORRED;
DRAWTEXT(CAIH10,CAIH7*2,'买入'),COLORYELLOW;
DRAWICON(CAIH10,0,4),COLORRED;
第二部分 选股公式
趋势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0;
底部:10,COLORRED,LINETHICK2;
买入信号:STICKLINE(CROSS(趋势,底部),0,30,3,0),COLORRED,LINETHICK5;
顶部:90,COLORGREEN,LINETHICK2;
出局信号:STICKLINE(CROSS(顶部,趋势),100,70,3,0),COLORFFF666,LINETHICK5;
多头趋势:7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1),COLOR8811FF;
套利线:=14;
阻力线:=78.89;
抄底:=CROSS(多头趋势,套利线);
逃顶:=CROSS(阻力线,多头趋势);
DRAWICON(抄底,多头趋势,1);
DRAWICON(逃顶,多头趋势,2);
CAIH1:=REF(LOW,1);
CAIH2:=SMA(ABS(LOW-CAIH1),3,1)/SMA(MAX(LOW-CAIH1,0),3,1)*100;
CAIH3:=EMA(IF(CLOSE*1.2,CAIH2*10,CAIH2/10),3);
CAIH4:=LLV(LOW,38);
CAIH5:=HHV(CAIH3,38);
CAIH6:=IF(LLV(LOW,90),1,0);
CAIH7:=EMA(IF(LOW<=CAIH4,(CAIH3+CAIH5*2)/2,0),3)/618*CAIH6;
CAIH8:=MA(LOW,2)*0.98;
CAIH9:=MA(LOW,26)*0.84;
CAIH10:=REF(CAIH8,1)
STICKLINE(CAIH10,0,CAIH7*3,4,0),COLORRED;
DRAWTEXT(CAIH10,CAIH7*2,'买入'),COLORYELLOW;
DRAWICON(CAIH10,0,4),COLORRED;
第二部分 选股公式