以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  交易策略发布专区  (http://weistock.com/bbs/list.asp?boardid=10)
----  [交易系统]置换移动均线系统  (http://weistock.com/bbs/dispbbs.asp?boardid=10&id=8609)

--  作者:z7c9
--  发布时间:2011/10/25 20:57:57
--  [交易系统]置换移动均线系统

 

runmode:0;

ma3x3:=ref(ma(close,3),3);
ma7x5:=ref(ma(close,7),5);
ma25x5:=ref(ma(close,25),5);

entrylongcond:=close>ma3x3 and ma3x3>ma7x5 and ma7x5>ma25x5;
exitlongcond:=ma3x3
entryshortcond:=closeexitshortcond:=ma3x3>ma7x5;

if holding=0 then begin
if entrylongcond then
buy(1,1,limitr,close);

if entryshortcond then
buyshort(1,1,limitr,close);
end

if holding>0 then begin
if exitlongcond then
sell(1,holding,limitr,close);
end

if holding<0 then begin
if exitshortcond then
sellshort(1,holding,limitr,close);
end

盈亏:asset-500000,noaxis,coloryellow,linethick2;


--  作者:602293075ebf
--  发布时间:2011/11/26 14:37:12
--  
顶一下  人气很低啊
--  作者:xian_0_9
--  发布时间:2011/11/26 19:30:11
--  
其实很高的,都不回复而已。
--  作者:CITSCWB
--  发布时间:2011/11/29 18:47:12
--  
顶!!!!!!!!!!
--  作者:livepu
--  发布时间:2011/12/13 10:38:04
--  

这个论坛应该 换成php版本的好一些。

似乎很多贴出来的代码,在条件上还是有点残缺。


--  作者:kgmkgm
--  发布时间:2011/12/23 13:23:35
--  

好程序,谢谢!


--  作者:屠三刀
--  发布时间:2011/12/27 12:21:59
--  
无论如何也要顶,感谢付出的人!
--  作者:wsstsxl
--  发布时间:2012/3/9 13:18:53
--  

感谢大侠

 


--  作者:xxb398
--  发布时间:2012/3/15 18:17:39
--  
顶,但代码可能有残缺
--  作者:cmfyiling
--  发布时间:2012/7/7 22:47:05
--  
???