ma20:=ma(c,20);
if c>ma20 and holding=0 then buy(1,20%,market),pertrader;
if (c-enterprice)/enterprice>=0.05 then sell(1,0,market);
if (enterprice-c)/enterprice>=0.02 then sell(1,0,market);
if c<ma20 and holding=0 then buyshort(1,20%,market),pertrader;
if (enterprice-c)/enterprice>=0.05 then sellshort(1,0,market);
if (c-enterprice)/enterprice>=0.02 then sellshort(1,0,market);
开仓有带止损,那如何添加移动止损,当盈利50个点,止损前移50个点
参考软件自带的范例代码 01.移动止损模块范例