[求助]模型編寫(xiě) [金字塔]
- 咨詢(xún)內(nèi)容:
請(qǐng)教模型編寫(xiě):
假設(shè)
A為多單條件
B為空單條件
請(qǐng)教下面的交易模式表達(dá)
如果符合A,開(kāi)多單
如果不符合A,平多單
如果符合B開(kāi)空單
如果不符合B,平空單
謝謝!!
- 金字塔客服:
補(bǔ)充一下:
A為多單條件,只要符合條件A,持有多單
B為空單條件,只要符合條件B,持有空單
- 用戶(hù)回復(fù):
if a and holding=0 then buy(1,1,market);
if not(a) and holding>0 then sell(1,0,market);
if b and holding=0 then buyshort(1,1,market);
if not(b) and holding<) then sellshort(1,0,market);
- 網(wǎng)友回復(fù): 謝謝版主~!!!
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容