底部买入主图 顺势追涨持股【指标公式】(含选股)
第一部分 副图公式 手机/电脑
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
MTR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),12);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),12);
DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),12);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
ADX:=EMA(ABS(MDI-PDI)/(MDI+PDI)*100,2);
ADXR:=EMA(ADX,2);
ADD:=ADX>REF(ADX,1) AND REF(ADX,1)REF(BB,1) AND REF(BB,1)1.10 AND HHV(MDI,CAIH6)>=40 AND HHV(ADX,CAIH6)>=50 AND LLV(J,BARSLAST(CROSS(K,J)))80 AND PDI>40 AND ADX>50 AND COUNT(J>85,3)>=1 AND CCI80
买入:=COUNT(MDI>=40 AND ADX>=50 AND CCI14=1 AND HHV(BB,CAIH6)/LLV(L,CAIH6)>1.10;
DRAWTEXT(买入 AND CROSS(C,A1),L*0.98,'←买'),COLORRED;
CAIH9:=(PDI>MDI AND ADD AND PDI<30) OR CROSS(PDI,MDI);
追涨:=(A1-A2)/A2*100REF(A1,1) AND BB>REF(BB,1) AND A2>=REF(A2,1)*0.99?AND HHV(MDI,CAIH8)>20 AND CAIH9 AND J0,5) AND CROSS(MA(CHA8,2),CHA8);
DRAWTEXT(FILTER(卖出=1,5),H+0.1,'←卖'),COLORGREEN;
第二部分 选股公式
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
MTR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),12);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),12);
DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),12);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
ADX:=EMA(ABS(MDI-PDI)/(MDI+PDI)*100,2);
ADXR:=EMA(ADX,2);
ADD:=ADX>REF(ADX,1) AND REF(ADX,1)REF(BB,1) AND REF(BB,1)1.10 AND HHV(MDI,CAIH6)>=40 AND HHV(ADX,CAIH6)>=50 AND LLV(J,BARSLAST(CROSS(K,J)))80 AND PDI>40 AND ADX>50 AND COUNT(J>85,3)>=1 AND CCI80
买入:=COUNT(MDI>=40 AND ADX>=50 AND CCI14=1 AND HHV(BB,CAIH6)/LLV(L,CAIH6)>1.10;
DRAWTEXT(买入 AND CROSS(C,A1),L*0.98,'←买'),COLORRED;
CAIH9:=(PDI>MDI AND ADD AND PDI<30) OR CROSS(PDI,MDI);
追涨:=(A1-A2)/A2*100REF(A1,1) AND BB>REF(BB,1) AND A2>=REF(A2,1)*0.99?AND HHV(MDI,CAIH8)>20 AND CAIH9 AND J0,5) AND CROSS(MA(CHA8,2),CHA8);
DRAWTEXT(FILTER(卖出=1,5),H+0.1,'←卖'),COLORGREEN;
第二部分 选股公式