请高手把这个指标变成选股公式!

只因当时太紧张 2024-06-17 13:26:08
最佳回答
ld:=(ref(low,1) - low);dmp:=sum(if(((hd > 0) and (hd > ld)),hd,0),10);dmm:=sum(if(((ld > 0) and (ld > hd)),ld,0),10);pdi:=((dmp * 100) / tr1);mdi:=((dmm * 100) / tr1);adx:=ma(((abs((mdi - pdi)) / (mdi + pdi)) * 100),5);**:=(rsi5 + adx);dxr:=(((adx + ref(adx,5)) / 2) + rsi5);wr10:=((100 * (hhv(high,10) - close)) / (hhv(high,10) - llv(low,10)));newvol:=(rsi5 - wr10);秋天梦想:=(** + newvol);xg:cross(秋天梦想,0);信号比较多,可以再优化一下,因为信号多也不算是件好事下面是优化过的公式:(仅供参考)lc:=ref(close,1);rsi5:=((sma(max((close - lc),0),5,1) / sma(abs((close - lc)),5,1)) *100);varr1:=sma(max(close-ref(c,1),0),12,1)/sma(abs(close-ref(c,1)),15,1)*100;tr1:=sum(max(max((high - low),abs((high - ref(close,1)))),abs((low -ref(close,1)))),10);hd:=(high - ref(high,1));ld:=(ref(low,1) - low);dmp:=sum(if(((hd > 0) and (hd > ld)),hd,0),10);dmm:=sum(if(((ld > 0) and (ld > hd)),ld,0),10);pdi:=((dmp * 100) / tr1);mdi:=((dmm * 100) / tr1);adx:=ma(((abs((mdi - pdi)) / (mdi + pdi)) * 100),5);**:=(rsi5 + adx);dxr:=(((adx + ref(adx,5)) / 2) + rsi5);wr10:=((100 * (hhv(high,10) - close)) / (hhv(high,10) - llv(low,10)));newvol:=(rsi5 - wr10);秋天梦想:=(** + newvol);lowv:=llv(l,9);{as2}highv:=hhv(h,9);rsv:=ema((close-lowv)/(highv-lowv)*100,3);k:=ema(rsv,3);d:=ema(k,3);xg22:=(cross(k,d)or cross(ref(k,1),ref(d,1)))and d<=30;x:=ema((close-llv(low,10))/(hhv(high,25)-llv(low,10)),4);xg77:=x>ref(x,1)and ref(x,2)>ref(x,1)and x<0.5;xg:(cross(秋天梦想,0)and xg22)or (cross(秋天梦想,0)and xg77); 20210311
汇率兑换计算器

类似问答
汇率兑换计算器

热门推荐
热门问答
最新问答
推荐问答
新手帮助
常见问题
房贷计算器-九子财经 | 备案号: 桂ICP备19010581号-1 商务联系 企鹅:2790-680461

特别声明:本网为公益网站,人人都可发布,所有内容为会员自行上传发布",本站不承担任何法律责任,如内容有该作者著作权或违规内容,请联系我们清空删除。