啊?标准版的全自动交易不是后台的吗?
那tholding2和tholding,能不能用在图表交易里
if 开多条件 and islastbar then
begin
myentryprice:=max(highestaftercross,o);
if tholding2<0 then
begin
tsellshort(1,0,lmt,myentryprice+sellhd*mindiff),orderqueue;
tbuy(1,firstvol,lmt,myentryprice+buyhd*mindiff),orderqueue;
end
end
我要达到满仓反手的效果,上面代码在实盘中会出什么问题吗?能达到我的要求吗?
上面的是后台的,错了。
用在图表的是下面的:
if 开多条件 then
begin
myenterprice:=max(highestaftercross,o);
if tholding2<0 then
begin
sellshort(1,0,limitr,myenterprice+sellhd*mindiff),orderqueue;
buy(1,firstvol,limitr,myenterprice+buyhd*mindiff),orderqueue;
end
end
用在图表的是下面的:
if 开多条件 then
begin
myenterprice:=max(highestaftercross,o);
if tholding2<0 then
begin
sellshort(1,0,limitr,myenterprice+sellhd*mindiff),orderqueue;
buy(1,firstvol,limitr,myenterprice+buyhd*mindiff),orderqueue;
end
end
这段代码参实现满仓反手吗?用tholding2和tholding有区别吗?