Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共16 条记录, 每页显示 10 条, 页签: [1] [2]
[浏览完整版]

标题:请老师帮忙、、、谢谢

1楼
weitachi 发表于:2015/5/10 18:32:06
用户已锁定!
2楼
jinzhe 发表于:2015/5/11 9:06:54
处理中请稍等
3楼
pyd 发表于:2015/5/11 9:16:56
if d1 and d2 and d3 and d4 then buy(holding=0,1,marketr);
if enterbars>=0 then sell(holding>0,holding,market);
if k1 and k2 and k3 and k4 and k5 then buyshort(holding=0,1,market);
if enterbars>=0 then sellshort(holding<0,holding,market);
4楼
weitachi 发表于:2015/5/11 9:33:55
用户已锁定!
5楼
jinzhe 发表于:2015/5/11 9:42:15

market:市价下单

thisclose:对手价下单

6楼
weitachi 发表于:2015/5/11 9:44:39
用户已锁定!
7楼
weitachi 发表于:2015/5/11 9:46:20
用户已锁定!
8楼
jinzhe 发表于:2015/5/11 9:48:21

不是

指的是开仓时的即时的市价和对手价

9楼
jinzhe 发表于:2015/5/11 9:48:49
没有begin和end的,上面不是写了吗?
10楼
pyd 发表于:2015/5/11 9:49:39

if d1 and d2 and d3 and d4 then buy(holding=0,1,marketr);
if enterbars>=0 then sell(holding>0,holding,market);
if k1 and k2 and k3 and k4 and k5 then buyshort(holding=0,1,market);
if enterbars>=0 then sellshort(holding<0,holding,market);
 
只有这4句不会提示缺少begin end 你是不是其他地方用了begin 少写了end?

把全部代码贴下

market是市价下单,thisclose是对手价,单根还是下跟下单取决于你是选择走完一根k还是固定时间间隔

[此贴子已经被作者于2015/5/11 9:50:16编辑过]
共16 条记录, 每页显示 10 条, 页签: [1] [2]


Powered By Dvbbs Version 8.3.0
Processed in 0.03125 s, 3 queries.