買賣指令是一定要按照這個嗎?
作者:金字塔 來源:cxh99.com 發布時間:2015年05月12日
- 咨詢內容:
請教:買賣指令是一定要按照
平空
開多
平多
開空
來寫的嗎,怎么在系統公式 顧比倒數線策略
里面有
if holding=0 then begin
if tmp<=0 then
buy(1,1,limitr,close);
end
if holding=0 then begin
if tmp>0 then
buyshort(1,1,limitr,close);
end
if holding>0 then begin
if tmp>0 then begin
sell(1,holding,limitr,close);
buyshort(1,1,limitr,close);
end
end
if holding<0 then begin
if tmp<=0 then begin
sellshort(1,holding,limitr,close);
buy(1,1,limitr,close);
end
end
這個順序和你們要求的不一樣啊
- 金字塔客服:
如果不加if之類的,那么一定要按照上面的順序寫
如果加了,可以不用按照順序寫