专业版本后台程序化,1秒轮循,想实现盈利5个点后回落2个点则止盈,但实际执行中不在正确的点位止盈平仓,不知错在什么地方?
代码如下:
pd:=tholding>0 and hhv(h,tenterbars(0)-tenterprice>5 and c< hhv(h,tenterbars(0)-2;
if pd then tsell(1,0);
pd:=tholding>0 and hhv(h,tenterbars(0)-tenterprice>5 and c< hhv(h,tenterbars(0)-2;
少了两个括号