if PB6>ref(PB6,1) then
begin
sellshort(1,holding,marketr);
buy(holding=0,1,marketr);
END
if PB6<ref(PB6,1) then
begin
sell(1,holding,marketr);
buyshort(holding=0,1,marketr);
END
不用固定手数,改成都用20%仓位开平仓怎么写,谢谢
if PB6>ref(PB6,1) then
begin
sellshort(1,20%,marketr);
buy(holding=0,20%,marketr);
END
if PB6<ref(PB6,1) then
begin
sell(1,20%,marketr);
buyshort(holding=0,20%,marketr);
END