公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

综合度--源码+排序

2015-9-8 04:02| 发布者: admin| 查看: 71| 评论: 0

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
DEA度:=IF(DEA>REF(DEA,1) AND DEA>0,2,IF(DEA>REF(DEA,1) AND DEA<0,1,0));
DIFF度:=IF(DIFF>DEA AND DEA>REF(DEA,1) AND DIFF>REF(DIFF,1),1,IF(DIFF>DEA AND DEA>REF(DEA,1) AND DIFF MACD度:=IF(MACD>REF(MACD,1) AND MACD>0,1,IF(MACD>REF(MACD,1) AND MACD<0,0.5,0));
M度:=DEA度+DIFF度+MACD度;
V35:=MA(V,35);
五日量:=SUM(V,5);
均量度:=IF(V>35 AND V35>REF(V35,1),2,IF(VREF(V35,1),1,0));
增量度:=IF(五日量>REF(五日量,1),1,0);
量度:=均量度+增量度;
TR:=SMA(MAX(MAX(H-L,ABS(H-REF(C,1))),ABS(L-REF(C,1))),14,1);
HD:=H-REF(H,1);
LD:=REF(L,1)-L;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),6,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),6,1);
PDI:=DMP*100/TR;
MDI:=DMM*100/TR;
PDI度:=IF(PDI>REF(PDI,1) AND PDI>MDI,1,IF(PDI>REF(PDI,1) AND PDI MDI度:=IF(MDIPDI,0.5,0));
DMI度:=PDI度+MDI度;
综合度:M度+量度+DMI度,COLORMAGENTA,PRECIS1,LINETHICK0;
走强:=IF(综合度>=5,综合度,0);
走弱:=IF(综合度<5,综合度,0);
强势:SMA(走强,3,1),COLORRED,PRECIS2,LAYER1;
弱势:SMA(走弱,3,1),COLORGREEN,PRECIS2,LAYER2;
FILLRGN(强势,4,强势>=4),COLOR000066,PRECIS2,LAYER3;
STICKLINE(C,4,4,5,0),COLORYELLOW,LAYER4;


鲜花

握手

雷人

路过

鸡蛋
返回顶部