--
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);
代码