Rss & SiteMap

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

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

标题:关于连亏

1楼
skylands 发表于:2014/12/12 22:08:36
请教如何表达:连亏5次后开仓之下单量加大一倍
像下面这样用seqloss函数表达方式正确吗?
XD:=if(seqloss>=5,10,5);
buy(开多条件 and holding=0,XD,thisclose);

2楼
skylands 发表于:2014/12/12 22:18:23
发现seqloss是指连亏金额,改用maxseqloss函数可以吗?
XD:=if(maxseqloss>=5,SS*2,SS);
buy(开多条件 and holding=0,XD,thisclose);
3楼
jinzhe 发表于:2014/12/15 9:14:38

variable:n=0;

if 平多条件 and holding>0 then begin

     sell(1,0,market);

     if numprofit(1)>0 then n:=0;

     if numprofit(1)<=0 then n:=n+1;

end

 

if 平空条件 and holding<0 then begin

     sellshort(1,0,market);

     if numprofit(1)>0 then n:=0;

     if numprofit(1)<=0 then n:=n+1;

end

 

if n=5 and ref(n,1)=4 then ss:=ss*2;

4楼
skylands 发表于:2014/12/15 13:38:18
有没有简单点的方法实现连亏N次后加大下单量?感觉上似乎应该只要一个函数就可以实现的啊,连亏几次的函数应该很容易设计的吧?
5楼
jinzhe 发表于:2014/12/15 13:43:46

感谢提交建议!

共5 条记录, 每页显示 10 条, 页签: [1]


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