滿倉開單 倉位對不上 [金字塔]
- 咨詢內(nèi)容:
if cond2 and time <145500 then
begin
if holding=0 then buyshort(1,market);
if holding>0 then
begin
sell(1,0,market);
buyshort(1,market);
end
end
if cond1 and time <145500 then
begin
if holding=0 then buy(1,market);
if holding<0 then
begin
sellshort(1,0,market);
buy(1,market);
end
end
- 金字塔客服:
下單函數(shù)里面的下單手數(shù)沒有寫,
- 用戶回復:
0,或 省略不是滿倉嗎?
- 網(wǎng)友回復:
if cond2 and time <145500 then
begin
if holding=0 then buyshort(1,0,market);
if holding>0 then
begin
sell(1,0,market);
buyshort(1,0,market);
end
end
if cond1 and time <145500 then
begin
if holding=0 then buy(1,0,market);
if holding<0 then
begin
sellshort(1,0,market);
buy(1,0,market);
end
end
- 網(wǎng)友回復: 填寫 0,也是半倉 不是滿倉。那里錯了。幫忙改下
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯(lián)系技術人員 QQ: 262069696 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內(nèi)容