[原創]請教限價指令 [金字塔]
- 咨詢內容:
關于限價指令的評測和實盤交易問題請教,如下代碼:
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
請問,上述代碼評測時是否是以本周期收盤價進行評測?而成交時將以優于本周期收盤價的價格開平倉,對嗎?
若把代碼改如成下:
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的價格出現,那么該信號是否納入評測? - 金字塔客服:
按照本周期收盤價+-2個點測評,在本周期操作,不在次周期進行操作
- 用戶回復:
不甚理解,還是請老師逐一回答我上面的疑問,這樣我才能理解~
- 網友回復:
自己在圖表上看看信號位置不就很清楚了么。
凡事學會自己動手
- 網友回復: 謝謝,不提醒不知道~
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容