sh:=h;sl:=l;
bh:=(h>ref(h,1) and l<ref(l,1)) or (h<ref(h,1) and l>ref(l,1));
if barslast(not(bh))<=1 and h>ref(h,1) and l<ref(l,1) and ref(h,1)>ref(h,2) then
这个在序列模式下显然是不行的,怎么改能? 如果直接在逐k线模式下,提示不能使用ref函数,怎么办 求高人帮下小弟,先谢过了
奇怪 为什么不会换行啊?
Google浏览器里不能换行,特意换成ie重新编辑了
把统计类函数放在if语句之外
sh:=h;sl:=l;
mid:=ref(sl,1);
bh:=(h>ref(h,1) and l<ref(l,1)) or (h<ref(h,1) and l>ref(l,1));
if barslast(not(bh))<=1 and h>ref(h,1) and l<ref(l,1) and ref(h,1)>ref(h,2) then
先谢谢了
假如我要使前一日的sh的值为当日的sh(即h),怎么改呢
sh:=h;sl:=l;
mid:=ref(sl,1);
bh:=(h>ref(h,1) and l<ref(l,1)) or (h<ref(h,1) and l>ref(l,1));
if barslast(not(bh))<=1 and h>ref(h,1) and l<ref(l,1) and ref(h,1)>ref(h,2) then