ADX+KD交易模型源码[文华财经公式]
ADX+KD交易模型源码源码:[code]
TR:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SUM(IFELSE(HD>0 && HD>LD,HD,0),14);
DMM:=SUM(IFELSE(LD>0 && LD>HD,LD,0),14);
PDI:=DMP*100/TR;
MDI:=DMM*100/TR;
ADX:=MA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:=(ADX+REF(ADX,6))/2;
WWW.CXH99.COM:C,NODRAW;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
FASTK:=SMA(RSV,3,1);
K:=SMA(FASTK,3,1);
D:=SMA(K,3,1);
ADX>30 && D>85,BK;
ADX>30 && D<15,SK;
D<70,SP;
D>30,BP;
AUTOFILTER;//赢顺版本该行删除
[/code] 請問這個有辦法轉換成powerlanguage的語法嗎
页:
[1]