Rss & SiteMap

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

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

标题:[交易系统]考夫曼自适应移动均线系统

1楼
z7c9 发表于:2011/9/19 16:55:42

runmode:0;

input:length1(10,5,60,5);
input:length2(5,5,60,5);

ama:=md(close,length1);

ama1:=ema(ama,length2);

entrylongcond:=ref(cross(ama,ama1),1);
entryshortcond:=ref(cross(ama1,ama),1);

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

if holding=0 then begin
 if entryshortcond then
  buyshort(1,1,limitr,open);
end

if holding>0 then begin
 if entryshortcond then begin
  sell(1,holding,limitr,open);
  buyshort(1,1,limitr,open);
 end
end

if holding<0 then begin
 if entrylongcond then begin
  sellshort(1,holding,limitr,open);
  buy(1,1,limitr,open);
 end
end

盈亏:asset-50000,noaxis,colorred,linethick2;

[此贴子已经被作者于2011-10-3 11:19:41编辑过]
2楼
xian_0_9 发表于:2011/9/20 19:22:37
图片点击可在新窗口打开查看
3楼
翻手为云 发表于:2013/1/10 8:52:18
不错
4楼
悦诗风吟baby 发表于:2013/1/15 14:50:41
看一下
5楼
akasha3322 发表于:2013/3/27 20:00:13
谢谢分享
6楼
FURUI888 发表于:2015/8/20 19:35:09
能不能用中文表述啊
7楼
yangangzhang 发表于:2015/10/30 11:26:07
谢谢,请问可以中文注解一下吗,现在我还是初级阶段,谢谢
共7 条记录, 每页显示 10 条, 页签: [1]


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