金字塔趋势盘整指标[金字塔模型]
相关标签:盘整 指标,如何区分趋势和盘整,股票缩量盘整,低位盘整,盘整,盘整背驰的三种情况,盘整是什么意思,盘整后必涨的k线图解,盘整突破识别,
模型策略源码:
ADX:
runmode:0;
input:p(14,2,100,10);
input:m(6,1,100,10);
tr1 := sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),p);
hd := high-ref(high,1);
ld := ref(low,1)-low;
dmp:= sum(if(hd>0 and hd>ld,hd,0),p);
dmm:= sum(if(ld>0 and ld>hd,ld,0),p);
pdi:= dmp*100/tr1;
mdi:=dmm*100/tr1;
adx: ma(abs(mdi-pdi)/(mdi+pdi)*100,m);
input:p(14,2,100,10);
input:m(6,1,100,10);
tr1 := sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),p);
hd := high-ref(high,1);
ld := ref(low,1)-low;
dmp:= sum(if(hd>0 and hd>ld,hd,0),p);
dmm:= sum(if(ld>0 and ld>hd,ld,0),p);
pdi:= dmp*100/tr1;
mdi:=dmm*100/tr1;
adx: ma(abs(mdi-pdi)/(mdi+pdi)*100,m);
市场效率:
runmode:0;
input:length(10);
direction:=abs(close-ref(close,length));
volatility:=sum(abs(close-ref(close,1)),length);
mk:direction/volatility;
input:length(10);
direction:=abs(close-ref(close,length));
volatility:=sum(abs(close-ref(close,1)),length);
mk:direction/volatility;
市场褶皱:
runmode:0;
input:length(10);
direction:=abs(close-ref(close,length));
volatility:=hhv(high,length)-llv(low,lenth);
ck:direction/volatility;
input:length(10);
direction:=abs(close-ref(close,length));
volatility:=hhv(high,length)-llv(low,lenth);
ck:direction/volatility;
{别忘了将本网告诉您身边的朋友,向朋友传达有用资料,也是一种人情,你朋友会感谢你的。}
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容