主题459
精华0
阅读权限30
注册时间2015-4-1
在线时间0 小时
最后登录2017-1-4
美元0
爱心果6319
贡献0
- 积分
- 7959
刺使
- 听众
- 3
|
30爱心果
老师好,自己做了一个zig转折指标,在转折低点显示转折力度,结果发现在较大转折时,小的转折也显示出来了,如图显示,求助老师帮忙改进一下;
当最大转折是”折5“的时候只显示”折5“;
当最大转折是”折30“的时候只显示”折30“,不用显示其他的小转折;
先提前谢谢老师,老师辛苦,提前给您拜年了!
以下是主图源码和天马精化的图片展示。
VAR90:=ZIG(3,90)>REF(ZIG(3,90),1) AND REF(ZIG(3,90),1)<REF(ZIG(3,90),2);
DRAWTEXT(VAR90,L*0.62,'折90'),COLORYELLOW;
VAR80:=ZIG(3,80)>REF(ZIG(3,80),1) AND REF(ZIG(3,80),1)<REF(ZIG(3,80),2);
DRAWTEXT(VAR80,L*0.66,'折80'),COLORYELLOW;
VAR70:=ZIG(3,70)>REF(ZIG(3,70),1) AND REF(ZIG(3,70),1)<REF(ZIG(3,70),2);
DRAWTEXT(VAR70,L*0.70,'折70'),COLORYELLOW;
VAR60:=ZIG(3,60)>REF(ZIG(3,60),1) AND REF(ZIG(3,60),1)<REF(ZIG(3,60),2);
DRAWTEXT(VAR60,L*0.74,'折60'),COLORYELLOW;
VAR50:=ZIG(3,50)>REF(ZIG(3,50),1) AND REF(ZIG(3,50),1)<REF(ZIG(3,50),2);
DRAWTEXT(VAR50,L*0.78,'折50'),COLORYELLOW;
VAR40:=ZIG(3,40)>REF(ZIG(3,40),1) AND REF(ZIG(3,40),1)<REF(ZIG(3,40),2);
DRAWTEXT(VAR40,L*0.82,'折40'),COLORYELLOW;
VAR30:=ZIG(3,30)>REF(ZIG(3,30),1) AND REF(ZIG(3,30),1)<REF(ZIG(3,30),2);
DRAWTEXT(VAR30,L*0.86,'折30'),COLORYELLOW;
VAR20:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<REF(ZIG(3,20),2);
DRAWTEXT(VAR20,L*0.90,'折20'),COLORYELLOW;
VAR10:=REF(ZIG(3,10),1)<ZIG(3,10) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
DRAWTEXT(VAR10,L*0.94,'折10'),COLORYELLOW;
VAR5:=REF(ZIG(3,5),1)<ZIG(3,5) AND REF(ZIG(3,5),1)<REF(ZIG(3,5),2);
DRAWTEXT(VAR5,L*0.98,'折5'),COLORYELLOW; |
最佳答案
查看完整内容
VAR90:=ZIG(3,90)>REF(ZIG(3,90),1) AND REF(ZIG(3,90),1)REF(ZIG(3,80),1) AND REF(ZIG(3,80),1)REF(ZIG(3,70),1) AND REF(ZIG(3,70),1)REF(ZIG(3,60),1) AND REF(ZIG(3,60),1)REF(ZIG(3,50),1) AND REF(ZIG(3,50),1)REF(ZIG(3,40),1) AND REF(ZIG(3,40),1)REF(ZIG(3,30),1) AND REF(ZIG(3,30),1)REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)
|