Rss & SiteMap

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

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

标题:能实现每错误一次加仓20%吗

1楼
qq代人发帖 发表于:2015/5/25 10:54:12
请问能实现每错误一次加仓20%吗?
2楼
jinzhe 发表于:2015/5/25 11:04:05
“每错误一次”,请问这个是什么意思?
3楼
jinzhe 发表于:2015/5/25 11:18:51

variable:n=100;

if 平多条件 and holding>0 then begin

   sell(1,0,market);

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

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

end

 

 

if 平空条件 and holding<0 then begin

   sellshort(1,0,market);

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

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

end

 

n为下单手数

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


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