连续三个红线(C>OPEN)且连创新高以后第四根棒线开多,连续三个绿线(C<OPEN)且连创新低以后反手(开空)。麻烦老师了,谢谢!
if ref(all(isup,3) and all(h>ref(h,1),3),1) then buy(holding=0,1,market);
if ref(all(isdown,3) and all(l<ref(l,1),3),1) then buyshort(holding=0,1,market);
[此贴子已经被作者于2015/8/12 15:53:43编辑过]