以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 请教问题 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=60356) |
-- 作者:punkcat401 -- 发布时间:2013/12/26 13:30:54 -- 请教问题 条件A时做多 IF A then buy 多头连续亏损平仓两次后,日内不再做多 |
-- 作者:jinzhe -- 发布时间:2013/12/26 13:38:28 -- 有空头没?
|
-- 作者:punkcat401 -- 发布时间:2013/12/26 15:09:53 -- 请求老师帮忙改写一下 以下是引用jinzhe在2013/12/26 13:38:28的发言:
有空头没?
没有空头 |
-- 作者:jinzhe -- 发布时间:2013/12/26 15:17:45 -- variable:n=0; if date<>ref(date,1) then n:=0; if 开多 and n<2 then buy; if 平仓条件 and holding>0 then begin sell;//假定这里平仓使用thisclose if close-enterprice<0 then n:=n+1; if close-enterprice>0 then n:=0; end
|