Rss & SiteMap

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

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

标题:[原创]请帮忙写一个交易模型

1楼
ailefeile 发表于:2013/10/8 10:21:31
请老师帮我写一个交易模型:
 1:周期5分钟
 2:最大回撤8%
 3:交易思路:37日均线和241日均线金叉做多,
                    37日均线和241日均线死叉做空
2楼
jinzhe 发表于:2013/10/8 10:27:03

最大回撤8%指的是回撤8%了然后怎么操作?

 

3楼
ailefeile 发表于:2013/10/8 10:34:00
然后是止损
4楼
jinzhe 发表于:2013/10/8 10:46:44
处理中,请稍等
5楼
90也玩期货 发表于:2013/10/8 11:45:24
ma1:=ma(c,37);
ma2:=ma(c,241);
cond1:cross(ma1,ma2);
cond2:cross(ma2,ma1);
buy(cond1,1,MARKET);
BUYSHORT(cond2,1,MARKET);
bo:(hhv(c,ENTERBARS)-c)/enterprice;
if bo>0.8 and holding>0 then sell(1,holding,MARKET);

6楼
jinzhe 发表于:2013/10/8 13:19:08

楼上思路正确,但是要加上以下内容:

1.cond1:cross(ma1,ma2) and holding=0;

cond2:cross(ma2,ma1) and holding=0

2.

一个空头止损

po:=(enterprice-(llv(l,enterbars+1)))/enterprice;

if bo>0.8 and holding>0 then sell(1,holding,MARKET);
共6 条记录, 每页显示 10 条, 页签: [1]


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