Rss & SiteMap

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

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

标题:请管理帮忙

1楼
zm71212302 发表于:2014/4/14 11:55:13
if holding=0 and poeclo=0 and entertime then begin//如果持仓=0
if 开多 then buy(1,ss,thisclose),orderqueue,IGNORECHECKPRICE;//买1手限价交易以开盘价
if 开空 then buyshort(1,ss,thisclose),orderqueue,IGNORECHECKPRICE;
end

THOLDING,用这个后台函数在图表交易中可以吗?
2楼
qq代人发帖 发表于:2014/4/14 11:56:59

图表不支持锁仓,多单平掉才能开空。

先平后开的顺序:

sellshort(1,1,market);
buy(1,1,market);
sell(1,1,market);
buyshort(1,1,market);

3楼
yukizzc 发表于:2014/4/14 11:57:44
不要去使用,tholding这个数据只有当前值没有历史值得。你放图表上会导致历史判断条件不准。
共3 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.00000 s, 2 queries.