怎么編寫? [金字塔]
- 咨詢內容:
請教:我要設一個日線站在20均線上,同時5分鐘5日均線交10均線金叉作為買入,5分鐘5日均線與10日均線死叉賣出,怎么寫?
- 金字塔客服:
{日線站在20均線上,同時5分鐘5日均線交10均線金叉作為買入,5分鐘5日均線與10日均線死叉賣出}
c_day:=callstock(stklabel,vtclose,6);
c_ma20:=stkindi('','ma.ma3',0,6);ma5_min5:=stkindi('','ma.ma1',0,2);
ma10_min5:=stkindi('','ma.ma2',0,2);if c_day>c_ma20 and cross(ma5_min5,ma10_min5) then begin
sellshort(1,0,market);
buy(holding=0,1,market);
endif c_day>c_ma20 and cross(ma10_min5,ma5_min5) then begin
sell(1,0,market);
buyshort(holding=0,1,market);
end
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容