[原創(chuàng)]請教限價指令 [金字塔]
- 咨詢內(nèi)容:
關(guān)于限價指令的評測和實(shí)盤交易問題請教,如下代碼:
if cond then begin sellshort(holding < 0 , 0,limitr,close),orderqueue; buy(holding = 0, 1,limitr,close),orderqueue; endif cond then begin sell(holding > 0, 0,limitr,close),orderqueue; buyshort(holding = 0, 1,limitr,close),orderqueue; end
請問,上述代碼評測時是否是以本周期收盤價進(jìn)行評測?而成交時將以優(yōu)于本周期收盤價的價格開平倉,對嗎?
若把代碼改如成下:
if cond then begin sellshort(holding < 0 , 0,limitr,close-2*mindiff),orderqueue; buy(holding = 0, 1,limitr,close-2*mindiff),orderqueue; endif cond then begin sell(holding > 0, 0,limitr,close+2*mindiff),orderqueue; buyshort(holding = 0, 1,limitr,close+2*mindiff),orderqueue; end
請教:評測時,將以什么價格評測?是分別以close-2*mindiff和close+2*mindiff價格評測,還是仍然以本周期收盤價評測?如果次周期沒有close-2*mindiff或close+2*mindiff的價格出現(xiàn),那么該信號是否納入評測? - 金字塔客服:
按照本周期收盤價+-2個點(diǎn)測評,在本周期操作,不在次周期進(jìn)行操作
- 用戶回復(fù):
不甚理解,還是請老師逐一回答我上面的疑問,這樣我才能理解~
- 網(wǎng)友回復(fù):
自己在圖表上看看信號位置不就很清楚了么。
凡事學(xué)會自己動手
- 網(wǎng)友回復(fù): 謝謝,不提醒不知道~
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容