盈利除以保证金要达到20%,哪个合约的?
这个你需要用后台来操作了,获取保证金的函数必须是要用后台交易
if topenprofit/taccount(28)>0.2 then begin
tsellshort(1,0,mkt);
tsell(1,0,mkt);
end
if (dynainfo(7)-tenterprice)/tenterprice>0.05 then tsellshort(1,0,mkt);
if (tenterprice-dynainfo(7))/tenterprice<0.05 then tsell(1,0,mkt);
if (hhv(h,tenterbars+1)-dynainfo(7))/hhv(h,tenterbars+1)>0.05 then tsell(1,0,mkt);
if (dynainfo(7)-llv(l,tenterbars+1))/llv(l,tenterbars+1)>0.05 then tsellshort(1,0,mkt);