Rss & SiteMap

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

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

标题:盘口

1楼
carney 发表于:2016/7/22 11:35:42
条件是这样的:
1,当有持续大单买入(主动买单500手以上);
此时买一挂单量大于1000,卖一挂单量小于200;
开仓买入100手。
2,止损为开仓价-5,止盈为开仓价+10。

空单条件同上。

这样的可以编写吗?
2楼
jinzhe 发表于:2016/7/22 13:33:09
获取不到上述讲的盘口数据
3楼
carney 发表于:2016/7/22 13:42:01
那能获取哪些盘口数据?
4楼
jinzhe 发表于:2016/7/22 13:57:03
这里的有
图片点击可在新窗口打开查看此主题相关图片如下:1.png
图片点击可在新窗口打开查看
5楼
carney 发表于:2016/7/22 14:35:10
ASKVOL委卖量,BIDVOL委买量,是卖一量和买一量吗?

6楼
jinzhe 发表于:2016/7/22 14:59:20
看下函数说明,是分笔函数,用户是分笔上做策略的吗
7楼
carney 发表于:2016/7/22 15:13:37
可以的,该怎么编写?
8楼
jinzhe 发表于:2016/7/22 15:14:25
还有这个是买1量,和用户讲的买1挂单量是一个意思吗
9楼
carney 发表于:2016/7/22 15:36:50
是的
10楼
jinzhe 发表于:2016/7/22 15:45:07
1,当有持续大单买入(主动买单500手以上);
此时买一挂单量大于1000,卖一挂单量小于200;
开仓买入100手。
2,止损为开仓价-5,止盈为开仓价+10。

 

 

代码分笔周期执行

if BIDVOL>1000 and askvol<200 then buy(holding=0,100,market);

if holding>0 and c<enterprice-5 then sell(1,0,market);

if holding>0 and c>enterprice+10 then sell(1,0,market);

 

if bidvol<200 and askvol>1000 then buyshort(holding=0,100,market);

if holding<0 and c>enterprice+5 then sellshort(1,0,market);

if holding<0 and c<enterprice-10 then sellshort(1,0,market);

共10 条记录, 每页显示 10 条, 页签: [1]


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