现在的金字塔交易系统都是针对交易策略执行的交易合约,如果你希望对账户里面所有的合约进行交易判断,那么就要让交易策略监控所有的交易合约
然后加代码:
if tbuyholding(0)>0 and (tenterprice-dynainfo(7))/dynainfo(7)>0.15 then tsell(1,0,mkt);
if tsellhoding(0)>0 and (dynainfo(7)-tenterprice)/tenterprice>0.15 then tselshort(1,0,mkt);