首先,得要记录下每天收盘时的资金
if time=closetime(0) then extgbdataset('zijin',TACCOUNT( 4));
然后在判断当前盈利,大于5000之后平仓且做标记
if TACCOUNT( 4)-extgbdata('zijin')>5000 then begin
tsell(1,0,mkt);
tsellshort(,0,mkt);
extgbdataset('baioji',0);
end
如何让标记发挥作用呢?
在开仓条件里面增加 extgbdata('biaoji')<>0
谢谢管理
首先,得要记录下每天收盘时的资金
if time=closetime(0) then extgbdataset('zijin',TACCOUNT( 4));
然后在判断当前盈利,大于5000之后平仓且做标记
if TACCOUNT( 4)-extgbdata('zijin')>5000 then begin
tsell(1,0,mkt);
tsellshort(,0,mkt);
extgbdataset('baioji',0);
end
如何让标记发挥作用呢?
在开仓条件里面增加 extgbdata('biaoji')<>0
把上面的taccount(4)改成tasset,函数用错了