hazai:=if(close>upp and ref(close,1)<ref(upp,1),1,if(close<dnn and ref(close,1)>ref(dnn,1),-1,0));
longcond:=tholding=0 and hazai=1;
shortcond:=tholding=0 and hazai=-1;
tholding 请不要在图表交易中使用,请参考http://www.weistock.com/bbs/dispbbs.asp?boardid=4&Id=332问题6
另外请用户发帖注意使用一个有意义的标题,这样更容易我们看到你的问题,谢谢合作
[此贴子已经被作者于2011-3-12 0:52:33编辑过]