咨詢內容:老師你好,我在用模擬板測試數據,我的程序是這樣的MA10:MA(C,10);MA120:MA(C,120);jc:=CROSS(MA10,MA120);sc:=CROSS(MA120,MA10);if jc then beginsellshort(holding<0,1,marketr);buy(holding=0,1,marketr);endif sc then beginsell(holding>0,1,marketr);buyshort(holding=0,1,marketr);end然后我想把下單手數改一下,在軟件交易-圖表程式化交易-期貨下單設置里面試了改成2手,還是不行,你們回答說必須程序里面改?怎么改法呢?還有我這個程序想設置一個滑點,具體怎么寫程序呢?請幫我寫一下,謝謝
?
金字塔客服:if jc then beginsellshort(holding<0,2,marketr);buy(holding=0,2,marketr);endif sc then beginsell(holding>0,2,marketr);buyshort(holding=0,2,marketr);end?
交易函數第二個參數就是手數