
现在是出3的时候确定2的位置,出7的时候确定6的位置,然后将2,6连接起来。请问逐K模型下 应该怎么实现

此主题相关图片如下:123.png
[此贴子已经被作者于2013/10/14 15:31:53编辑过]
drawline(l<ref(l,1) and l<refx(l,1),l,h>ref(h,1) and h>refx(h,1),0)
嗯嗯 那如果用BARPOS 的话可不可 以实现?
就是
j:=barpos
if ref(l,1) <ref(l,2) and ref(l,1)<l then
k1:=j;
if ref(h,1)>ref(h,2) and ref(h,1)>h then
k2:=j;
drawline(barpos=k1,l,barpos=k2,h,0);
如果不可以的话 是哪里的原因,怎样才可以?谢谢!
k1:valuewhen(ref(l,1) <ref(l,2) and ref(l,1)<l ,barpos);
k2: valuewhen(ref(h,1)>ref(h,2) and ref(h,1)>h,barpos);