[求助]模型編寫 [金字塔]
- 咨詢內(nèi)容:
請教模型編寫:
假設(shè)
A為多單條件
B為空單條件
請教下面的交易模式表達(dá)
如果符合A,開多單
如果不符合A,平多單
如果符合B開空單
如果不符合B,平空單
謝謝!!
- 金字塔客服:
補(bǔ)充一下:
A為多單條件,只要符合條件A,持有多單
B為空單條件,只要符合條件B,持有空單
- 用戶回復(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ù): 謝謝版主~!!!
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容