以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 求助 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=86421) |
-- 作者:逢好运 -- 发布时间:2015/10/20 20:58:00 -- 求助 老师你好!我是新手,请帮助编写交易模型:做日内3分钟周期交易,14时57分全平仓,23时27分全平仓不隔夜,连续两根上涨k线收盘价时平空开多,连续两根下跌k线收盘介平多开空。谢谢! |
-- 作者:jinzhe -- 发布时间:2015/10/21 9:01:20 -- 用的是北京时间时区还是金字塔时区? |
-- 作者:逢好运 -- 发布时间:2015/10/21 21:25:39 -- 北京时区与金字塔时区有什么区别我也不懂,总之大众用什么时区我就用什么时区,只要能自动化交易就可以了。 |
-- 作者:jinzhe -- 发布时间:2015/10/22 8:50:25 -- 做日内3分钟周期交易,14时57分全平仓,23时27分全平仓不隔夜,连续两根上涨k线收盘价时平空开多,连续两根下跌k线收盘介平多开空
if all(isup,2) then begin sellshort(1,0,thisclose); buy(holding=0,1,thisclose); end
if all(isdown,2) then begin sell(1,0,thisclose); buyshort(holding=0,1,thisclose); end
if time>032700 then time<=033000 then begin sell(1,0,thisclose); sellshort(1,0,thisclose); end
if time>185700 and time<=closetime(0) then begin sell(1,0,thisclose); sellshort(1,0,thisclose); end |
-- 作者:逢好运 -- 发布时间:2015/10/29 23:33:58 -- 老师,上面这个模型运行,发现有时连续开5手多仓,本想只开1手多仓,平仓后才能再开多仓,即永远最多只有1手持仓,这是什么原因? |
-- 作者:jinzhe -- 发布时间:2015/10/30 8:47:27 -- 连开5手是信号闪烁了,使用走完k线下单模式 |