Rss & SiteMap

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

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

标题:请教语句编写

1楼
just1 发表于:2013/3/15 17:19:28
我想写两条语言,20日均线上方,14:59分,平空单;20日均线下方,14:59分,开空单。第二条是:20日均线上方,14:59分,开多单;20日均线下方,14:59分,平多单。你能帮我分开写这两条语言吗?
2楼
just 发表于:2013/3/15 17:26:41
ma20:=ma(c,20);

if c>ma20 and time=145900 then begin
sellshort(holding<0,holding,market);
end

if c<ma20 and time=145900 then begin
sell(holding>0,holding,market);
end

if c>ma20 and time=145900 then begin
buy(holding=0,1,market);
end

if c<ma20 and time=145900 then begin
buyshort(holding=0,1,market);
end

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


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