Rss & SiteMap

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

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

标题:[求助]盈利>=+0.5%,回撤382全部退出; 单品种

1楼
帅哥周 发表于:2014/8/20 10:25:59

盈利>=+0.5%,回撤382全部退出 单品种。

2楼
帅哥周 发表于:2014/8/20 10:32:34
这个怎么写呀?
3楼
pyd 发表于:2014/8/20 10:38:52

//多头
VARIABLE:n=0,m=0;
hh:hhv(h,enterbars+1);
if hh-enterprice>=0.5*enterprice then n:=1;
if n=1 and hh-l>=382 and holding>0 then
begin
 sell(1,holding,market);
 n:=0;
 end
 //空头
 ll:llv(l,enterbars+1);
 if enterprice-ll>=0.5*enterprice then m:=1;
 if m=1 and h-ll>=382 and holding<0 then
 BEGIN
 sellshort(1,1,market);
 m:=0;
 end
共3 条记录, 每页显示 10 条, 页签: [1]


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