買賣指令是一定要按照這個(gè)嗎? [金字塔]
- 咨詢內(nèi)容:
請(qǐng)教:買賣指令是一定要按照
平空
開(kāi)多
平多
開(kāi)空
來(lái)寫(xiě)的嗎,怎么在系統(tǒng)公式 顧比倒數(shù)線策略
里面有
if holding=0 then begin
if tmp<=0 then
buy(1,1,limitr,close);
end
if holding=0 then begin
if tmp>0 then
buyshort(1,1,limitr,close);
end
if holding>0 then begin
if tmp>0 then begin
sell(1,holding,limitr,close);
buyshort(1,1,limitr,close);
end
end
if holding<0 then begin
if tmp<=0 then begin
sellshort(1,holding,limitr,close);
buy(1,1,limitr,close);
end
end
這個(gè)順序和你們要求的不一樣啊 - 金字塔客服:
如果不加if之類的,那么一定要按照上面的順序?qū)?/p>
如果加了,可以不用按照順序?qū)?/p>
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容