底部建仓买进 波段生命趋势【指标公式】(含选股)
第一部分 副图公式 手机/电脑
CAIH1:=REF(OPEN,1);
CAIH2:=SMA(MAX(OPEN-CAIH1,0),6,1)/SMA(ABS(OPEN-CAIH1),6,1)*100;
CAIH3:=REF(CLOSE,1);
CAIH4:=SMA(MAX(CLOSE-CAIH3,0),6,1)/SMA(ABS(CLOSE-CAIH3),6,1)*100;
CAIH5:=REF(HIGH,1);
CAIH6:=SMA(MAX(HIGH-CAIH5,0),6,1)/SMA(ABS(HIGH-CAIH5),6,1)*100;
CAIH7:=REF(LOW,1);
CAIH8:=SMA(MAX(LOW-CAIH7,0),6,1)/SMA(ABS(LOW-CAIH7),6,1)*100;
STICKLINE(CAIH4
STICKLINE(CAIH4>CAIH2,CAIH2,CAIH4,8,0),COLORRED , ;
STICKLINE(CAIH4>CAIH2 AND CAIH6>CAIH8 AND CAIH8>CAIH4,CAIH4,CAIH6,0.5,1),COLORRED , ;
STICKLINE(CAIH4>CAIH2 AND CAIH6CAIH2,CAIH2,CAIH6,0.5,1),COLORRED , ;
STICKLINE(CAIH4CAIH8 AND CAIH6
STICKLINE(CAIH4CAIH2,CAIH2,CAIH6,0.5,1),COLORGREEN , ;
顶线:80,COLORYELLOW;
底线:20;
中位线:50;
生命: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);
顶:IF(生命>90,80,90);
底:IF(生命<10,30,10),COLORYELLOW;
买进:IF(CROSS(生命,底),20,0);
N1:=3;N2:=7;N3:=21;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
CHA1:=RSI1<底;
建仓:IF(CROSS(RSI1,底),10,0),LINETHICK1;
DRAWICON(CROSS(RSI1,底),20,1);
DRAWICON(建仓 AND 买进,10,38);
CHA2:=(CHA1=0 AND RSI1<=顶);
卖出:IF(CHA2=1 AND REF(CHA2,1)=0 AND 建仓=0,90,100),LINETHICK1;
第二部分 选股公式
CAIH1:=REF(OPEN,1);
CAIH2:=SMA(MAX(OPEN-CAIH1,0),6,1)/SMA(ABS(OPEN-CAIH1),6,1)*100;
CAIH3:=REF(CLOSE,1);
CAIH4:=SMA(MAX(CLOSE-CAIH3,0),6,1)/SMA(ABS(CLOSE-CAIH3),6,1)*100;
CAIH5:=REF(HIGH,1);
CAIH6:=SMA(MAX(HIGH-CAIH5,0),6,1)/SMA(ABS(HIGH-CAIH5),6,1)*100;
CAIH7:=REF(LOW,1);
CAIH8:=SMA(MAX(LOW-CAIH7,0),6,1)/SMA(ABS(LOW-CAIH7),6,1)*100;
STICKLINE(CAIH4
STICKLINE(CAIH4>CAIH2,CAIH2,CAIH4,8,0),COLORRED , ;
STICKLINE(CAIH4>CAIH2 AND CAIH6>CAIH8 AND CAIH8>CAIH4,CAIH4,CAIH6,0.5,1),COLORRED , ;
STICKLINE(CAIH4>CAIH2 AND CAIH6CAIH2,CAIH2,CAIH6,0.5,1),COLORRED , ;
STICKLINE(CAIH4CAIH8 AND CAIH6
STICKLINE(CAIH4CAIH2,CAIH2,CAIH6,0.5,1),COLORGREEN , ;
顶线:80,COLORYELLOW;
底线:20;
中位线:50;
生命: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);
顶:IF(生命>90,80,90);
底:IF(生命<10,30,10),COLORYELLOW;
买进:IF(CROSS(生命,底),20,0);
N1:=3;N2:=7;N3:=21;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
CHA1:=RSI1<底;
建仓:IF(CROSS(RSI1,底),10,0),LINETHICK1;
DRAWICON(CROSS(RSI1,底),20,1);
DRAWICON(建仓 AND 买进,10,38);
CHA2:=(CHA1=0 AND RSI1<=顶);
卖出:IF(CHA2=1 AND REF(CHA2,1)=0 AND 建仓=0,90,100),LINETHICK1;
第二部分 选股公式