為什么選擇全部平倉,而總給我留一手?? [金字塔]
- 咨詢內容:
SELLshort(( close-ENTERPRICE>3 and holding<>0) ,holding,limitr,open);
SELLSHORT((PK=1 ) ,holding,thisclose); //平空信號
SELL(( ENTERPRICE-CLOSE>3 and holding<>0) ,holding,limitr,open);SELL((PD=1) ,holding,thisclose); //平多信號
105 L00 塑料連續 塑料 13/05/28 11:15:00 開多 1579 10205 806769
106 L00 塑料連續 塑料 13/05/28 11:20:04 平多 1578 1022599 RB00 螺紋鋼連續 螺紋 13/05/28 10:49:01 開多 2532 3485 806769
100 RB00 螺紋鋼連續 螺紋 13/05/28 10:50:01 平多 2529 3489 806769107 TA00 PTA連續 PTA 13/05/28 13:45:01 開多 1749 7828 806769
110 TA00 PTA連續 PTA 13/05/28 13:50:03 平多 1748 7832 806769同樣的代碼,其他品種又沒發現留一手現象??!螺紋鋼更是留了3手。。。
- 金字塔客服:
平倉手數寫0,及時全部平倉,寫holding只會平掉虛擬倉位對應的持倉
- 用戶回復:
SELLshort(( close-ENTERPRICE>3 and holding<>0) ,0,limitr,open);
SELLSHORT((PK=1 ) ,0,thisclose); //平空信號
SELL(( ENTERPRICE-CLOSE>3 and holding<>0) ,0,limitr,open);SELL((PD=1) ,0,thisclose); //平多信號
這樣寫??
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容