以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 每涨1000点开一手空 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=149390) |
-- 作者:qq代人发帖 -- 发布时间:2017/3/20 16:23:23 -- 每涨1000点开一手空 请教:橡胶25000以上每涨1000点开一手空,每回调一千点平一手空,怎么写?
|
-- 作者:jinzhe -- 发布时间:2017/3/20 16:29:03 -- variable:n=1;
if c>25000+n*1000 and c<25000+(n+1)*1000 then begin buyshort(1,1,marketr); n:=n+1; end
if c<enterprice-1000 and holding<0 then begin sellshort(1,1,marketr); n:=n-1; end
|