以前任何版本都正常,系统使用多年都没有出现这样问题。4.3,4.4版都正常的。
平仓出现2K连续平仓

此主题相关图片如下:qq图片20180130121954.png

4.41版本的一切正常

此主题相关图片如下:qq图片20180130122252.png
if holding>0 and trendr=-1 then sell(1,LOTS,marketr);
if holding<0 and trendr=1 then sellshort(1,LOTS,marketr);
if holding=0 and trendr=1 then buy(1,LOTS,marketr);
if holding=0 and trendr=-1 then buyshort(1,LOTS,marketr);
只要是反手系统都出现问题

此主题相关图片如下:qq图片20180130123428.png
VAL1 := "AbleTrend@VAL1"(RISK,3+RISK*2,25000);
VAL2 := "AbleTrend@VAL2"();
T1 := "AbleTrend@T1"(19);
FUND:=S*10000;
LOTS:max(1,INTPART(Fund/(O*MULTIPLIER*0.1)));
cc:=holding;
if holding>0 and val1>0 then sell(1,LOTS,marketr);
if holding<0 and val2>0 then sellshort(1,LOTS,marketr);
if holding=0 and val2>0 then buy(1,LOTS,marketr);
if holding=0 and val1>0 then buyshort(1,LOTS,marketr);
代码