Rss & SiteMap

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

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

标题:[交易系统]置换移动均线系统

1楼
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;

2楼
602293075ebf 发表于:2011/11/26 14:37:12
顶一下  人气很低啊
3楼
xian_0_9 发表于:2011/11/26 19:30:11
其实很高的,都不回复而已。
4楼
CITSCWB 发表于:2011/11/29 18:47:12
顶!!!!!!!!!!
5楼
livepu 发表于:2011/12/13 10:38:04

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

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

6楼
kgmkgm 发表于:2011/12/23 13:23:35

好程序,谢谢!

7楼
屠三刀 发表于:2011/12/27 12:21:59
无论如何也要顶,感谢付出的人!
8楼
wsstsxl 发表于:2012/3/9 13:18:53

感谢大侠

 

9楼
xxb398 发表于:2012/3/15 18:17:39
顶,但代码可能有残缺
10楼
cmfyiling 发表于:2012/7/7 22:47:05
???
共12 条记录, 每页显示 10 条, 页签: [1] [2]


Powered By Dvbbs Version 8.3.0
Processed in 0.03101 s, 2 queries.