以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 咨询开仓问题 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=30063) |
-- 作者:maxhuang -- 发布时间:2012/10/24 11:21:02 -- 咨询开仓问题 我的代码如下,在条件满足情况下,保证金也满足下,系统只给我开仓14手,怎么回事啊?
if (Ref(ShortEnter1,1) or ShortEnter2 or ShortEnter3) and Holding>=0 then if (ShortExit or (Time=150000 and not(ShortEnter3))) and Holding<=-1 then if (Ref(LongEnter1,1) or LongEnter2 or LongEnter3 ) and Holding<=0 then if (LongExit or (Time=150000 and not(LongEnter3))) and Holding>=1 then
|
-- 作者:lichenghu -- 发布时间:2012/10/24 11:29:53 -- 您再贴下您图表上的交易信号,信号上是开45手么 |