以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 能实现每错误一次加仓20%吗 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=78997) |
-- 作者:qq代人发帖 -- 发布时间:2015/5/25 10:54:12 -- 能实现每错误一次加仓20%吗 请问能实现每错误一次加仓20%吗? |
-- 作者:jinzhe -- 发布时间:2015/5/25 11:04:05 -- “每错误一次”,请问这个是什么意思? |
-- 作者: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为下单手数 |