指標引用的速度問題 [金字塔]
- 咨詢內(nèi)容:
在交易系統(tǒng)中引用一個指標,和把這個指標寫在交易系統(tǒng)里,這兩個作比較哪個運行速度更快一些
- 金字塔客服:
引用快一點
- 用戶回復(fù):
aa:=cross(ma(c,5),ma(c,10));bb:=cross(ma(c,10),ma(c,5));if ref(aa,1) and holding<0 then begin 平空:sellshort(1,holding,limitr,o); tsellshort(1,holding,mkt);endif ref(bb,1) and holding>0 then begin 平多:sell(1,holding,limitr,o); tsell(1,holding,mkt);endif ref(aa,1) and holding=0 then begin 開多:buy(1,1,limter,o); tbuy(1,1,mkt);endif ref(bb,1) and holding=0 then begin 開空:buyshort(1,1limter,o); tbuyshort(1,1,mkt);end
請問,我把上面的1個系統(tǒng)用后臺跑兩個品種ag和au,兩個品種間的開平會相互干擾嗎,比如ag的開倉信號,結(jié)果把au的倉給開了。 - 網(wǎng)友回復(fù): 不會,不影響
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容