Rss & SiteMap

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

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

标题:菲阿里四价的一些问题

1楼
Leslie 发表于:2013/5/18 11:19:40

//策略:菲阿里四价
//周期:日内
//类别:趋势突破
//原版+止损+交易测试限制

//修订时间:2012.11.1
//Designed By Rogarz

 

//准备中间变量
input:ss(1,1,100,1),n1(10,1,100,1),n2(10,1,100,1)n3(4,2,100,1);
variable:交易次数:=0;//为了便于统计 开平1次后 交易次数为2
昨高:=callstock(stklabel,vthigh,6,-1);//昨高
昨低:=callstock(stklabel,vtlow,6,-1);//昨低
昨收:=callstock(stklabel,vtclose,6,-1);//昨收
上轨:昨高;
下轨:昨低;
手数:=ss;
//条件
开多条件:=c>上轨;
开空条件:=c<下轨;
多头止损条件:=c<enterprice-N1*mindiff and time<145500;
空头止损条件:=c>enterprice+n2*mindiff and time<145500;
//交易系统
if (time>090000 and time<145000 and 交易次数<=n3) and  (
开多条件 or 开空条件) and holding=0 then begin 

 

 

 

请问上面红色标记出来的“交易次数<=n3”是什么意思呢???

2楼
rushtaotao 发表于:2013/5/18 12:59:16
交易次数是变量,小于等于n3  n3为参数 默认值为4 最小2 最大100 步长1  这些都是用于参数优化的时候使用,你就知道默认值是4就行    n3(4,2,100,1);
共2 条记录, 每页显示 10 条, 页签: [1]


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