绝好的中线指标(100天,涨幅100%,成功率94.51%)(源码含DZH2,tdx)_股票公式_顶尖财经网
  您的位置:首页 >> 股票公式 >> 大智慧公式 >> 文章正文

绝好的中线指标(100天,涨幅100%,成功率94.51%)(源码含DZH2,tdx)

加入日期:2009-7-29 21:44:29
源码如下:

这个是山映斜阳天接水MM的原创
绝好的中线自用指标(100天,涨幅100%,成功率达95%以上)
公式编制思路:利用均线和MACD确定底部区域和启动点
公式源码:(主图)
A1:=3*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
A2:=LLV(L,21);
a3:LLV(L,30);
a4:=EMA(A1,5);
A5:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
a6:ma(c,20);
dif:="macd.diff"(12,26,9);
dea:="macd.dea"(12,26,9);
基础:=( dif<-0.1 and dif>dea),COLORyellow;
中线买入:CROSS(A1,a4)AND (A5-a4)>40 and 基础,COLORred;
STICKLINE(CROSS(A1,a4)AND (A5-a4)>40 and 基础 ,a3,a3*1.2,4,0),COLORred;
STICKLINE( 基础,a3,a3*1.1,4,0),COLORyellow;
选股公式源码:
A1:=3*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
a4:=EMA(A1,5);
A5:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
dif:="macd.diff"(12,26,9);
dea:="macd.dea"(12,26,9);
基础:=( dif<-0.1 and dif>dea);
中线:CROSS(A1,a4)AND (A5-a4)>40 and 基础;

关于DZH2使用问题:
因为DZH2的函数用法与DZH1不一样,不能直接引用,经过修改可以使用
DZH2公式源码:
A1:=3*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
A2:=LLV(L,21);
a3:LLV(L,30);
a4:=EMA(A1,5);
A5:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
a6:ma(c,20);
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA  :=EMA(DIFF,9);
基础:(diff<-0.1 and diff>dea);
中线买入:CROSS(A1,a4)AND (A5-a4)>40 and 基础;
STICKLINE(CROSS(A1,a4) AND (A5-a4)>40 and 基础 ,a3,a3*1.2,4,0),COLORRED;
STICKLINE( 基础,a3,a3*1.1,4,0);

通达信公式源码:

A1:=3*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
A2:=LLV(L,21);
a3:LLV(L,30);
a4:=EMA(A1,5);
A5:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
a6:ma(c,20);
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA  :=EMA(DIFF,9);
基础:=(diff<-0.1 and diff>dea);
中线买入:=CROSS(A1,a4)AND (A5-a4)>40 and 基础;
STICKLINE(CROSS(A1,a4) AND (A5-a4)>40 and 基础 ,a3,a3*1.2,4,0),COLORRED;
STICKLINE( 基础,a3,a3*1.1,4,0),COLORyellow;
通达信选股公式源码

A1:=3*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
a4:=EMA(A1,5);
A5:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA  :=EMA(DIFF,9);
基础:=(diff<-0.1 and diff>dea);
中线:CROSS(A1,a4)AND (A5-a4)>40 and 基础


以上信息为博客会员、合作方、加盟会员提供,本站不拥有版权,版权归原作者所有,所载文章、数据仅供参考,据此操作,风险自负。
顶 尖 财 经 -- 中 华 顶 尖 网 络 信 息 服 务 中 心
Copyright? 2000 - 2004 www.58188.com