買賣指令是一定要按照這個嗎? [金字塔]
- 咨詢內(nèi)容:
請教:買賣指令是一定要按照
平空
開多
平多
開空
來寫的嗎,怎么在系統(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
這個順序和你們要求的不一樣啊 - 金字塔客服:
如果不加if之類的,那么一定要按照上面的順序?qū)?/p>
如果加了,可以不用按照順序?qū)?/p>
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容