Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共6 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:请老师帮忙写个程序

1楼
生活的小草 发表于:2014/11/26 10:12:39

1,均线交叉类,10日金叉20日做多,10日死叉20日做空

2价格突破类,突破4日高点做多,跌破3日低点做空

谢谢老师

2楼
jinzhe 发表于:2014/11/26 10:16:30
处理中,请稍等
3楼
qq代人发帖 发表于:2014/11/26 10:22:45
用在什么周期交易?
4楼
生活的小草 发表于:2014/11/26 10:25:08
日线级别的
5楼
qq代人发帖 发表于:2014/11/26 10:28:10

ma10:ma(c,10);
ma20:ma(c,20);
jc:cross(ma10,ma20);
sc:cross(ma20,ma10);
if jc  then BEGIN
sellshort(holding<0,holding,market);
buy(holding=0,1,market);
end
if sc then BEGIN
sell(holding>0,holding,market);
buyshort(1,1,market);
end

hh:hhv(h,4);
ll:llv(l,3);
if h>=hh then begin
sellshort(holding<0,holding,market);
buy(holding=0,1,market);
end
if l<=ll then begin
sell(holding>0,holding,market);
buyshort(1,1,market);
end

6楼
生活的小草 发表于:2014/11/26 10:31:08
谢谢老师
共6 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.07813 s, 3 queries.