九毛八公式指标
公式模块:
通达信自带交易系统dmi公式,请高手写一个选股公式。出现红箭头选股。谢谢
N.2.80.14.1
TR:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
PDM:=SUM(IF(HD>0&&HD>LD,HD,0),N);
MDM:=SUM(IF(LD>0&&LD>HD,LD,0),N);
pdi:=PDM*100/TR;
mdi:=MDM*100/TR;
ENTERLONG:crOSS(PDI,MDI);
EXITLONG:CROSS(MDI,PDI);
N.2.80.14.1
TR:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
PDM:=SUM(IF(HD>0&&HD>LD,HD,0),N);
MDM:=SUM(IF(LD>0&&LD>HD,LD,0),N);
PDI:=PDM*100/TR;
MDI:=MDM*100/TR;
ENTERLONG:CROSS(PDI,MDI);