if c-enterprice>=m1*mindiff and holding>0 then //盈利目标
begin
SELL(win2 >= P3, 50%,market); // win2 >= P3,减仓50%
SELL(win2 >= P4, 0,market); // win2 >= P4, 平仓
end
if enterprice-c>=m1*mindiff and holding<0 then
begin
SELL(win2 >= P3,50%,market); // win2 >= P3,减仓50%
SELL(win2 >= P4, 0,market); // win2 >= P4, 平仓
end
这样指令可以吗?
SELL(win2 >= P3, 50%,market); // win2 >= P3,减仓50%
SELL(win2 >= P4, 0,market); // win2 >= P4, 平仓
因该可以的吧,你在图表上试试看看不就知道了