Rss & SiteMap

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

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

标题:今日开盘价代码和收盘清仓代码怎么写

1楼
qq代人发帖 发表于:2015/5/20 13:53:15
请问今日开盘价代码和收盘清仓代码怎么写
2楼
pyd 发表于:2015/5/20 13:59:13

oo:VALUEWHEN(TODAYBAR=1,0);//开盘价

 

//收盘前5分钟平仓
m5:=(t0totime(timetot0(closetime(0))-60*5));
if time>=m5  then begin
Sell(holding>0,1,market);
sellshort(holding<0,holding,market);
end

[此贴子已经被作者于2015/5/20 14:00:32编辑过]
共2 条记录, 每页显示 10 条, 页签: [1]


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