kdj自编大牛股副图公式
{KDJ}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORWHITE;
D:SMA(K,3,1),COLORYELLOW;
J:3*K-2*D,COLORMAGENTA;
{捕捉大牛股之预警准确率98%}
TR2:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7);
HD2:=HIGH-REF(HIGH,1);
LD2:=REF(LOW,1)-LOW;
DMP2:=SUM(IF(HD2>0 AND HD2>LD2,HD2,0),7);
DMM2:=SUM(IF(LD2>0 AND LD2>HD2,LD2,0),7);
PDI2:=DMP2*100/TR2;
MDI2:=DMM2*100/TR2;
ADX2:=MA(ABS(MDI2-PDI2)/(MDI2+PDI2)*100,3);
ADXR2:=(ADX2+REF(ADX2,3))/2;
神偷线:=((DMP2*100)/TR2);
辅助线:=((DMM2*100)/TR2);
趋势线:=MA(((ABS((辅助线 - 神偷线))/(辅助线 + 神偷线))*100),3);
大牛股:IF(ADX2>90 AND PDI2=0,80,0),COLORYELLOW;
100,COLOR004400;
0,COLOR004400;
选股公式:
TR2:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7);
HD2:=HIGH-REF(HIGH,1);
LD2:=REF(LOW,1)-LOW;
DMP2:=SUM(IF(HD2>0 AND HD2>LD2,HD2,0),7);
DMM2:=SUM(IF(LD2>0 AND LD2>HD2,LD2,0),7);
PDI2:=DMP2*100/TR2;
MDI2:=DMM2*100/TR2;
ADX2:=MA(ABS(MDI2-PDI2)/(MDI2+PDI2)*100,3);
神偷线:=((DMP2*100)/TR2);
辅助线:=((DMM2*100)/TR2);
趋势线:=MA(((ABS((辅助线 -神偷线))/(辅助线 +神偷线))*100),3);
大牛股:ADX2>90 AND PDI2=0;
040222415.png
|