金字塔直接反手如何寫 [金字塔]
- 咨詢內容:
請教:金字塔直接反手如何寫?
- 金字塔客服:
if cond then beginsell();buyshort();end
- 用戶回復:
舉例:
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均線上下穿進行反手,以上是范例
- 網友回復: 謝謝非常感謝
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容