能帮我把下面的公式在出现“**突破”和“黑马跑道”信号时改为条件预警公式吗

xin? 2024-06-24 04:00:41
最佳回答
**突破预警公式:ma8:=ma(close,8);ma50:=ma(close,50);pl1:=(((close - ma50) / ma50)<0.008);pl2:=(((close - ma8) / ma8)<0.058);偏离率:=(((pl1 = 1) and (pl2 = 1)) * 0.2);**突破:((((偏离率 = 0) and (ref(偏离率,1) = 0.2)) and (ref((count((偏离率 = 0.2),10) = 10),1) = 1)) * 1);黑马跑道预警公式:跑道aa:=ma(c,2);跑道bb:=ma(c,9);跑道af:=cross(跑道aa,跑道bb);跑道af1:=cross(跑道bb,跑道aa);上穿天数:=barslast(跑道af);周期涨幅:=(hhv(c,上穿天数+8)-llv(c,上穿天数+8))/llv(c,上穿天数+8);黑码跑道:周期涨幅<=0.15 and 上穿天数>=6 and count(跑道af1,上穿天数)<=0;附图上乱麻麻的帮你改了一下,清爽多了试试吧:ma8:=ma(close,8);ma50:=ma(close,50);pl1:=(((close - ma50) / ma50)<0.008);pl2:=(((close - ma8) / ma8)<0.058);偏离率:=(((pl1 = 1) and (pl2 = 1)) * 0.2);**突破:((((偏离率 = 0) and (ref(偏离率,1) = 0.2)) and (ref((count((偏离率 = 0.2),10) = 10),1) = 1)) * 1);drawtext(**突破,0.82,'!**突破'),colorred;stickline(**突破,0.85,0.88,0.1,0),colorred,linethick3;{加速跑道}跑道aa:=ma(c,2);跑道bb:=ma(c,9);跑道af:=cross(跑道aa,跑道bb);跑道af1:=cross(跑道bb,跑道aa);上穿天数:=barslast(跑道af);周期涨幅:=(hhv(c,上穿天数+8)-llv(c,上穿天数+8))/llv(c,上穿天数+8);黑码跑道:周期涨幅<=0.15 and 上穿天数>=6 and count(跑道af1,上穿天数)<=0;stickline(黑码跑道,0.65,0.68,0.1,0),colorred,linethick3;drawtext(黑码跑道 and count(黑码跑道,2)=1,0.62,'!黑码跑道'),colorred;0.5;0.9; 20210311
汇率兑换计算器

类似问答
汇率兑换计算器

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

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