金字塔直接反手如何寫 [金字塔]
- 咨詢內(nèi)容:
請教:金字塔直接反手如何寫?
- 金字塔客服:
if cond then beginsell();buyshort();end
- 用戶回復(fù):
舉例:
input:m(5),n(20);
ma5:ma(c,m);
ma20:ma(c,20);if cross(c,ma20) then begin
sellshort(holding<0,0,thisclose);
buy(holding=0,1,thisclose);
endif cross(ma20,c) then begin
sell(holding>0,0,thisclose);
buyshort(holding=0,1,thisclose);
end說明:20均線和5均線上下穿進(jìn)行反手,以上是范例
- 網(wǎng)友回復(fù): 謝謝非常感謝
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容