以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  从图表到后台的翻译问题  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=31659)

--  作者:yekaicong
--  发布时间:2012/12/19 14:01:07
--  从图表到后台的翻译问题
long:= h>aa and time>091500 and time<150500;

if long then
begin
sellshort(holding<0,0,market);
buy(holding=0,1,market);
end

这段代码想要翻译到后台程序化上用 怎么翻译?

--  作者:jinzhe
--  发布时间:2012/12/19 14:04:31
--  
long:= h>aa and time>091500 and time<150500;

if long then
begin
tsellshort(tholding<0,0,mkt);
tbuy(tholding=0,1,mkt);
end