以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 请帮忙看下我哪里错了? (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=143728) |
-- 作者:突围 -- 发布时间:2016/12/1 10:22:42 -- 请帮忙看下我哪里错了? 开仓时间我设定的是time>091500 and time<220000,然后到22:00 全部清仓并且不再开仓,可是实际运行的时候22点以后和9.15分以前都有开仓,时间设定根本没用啊怎么?
代码如下,我到底哪里错了呢?
//适用模式:“走完一根K线以后” 手数:=ss; 开多平空条件:=CROSS(c,MA1);//开多平空条件 //交易系统 当前持仓:HOLDING,COLORGRAY,LINETHICK0; //注意交易系统先开后平的原则,开仓条件加入 :
|
-- 作者:jinzhe -- 发布时间:2016/12/1 10:28:42 -- 交易的时间坐标,用的是北京时间坐标还是金字塔时间坐标? |
-- 作者:突围 -- 发布时间:2016/12/1 10:51:11 -- 用的是北京时间坐标 |
-- 作者:jinzhe -- 发布时间:2016/12/1 10:54:19 -- MA1:=MA(CLOSE,A); MA2:=MA(CLOSE,B); 手数:=ss; 开多平空条件:=CROSS(c,MA1);//开多平空条件 tt:=time>091500 and time<220000; //交易系统 当前持仓:HOLDING,COLORGRAY,LINETHICK0; //注意交易系统先开后平的原则,开仓条件加入
|
-- 作者:突围 -- 发布时间:2016/12/1 11:42:18 -- 怎么第一次加载上去测试好好的,然后再运行的时候就一个成交都没有了? 内盘外盘我都测试了一下,都是一个成交都没有 我用一分钟都试了今年的历史数据也没有一个成交??重新启动了两次也是这样 |
-- 作者:jinzhe -- 发布时间:2016/12/1 13:11:05 -- 你看下现在的时间坐标是不是北京时间坐标,然后补充下一分钟数据 |
-- 作者:jinzhe -- 发布时间:2016/12/1 13:11:25 -- 再打开策略看看,是不是代码没保存,还是原来的 |
-- 作者:突围 -- 发布时间:2016/12/1 13:30:10 -- 是北京时间坐标 策略代码是新建的 数据测试的是本周这三天的1分钟豆一连续数据 一个成交都没有 [此贴子已经被作者于2016-12-1 13:30:34编辑过]
|
-- 作者:突围 -- 发布时间:2016/12/1 13:37:21 -- 不行 [此贴子已经被作者于2016-12-1 13:38:40编辑过]
|
-- 作者:jinzhe -- 发布时间:2016/12/1 13:55:04 --
variable:dt=0,kt=0;
mm:=ref(h,1)=hhv(h,3) or ref(h,2)=hhv(h,3) or ref(h,3)=hhv(h,3);
用这段代码试试 |